summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-11 17:49:09 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-11 17:49:09 +0300
commit2274758726d1138a2b65535244e84225c3de5304 (patch)
treef55922ce637b797ea42fe0392126961b2cc3cc32 /src/normalopenglgraphics.h
parent7de8936d864564b2a9fafaa74af84ec10e755388 (diff)
downloadmanaverse-2274758726d1138a2b65535244e84225c3de5304.tar.gz
manaverse-2274758726d1138a2b65535244e84225c3de5304.tar.bz2
manaverse-2274758726d1138a2b65535244e84225c3de5304.tar.xz
manaverse-2274758726d1138a2b65535244e84225c3de5304.zip
Move fbo code to GraphicsManager from opengl backends.
Diffstat (limited to 'src/normalopenglgraphics.h')
-rw-r--r--src/normalopenglgraphics.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/normalopenglgraphics.h b/src/normalopenglgraphics.h
index 5c86f40e4..875b04bee 100644
--- a/src/normalopenglgraphics.h
+++ b/src/normalopenglgraphics.h
@@ -29,11 +29,13 @@
#include "main.h"
#include "graphics.h"
+#include "resources/fboinfo.h"
+
//#define NO_SDL_GLEXT
#define GL_GLEXT_PROTOTYPES 1
#include <SDL_opengl.h>
-//#include <GL/glext.h>
+#include <GL/glext.h>
#include <set>
@@ -162,9 +164,7 @@ class NormalOpenGLGraphics : public Graphics
GLint *mIntVertArray;
bool mAlpha, mTexture;
bool mColorAlpha;
- GLuint mFboId;
- GLuint mTextureId;
- GLuint mRboId;
+ FBOInfo mFbo;
#ifdef DEBUG_BIND_TEXTURE
std::string mOldTexture;
unsigned mOldTextureId;