summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.cpp
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.cpp
parent02d6bcd53e06e1caeb335bd9b12bb16cc982d656 (diff)
downloadmv-ea9f93442a3e073b47ead4d98076f2fb6e3dcb33.tar.gz
mv-ea9f93442a3e073b47ead4d98076f2fb6e3dcb33.tar.bz2
mv-ea9f93442a3e073b47ead4d98076f2fb6e3dcb33.tar.xz
mv-ea9f93442a3e073b47ead4d98076f2fb6e3dcb33.zip
Fix complilation without opengl.
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r--src/graphicsvertexes.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp
index 1170d55fd..6beb41a88 100644
--- a/src/graphicsvertexes.cpp
+++ b/src/graphicsvertexes.cpp
@@ -29,7 +29,6 @@ int GraphicsVertexes::mUseOpenGL = 0;
const unsigned int vertexBufSize = 500;
#endif
-
SDLGraphicsVertexes::SDLGraphicsVertexes()
{
@@ -40,7 +39,7 @@ SDLGraphicsVertexes::~SDLGraphicsVertexes()
delete_all(mList);
}
-
+#ifdef USE_OPENGL
OpenGLGraphicsVertexes::OpenGLGraphicsVertexes() :
mFloatTexArray(0),
mIntTexArray(0),
@@ -94,6 +93,7 @@ void OpenGLGraphicsVertexes::switchVp(int n)
{
mVp.push_back(n);
}
+#endif
GraphicsVertexes::GraphicsVertexes() :
mX(0), mY(0),
@@ -116,14 +116,18 @@ void GraphicsVertexes::init(int x, int y, int w, int h)
for (int f = 0; f < 10; f ++)
{
sdl[mPtr].mList.clear();
+#ifdef USE_OPENGL
ogl[mPtr].init();
+#endif
}
}
+#ifdef USE_OPENGL
void GraphicsVertexes::setLoadAsOpenGL(int useOpenGL)
{
mUseOpenGL = useOpenGL;
}
+#endif
void GraphicsVertexes::pushSDL(SDL_Rect r1, SDL_Rect r2)
{