mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 09:54:26 +02:00
- added FBO's for map preview rendering, which improves fps in the custom menu for video cards that support Frame Buffer Objects
This commit is contained in:
@@ -28,6 +28,10 @@ protected:
|
||||
GLuint renderBufferId;
|
||||
GLuint frameBufferId;
|
||||
|
||||
void initRenderBuffer();
|
||||
void initFrameBuffer();
|
||||
void attachRenderBuffer();
|
||||
|
||||
public:
|
||||
TextureGl();
|
||||
virtual ~TextureGl();
|
||||
@@ -36,14 +40,11 @@ public:
|
||||
GLuint getRenderBufferHandle() const {return renderBufferId;}
|
||||
GLuint getFrameBufferHandle() const {return frameBufferId;}
|
||||
|
||||
void initRenderBuffer();
|
||||
void initFrameBuffer();
|
||||
void attachRenderBuffer();
|
||||
void attachFrameBufferToTexture();
|
||||
bool checkFrameBufferStatus();
|
||||
void dettachFrameBufferFromTexture();
|
||||
|
||||
bool supports_FBO_RBO();
|
||||
void setup_FBO_RBO();
|
||||
void attachFrameBufferToTexture();
|
||||
void dettachFrameBufferFromTexture();
|
||||
bool checkFrameBufferStatus();
|
||||
void teardown_FBO_RBO();
|
||||
|
||||
virtual int getTextureWidth() const = 0;
|
||||
|
Reference in New Issue
Block a user