summaryrefslogtreecommitdiffstats
path: root/o3d/converter
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/converter')
-rw-r--r--o3d/converter/cross/renderer_stub.cc10
-rw-r--r--o3d/converter/cross/renderer_stub.h20
-rw-r--r--o3d/converter/cross/texture_stub.h35
3 files changed, 31 insertions, 34 deletions
diff --git a/o3d/converter/cross/renderer_stub.cc b/o3d/converter/cross/renderer_stub.cc
index 333f72a..691c1ce 100644
--- a/o3d/converter/cross/renderer_stub.cc
+++ b/o3d/converter/cross/renderer_stub.cc
@@ -73,21 +73,21 @@ void RendererStub::Destroy(void) {
DCHECK(false);
}
-bool RendererStub::BeginDraw(void) {
+bool RendererStub::PlatformSpecificBeginDraw(void) {
DCHECK(false);
return true;
}
-void RendererStub::EndDraw(void) {
+void RendererStub::PlatformSpecificEndDraw(void) {
DCHECK(false);
}
-bool RendererStub::StartRendering(void) {
+bool RendererStub::PlatformSpecificStartRendering(void) {
DCHECK(false);
return true;
}
-void RendererStub::FinishRendering(void) {
+void RendererStub::PlatformSpecificFinishRendering(void) {
DCHECK(false);
}
@@ -178,7 +178,7 @@ StreamBank::Ref RendererStub::CreateStreamBank() {
return StreamBank::Ref(new StreamBankStub(service_locator()));
}
-Bitmap::Ref RendererStub::TakeScreenshot() {
+Bitmap::Ref RendererStub::PlatformSpecificTakeScreenshot() {
return Bitmap::Ref();
}
diff --git a/o3d/converter/cross/renderer_stub.h b/o3d/converter/cross/renderer_stub.h
index e6bd1eb..a4bd205 100644
--- a/o3d/converter/cross/renderer_stub.h
+++ b/o3d/converter/cross/renderer_stub.h
@@ -54,10 +54,6 @@ class RendererStub : public Renderer {
virtual void InitCommon();
virtual void UninitCommon();
virtual void Destroy();
- virtual bool BeginDraw();
- virtual void EndDraw();
- virtual bool StartRendering();
- virtual void FinishRendering();
virtual void Resize(int width, int height);
virtual void Clear(const Float4 &color,
bool color_flag,
@@ -79,7 +75,6 @@ class RendererStub : public Renderer {
virtual RenderDepthStencilSurface::Ref CreateDepthStencilSurface(int width,
int height);
virtual StreamBank::Ref CreateStreamBank();
- virtual Bitmap::Ref TakeScreenshot();
ParamCache *CreatePlatformSpecificParamCache();
virtual void SetViewportInPixels(int left,
int top,
@@ -95,6 +90,21 @@ class RendererStub : public Renderer {
explicit RendererStub(ServiceLocator* service_locator);
// Overridden from Renderer.
+ virtual bool PlatformSpecificBeginDraw();
+
+ // Overridden from Renderer.
+ virtual void PlatformSpecificEndDraw();
+
+ // Overridden from Renderer.
+ virtual bool PlatformSpecificStartRendering();
+
+ // Overridden from Renderer.
+ virtual void PlatformSpecificFinishRendering();
+
+ // Overridden from Renderer.
+ virtual Bitmap::Ref PlatformSpecificTakeScreenshot();
+
+ // Overridden from Renderer.
virtual void SetBackBufferPlatformSpecific();
// Overridden from Renderer.
diff --git a/o3d/converter/cross/texture_stub.h b/o3d/converter/cross/texture_stub.h
index b26107a..3a6c74a 100644
--- a/o3d/converter/cross/texture_stub.h
+++ b/o3d/converter/cross/texture_stub.h
@@ -70,16 +70,6 @@ class Texture2DStub : public Texture2D {
int src_pitch) {
}
- // Returns a RenderSurface object associated with a mip_level of a texture.
- // Parameters:
- // mip_level: [in] The mip-level of the surface to be returned.
- // pack: [in] The pack in which the surface will reside.
- // Returns:
- // Reference to the RenderSurface object.
- virtual RenderSurface::Ref GetRenderSurface(int mip_level, Pack *pack) {
- return RenderSurface::Ref(NULL);
- }
-
// Returns the implementation-specific texture handle for this texture.
void* GetTextureHandle() const {
return NULL;
@@ -99,6 +89,11 @@ class Texture2DStub : public Texture2D {
// Unlocks this texture and returns it to Stub control.
virtual bool Unlock(int level) { return true; }
+ // Overridden from Texture2D
+ virtual RenderSurface::Ref PlatformSpecificGetRenderSurface(int mip_level) {
+ return RenderSurface::Ref(NULL);
+ }
+
private:
DISALLOW_COPY_AND_ASSIGN(Texture2DStub);
};
@@ -131,20 +126,6 @@ class TextureCUBEStub : public TextureCUBE {
int src_pitch) {
};
- // Returns a RenderSurface object associated with a given cube face and
- // mip_level of a texture.
- // Parameters:
- // face: [in] The cube face from which to extract the surface.
- // mip_level: [in] The mip-level of the surface to be returned.
- // pack: [in] The pack in which the surface will reside.
- // Returns:
- // Reference to the RenderSurface object.
- virtual RenderSurface::Ref GetRenderSurface(CubeFace face,
- int level,
- Pack* pack) {
- return RenderSurface::Ref(NULL);
- }
-
// Returns the implementation-specific texture handle for this texture.
void* GetTextureHandle() const {
return NULL;
@@ -165,6 +146,12 @@ class TextureCUBEStub : public TextureCUBE {
// Unlocks the image buffer of a given face and mipmap level.
virtual bool Unlock(CubeFace face, int level) { return true; }
+ // Overridden from TextureCUBE
+ virtual RenderSurface::Ref PlatformSpecificGetRenderSurface(CubeFace face,
+ int mip_level) {
+ return RenderSurface::Ref(NULL);
+ }
+
private:
DISALLOW_COPY_AND_ASSIGN(TextureCUBEStub);
};