diff options
Diffstat (limited to 'Runtime/GfxDevice/opengl/NullVBO.h')
-rw-r--r-- | Runtime/GfxDevice/opengl/NullVBO.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Runtime/GfxDevice/opengl/NullVBO.h b/Runtime/GfxDevice/opengl/NullVBO.h new file mode 100644 index 0000000..a916f5a --- /dev/null +++ b/Runtime/GfxDevice/opengl/NullVBO.h @@ -0,0 +1,27 @@ +#ifndef NULL_VBO_H +#define NULL_VBO_H + +#include "Runtime/Shaders/BufferedVBO.h" +#include "Configuration/UnityConfigure.h" + + +class DynamicNullVBO : public DynamicVBO { +public: + DynamicNullVBO(); + virtual ~DynamicNullVBO(); + + virtual bool GetChunk( UInt32 shaderChannelMask, UInt32 maxVertices, UInt32 maxIndices, RenderMode renderMode, void** outVB, void** outIB ); + virtual void ReleaseChunk( UInt32 actualVertices, UInt32 actualIndices ); + virtual void DrawChunk (const ChannelAssigns& channels); + +private: + void* m_BufferChannel[kShaderChannelCount]; + + UInt8* m_VBChunk; + UInt32 m_VBChunkSize; + UInt8* m_IBChunk; + UInt32 m_IBChunkSize; +}; + + +#endif |