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