mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-26 07:35:40 +00:00
28 lines
373 B
C
28 lines
373 B
C
|
#ifndef _FBO_H_
|
||
|
#define _FBO_H_
|
||
|
|
||
|
#include <GL/glew.h>
|
||
|
|
||
|
class FBO
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
FBO();
|
||
|
|
||
|
bool Create(int width, int height);
|
||
|
void Destroy();
|
||
|
void BindTexture();
|
||
|
void Set();
|
||
|
void Disable();
|
||
|
GLuint GetFBOID();
|
||
|
GLuint GetTextureID();
|
||
|
|
||
|
private:
|
||
|
|
||
|
void CreateTexture(int width, int height);
|
||
|
|
||
|
GLuint m_frameBufferID;
|
||
|
GLuint m_textureID;
|
||
|
};
|
||
|
|
||
|
#endif
|