Split Renderer into version independent interface and Renderer9 implementation.
TRAC #21963
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1358 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/IndexDataManager.h b/src/libGLESv2/IndexDataManager.h
index dfe1adb..7450726 100644
--- a/src/libGLESv2/IndexDataManager.h
+++ b/src/libGLESv2/IndexDataManager.h
@@ -39,7 +39,7 @@
class IndexBuffer
{
public:
- IndexBuffer(renderer::Renderer *renderer, UINT size, D3DFORMAT format);
+ IndexBuffer(renderer::Renderer9 *renderer, UINT size, D3DFORMAT format);
virtual ~IndexBuffer();
UINT size() const { return mBufferSize; }
@@ -51,7 +51,7 @@
unsigned int getSerial() const;
protected:
- renderer::Renderer *const mRenderer;
+ renderer::Renderer9 *const mRenderer; // D3D9_REPLACE
IDirect3DIndexBuffer9 *mIndexBuffer;
UINT mBufferSize;
@@ -67,7 +67,7 @@
class StreamingIndexBuffer : public IndexBuffer
{
public:
- StreamingIndexBuffer(renderer::Renderer *renderer, UINT initialSize, D3DFORMAT format);
+ StreamingIndexBuffer(renderer::Renderer9 *renderer, UINT initialSize, D3DFORMAT format);
~StreamingIndexBuffer();
virtual void *map(UINT requiredSpace, UINT *offset);
@@ -80,7 +80,7 @@
class StaticIndexBuffer : public IndexBuffer
{
public:
- explicit StaticIndexBuffer(renderer::Renderer *renderer);
+ explicit StaticIndexBuffer(renderer::Renderer9 *renderer);
~StaticIndexBuffer();
virtual void *map(UINT requiredSpace, UINT *offset);
@@ -125,7 +125,7 @@
class IndexDataManager
{
public:
- IndexDataManager(Context *context, renderer::Renderer *renderer);
+ IndexDataManager(Context *context, renderer::Renderer9 *renderer);
virtual ~IndexDataManager();
GLenum prepareIndexData(GLenum type, GLsizei count, Buffer *arrayElementBuffer, const GLvoid *indices, TranslatedIndexData *translated);
@@ -137,7 +137,7 @@
std::size_t typeSize(GLenum type) const;
std::size_t indexSize(D3DFORMAT format) const;
- renderer::Renderer *const mRenderer;
+ renderer::Renderer9 *const mRenderer; // D3D9_REPLACE
StreamingIndexBuffer *mStreamingBufferShort;
StreamingIndexBuffer *mStreamingBufferInt;