mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-03 15:11:42 +00:00
25 lines
373 B
C
25 lines
373 B
C
|
#pragma once
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
#include "hwrenderer/data/uniformbuffer.h"
|
||
|
|
||
|
|
||
|
class GLUniformBuffer : public IUniformBuffer
|
||
|
{
|
||
|
unsigned mBufferId;
|
||
|
bool mStaticDraw;
|
||
|
|
||
|
protected:
|
||
|
GLUniformBuffer(size_t size, bool staticdraw = false);
|
||
|
~GLUniformBuffer();
|
||
|
|
||
|
void Bind() override;
|
||
|
void SetData(const void *data) override;
|
||
|
|
||
|
unsigned ID() const
|
||
|
{
|
||
|
return mBufferId;
|
||
|
}
|
||
|
|
||
|
}
|