CUniformBuffer: uint -> uint32
This commit is contained in:
parent
db7614be95
commit
82d47e82e9
|
@ -7,7 +7,7 @@
|
|||
class CUniformBuffer
|
||||
{
|
||||
GLuint mUniformBuffer;
|
||||
uint mBufferSize;
|
||||
uint32 mBufferSize;
|
||||
|
||||
public:
|
||||
|
||||
|
@ -17,7 +17,7 @@ public:
|
|||
SetBufferSize(0);
|
||||
}
|
||||
|
||||
explicit CUniformBuffer(uint Size)
|
||||
explicit CUniformBuffer(uint32 Size)
|
||||
{
|
||||
glGenBuffers(1, &mUniformBuffer);
|
||||
SetBufferSize(Size);
|
||||
|
@ -52,20 +52,20 @@ public:
|
|||
Unbind();
|
||||
}
|
||||
|
||||
void BufferRange(const void *pkData, uint Offset, uint Size)
|
||||
void BufferRange(const void *pkData, uint32 Offset, uint32 Size)
|
||||
{
|
||||
Bind();
|
||||
glBufferSubData(GL_UNIFORM_BUFFER, Offset, Size, pkData);
|
||||
Unbind();
|
||||
}
|
||||
|
||||
void SetBufferSize(uint Size)
|
||||
void SetBufferSize(uint32 Size)
|
||||
{
|
||||
mBufferSize = Size;
|
||||
InitializeBuffer();
|
||||
}
|
||||
|
||||
uint GetBufferSize() const
|
||||
uint32 GetBufferSize() const
|
||||
{
|
||||
return mBufferSize;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue