mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-16 23:31:10 +00:00
29 lines
504 B
C
29 lines
504 B
C
|
#ifndef __GL_RENDERBUFFERS_H
|
||
|
#define __GL_RENDERBUFFERS_H
|
||
|
|
||
|
#include "gl/shaders/gl_shader.h"
|
||
|
|
||
|
class FGLRenderBuffers
|
||
|
{
|
||
|
public:
|
||
|
FGLRenderBuffers();
|
||
|
~FGLRenderBuffers();
|
||
|
|
||
|
void Setup(int width, int height);
|
||
|
void BindSceneFB();
|
||
|
void BindOutputFB();
|
||
|
void BindSceneTexture(int index);
|
||
|
|
||
|
static bool IsSupported() { return gl.version >= 3.3f; }
|
||
|
|
||
|
private:
|
||
|
int mWidth = 0;
|
||
|
int mHeight = 0;
|
||
|
|
||
|
GLuint mSceneTexture = 0;
|
||
|
GLuint mSceneDepthStencil = 0;
|
||
|
GLuint mSceneFB = 0;
|
||
|
GLuint mOutputFB = 0;
|
||
|
};
|
||
|
|
||
|
#endif
|