summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-26 18:51:06 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-26 18:51:06 +0200
commitea9f93442a3e073b47ead4d98076f2fb6e3dcb33 (patch)
tree17868b917ac1354443436928f646c52f5d388f0b /src/graphicsvertexes.h
parent02d6bcd53e06e1caeb335bd9b12bb16cc982d656 (diff)
downloadmanaverse-ea9f93442a3e073b47ead4d98076f2fb6e3dcb33.tar.gz
manaverse-ea9f93442a3e073b47ead4d98076f2fb6e3dcb33.tar.bz2
manaverse-ea9f93442a3e073b47ead4d98076f2fb6e3dcb33.tar.xz
manaverse-ea9f93442a3e073b47ead4d98076f2fb6e3dcb33.zip
Fix complilation without opengl.
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r--src/graphicsvertexes.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h
index 1efb74f01..2ab54197d 100644
--- a/src/graphicsvertexes.h
+++ b/src/graphicsvertexes.h
@@ -55,7 +55,7 @@ class SDLGraphicsVertexes
std::list<DoubleRect*> mList;
};
-
+#ifdef USE_OPENGL
class OpenGL1GraphicsVertexes
{
};
@@ -73,10 +73,6 @@ class OpenGLGraphicsVertexes
GLint *switchIntTexArray();
- void init();
-
- void clear();
-
std::vector<GLfloat*> &getFloatTexPool()
{ return mFloatTexPool; }
@@ -91,6 +87,10 @@ class OpenGLGraphicsVertexes
std::vector<int> &getVp()
{ return mVp; }
+ void init();
+
+ void clear();
+
private:
GLfloat *mFloatTexArray;
GLint *mIntTexArray;
@@ -100,6 +100,7 @@ class OpenGLGraphicsVertexes
std::vector<GLint*> mIntTexPool;
std::vector<int> mVp;
};
+#endif
class GraphicsVertexes
{
@@ -112,9 +113,11 @@ class GraphicsVertexes
SDLGraphicsVertexes sdl[5];
+#ifdef USE_OPENGL
OpenGL1GraphicsVertexes ogl1[5];
OpenGLGraphicsVertexes ogl[5];
+#endif
void init(int x, int y, int w, int h);
@@ -130,8 +133,10 @@ class GraphicsVertexes
void setPtr(int num)
{ mPtr = num; }
+#ifdef USE_OPENGL
OpenGLGraphicsVertexes* getOGL()
{ return &ogl[mPtr]; }
+#endif
int getX()
{ return mX; }
@@ -149,7 +154,9 @@ class GraphicsVertexes
int mPtr;
private:
+#ifdef USE_OPENGL
static int mUseOpenGL;
+#endif
};
#endif // GRAPHICSVERTEXES_H