Index: branches/water/src/story_entities/game_world.cc
===================================================================
--- branches/water/src/story_entities/game_world.cc	(revision 8063)
+++ branches/water/src/story_entities/game_world.cc	(revision 8089)
@@ -107,4 +107,86 @@
 
 
+
+
+/// HACK only for testing.
+void GameWorld::enterGui()
+{
+  OrxGui::GLGuiBox* imageSelector = new OrxGui::GLGuiBox();
+  {
+    image = new OrxGui::GLGuiImage();
+    image->setWidgetSize(300, 300);
+    image->setAbsCoor2D(300, 300);
+    imageSelector->pack(image);
+
+    imageName = new OrxGui::GLGuiInputLine();
+    imageSelector->pack(imageName);
+
+    OrxGui::GLGuiSlider* slider = new OrxGui::GLGuiSlider();
+    slider->setWidgetSize(200, 30);
+    slider->setRange(0, 200);
+    slider->setStep(1);
+    
+    
+    slider->setValue(slider->min());
+    slider->connect(SIGNAL(slider, valueChanged), this, SLOT(GameWorld, setImage));
+
+    imageSelector->pack(slider);
+    slider->setValue(getImage("/home/stefalie/svn/orxonox/data/trunk/pictures/dudvmap.bmp"));
+  }
+  imageSelector->showAll();
+  imageSelector->setAbsCoor2D(400, 30);
+    OrxGui::GLGuiHandler::getInstance()->activateCursor();
+
+  /////
+}
+
+
+#include "class_list.h"
+void GameWorld::setImage(int i)
+{
+  const std::list<BaseObject*>* textures = ClassList::getList(CL_TEXTURE);
+
+  if(textures)
+  {
+    std::list<BaseObject*>::const_iterator test = textures->begin();
+    std::list<BaseObject*>::const_iterator lastOK = textures->begin();
+    while (true)
+    {
+      if (--i == 0 || test == textures->end())
+        break;
+      if (dynamic_cast<Texture*>(*test)->getTexture() != 0)
+        lastOK = test;
+      test++;
+    }
+    this->image->loadImageFromTexture(*dynamic_cast<Texture*>(*lastOK));
+    this->imageName->setText((*lastOK)->getName());
+    printf(">>>>> %d\n", dynamic_cast<Texture*>(*lastOK)->getTexture());
+  }
+}
+
+int GameWorld::getImage(const std::string& name)
+{
+  const std::list<BaseObject*>* textures = ClassList::getList(CL_TEXTURE);
+
+
+  if(textures)
+  {
+    int number = 0;
+    std::list<BaseObject*>::const_iterator test = textures->begin();
+    std::list<BaseObject*>::const_iterator lastOK = textures->begin();
+    while (true)
+    {
+      if (test == textures->end())
+        return 0;
+      if ((*test)->getName() == name)
+        return number;
+      number++;
+      test++;
+    }
+  }
+}
+
+
+
 /**
  * loads the parameters of a GameWorld from an XML-element
@@ -225,4 +307,7 @@
   PRINTF(3)("GameWorld::stop() - got stop signal\n");
   this->bRunning = false;
+  
+  OrxGui::GLGuiHandler::getInstance()->deactivateCursor(true);
+  delete OrxGui::GLGuiHandler::getInstance();
 }
 
@@ -256,4 +341,7 @@
 {
   PRINTF(3)("GameWorld::mainLoop() - Entering main loop\n");
+
+  this->enterGui();
+
 
   // initialize Timing
@@ -387,4 +475,8 @@
     if( likely(this->dataTank->gameRule != NULL))
       this->dataTank->gameRule->tick(this->dtS);
+      
+      
+    OrxGui::GLGuiHandler::getInstance()->tick(this->dtS);
+
   }
 }
@@ -446,5 +538,5 @@
   this->renderPassReflection();
   // redner the refraction texture
-  this->renderPassRefraction();
+  //this->renderPassRefraction();
   // render all
   this->renderPassAll();
@@ -559,6 +651,6 @@
   AtmosphericEngine::getInstance()->draw();
 
-  //glEnable(GL_DEPTH_TEST);
-  //glEnable(GL_LIGHTING);
+  glEnable(GL_DEPTH_TEST);
+  glEnable(GL_LIGHTING);
 
   // set camera
Index: branches/water/src/story_entities/game_world.h
===================================================================
--- branches/water/src/story_entities/game_world.h	(revision 8063)
+++ branches/water/src/story_entities/game_world.h	(revision 8089)
@@ -11,4 +11,6 @@
 #include "game_world_data.h"
 #include "playable.h"
+
+#include "glgui.h"
 
 namespace OrxShell { class Shell; };
@@ -32,4 +34,12 @@
     GameWorld ();
     virtual ~GameWorld ();
+
+//// HACK NOT TO THE TRUNK //
+    void enterGui();
+    void setImage(int i);
+    int getImage(const std::string& name);
+    OrxGui::GLGuiImage* image;
+    OrxGui::GLGuiInputLine* imageName;
+/////////////////////////////
 
     virtual void loadParams(const TiXmlElement* root);
