diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-27 21:55:20 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-27 21:55:20 +0000 |
commit | d15d76976b6e57a9f421ab034c6f841051b962f3 (patch) | |
tree | ab0c37c90af9f76158b96f195c05be9b221e9f42 /src/graphics.h | |
parent | aa362286c725e17ec88aa46f8f6af9ca90d744b3 (diff) | |
download | mana-d15d76976b6e57a9f421ab034c6f841051b962f3.tar.gz mana-d15d76976b6e57a9f421ab034c6f841051b962f3.tar.bz2 mana-d15d76976b6e57a9f421ab034c6f841051b962f3.tar.xz mana-d15d76976b6e57a9f421ab034c6f841051b962f3.zip |
Committing merging opengl and sdl part 3 by Andrej
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/graphics.h b/src/graphics.h index a66bb2da..461bb45c 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -26,8 +26,10 @@ #include <guichan/sdl.hpp> #include <SDL.h> +#ifdef USE_OPENGL #include <guichan/opengl.hpp> #include <SDL_opengl.h> +#endif #include <guichan/imagefont.hpp> #include <guichan/rectangle.hpp> #include "resources/image.h" @@ -56,7 +58,11 @@ struct ImageRect { /** * A central point of control for graphics. */ -class Graphics : public gcn::SDLGraphics, public gcn::OpenGLGraphics { +class Graphics : +#ifdef USE_OPENGL +public gcn::OpenGLGraphics, +#endif +public gcn::SDLGraphics { public: /** * Constructor. @@ -100,7 +106,7 @@ class Graphics : public gcn::SDLGraphics, public gcn::OpenGLGraphics { /** * Returns the width of the screen. */ - virtual int getWidth(); + int getWidth(); /** * Returns the height of the screen. |