mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 10:49:23 +00:00
Initial commit of current work on Prime World Editor
This commit is contained in:
31
OpenGL/CRenderbuffer.h
Normal file
31
OpenGL/CRenderbuffer.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef CRENDERBUFFER_H
|
||||
#define CRENDERBUFFER_H
|
||||
|
||||
#include <GL/glew.h>
|
||||
#include <Common/types.h>
|
||||
|
||||
class CRenderbuffer
|
||||
{
|
||||
GLuint mRenderbuffer;
|
||||
u32 mWidth, mHeight;
|
||||
bool mInitialized;
|
||||
|
||||
public:
|
||||
CRenderbuffer();
|
||||
CRenderbuffer(u32 Width, u32 Height);
|
||||
~CRenderbuffer();
|
||||
void Init();
|
||||
void Resize(u32 Width, u32 Height);
|
||||
void Bind();
|
||||
void Unbind();
|
||||
|
||||
// Getters
|
||||
GLuint BufferID();
|
||||
};
|
||||
|
||||
inline GLuint CRenderbuffer::BufferID()
|
||||
{
|
||||
return mRenderbuffer;
|
||||
}
|
||||
|
||||
#endif // CRENDERBUFFER_H
|
||||
Reference in New Issue
Block a user