summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-18 15:53:56 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-18 15:53:56 +0000
commit708384a6b1fca22c6352deb79e52422266dc307e (patch)
tree99fc89b50c1cae19d053e8bd30723ba964792820 /src/gui/gui.cpp
parent1f03c67e2c81c75d83053dbabb1afca646a35ad6 (diff)
downloadMana-708384a6b1fca22c6352deb79e52422266dc307e.tar.gz
Mana-708384a6b1fca22c6352deb79e52422266dc307e.tar.bz2
Mana-708384a6b1fca22c6352deb79e52422266dc307e.tar.xz
Mana-708384a6b1fca22c6352deb79e52422266dc307e.zip
Ok, of course the biggest problem to solve with OpenGL integration is loading
and rendering of images.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 436a5a1a..6a57f214 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -45,12 +45,13 @@ Gui::Gui(Graphics *graphics)
setInput(guiInput);
// Set image loader
-#ifndef USE_OPENGL
- imageLoader = new gcn::SDLImageLoader();
-#else
- hostImageLoader = new gcn::SDLImageLoader();
- imageLoader = new gcn::OpenGLImageLoader(hostImageLoader);
-#endif
+ if (useOpenGL) {
+ hostImageLoader = new gcn::SDLImageLoader();
+ imageLoader = new gcn::OpenGLImageLoader(hostImageLoader);
+ }
+ else {
+ imageLoader = new gcn::SDLImageLoader();
+ }
gcn::Image::setImageLoader(imageLoader);
// Initialize top GUI widget