Index: /trunk/src/Makefile.am
===================================================================
--- /trunk/src/Makefile.am	(revision 5346)
+++ /trunk/src/Makefile.am	(revision 5347)
@@ -13,4 +13,5 @@
                        lib/gui/gl_gui/libORXglgui.a \
                        lib/graphics/importer/libORXimporter.a \
+		       lib/graphics/libORXgraphics.a \
                        lib/sound/libORXsound.a \
                        lib/event/libORXevent.a \
@@ -25,4 +26,5 @@
                 lib/gui/gl_gui/libORXglgui.a \
                 lib/graphics/importer/libORXimporter.a \
+	        lib/graphics/libORXgraphics.a \
                 lib/sound/libORXsound.a \
                 lib/event/libORXevent.a \
@@ -74,12 +76,4 @@
                   lib/coord/p_node.cc \
                   lib/coord/null_parent.cc \
-                  lib/graphics/graphics_engine.cc \
-                  lib/graphics/light.cc \
-                  lib/graphics/shader.cc \
-                  lib/graphics/text_engine/text.cc \
-                  lib/graphics/text_engine/font.cc \
-                  lib/graphics/text_engine/text_engine.cc \
-                  lib/graphics/render2D/element_2d.cc \
-                  lib/graphics/render2D/render_2d.cc \
                   lib/lang/base_object.cc \
                   lib/lang/class_list.cc \
@@ -149,10 +143,4 @@
                  lib/coord/p_node.h \
                  lib/coord/null_parent.h \
-                 lib/graphics/graphics_engine.h \
-                 lib/graphics/light.h \
-                 lib/graphics/shader.h \
-                 lib/graphics/text_engine/text.h \
-                 lib/graphics/text_engine/font.h \
-                 lib/graphics/text_engine/text_engine.h \
                  lib/lang/base_object.h \
                  lib/graphics/render2D/element_2d.h \
Index: /trunk/src/Makefile.in
===================================================================
--- /trunk/src/Makefile.in	(revision 5346)
+++ /trunk/src/Makefile.in	(revision 5347)
@@ -75,8 +75,4 @@
 	orxonox-test_bullet.$(OBJEXT) orxonox-crosshair.$(OBJEXT) \
 	orxonox-p_node.$(OBJEXT) orxonox-null_parent.$(OBJEXT) \
-	orxonox-graphics_engine.$(OBJEXT) orxonox-light.$(OBJEXT) \
-	orxonox-shader.$(OBJEXT) orxonox-text.$(OBJEXT) \
-	orxonox-font.$(OBJEXT) orxonox-text_engine.$(OBJEXT) \
-	orxonox-element_2d.$(OBJEXT) orxonox-render_2d.$(OBJEXT) \
 	orxonox-base_object.$(OBJEXT) orxonox-class_list.$(OBJEXT) \
 	orxonox-ini_parser.$(OBJEXT) orxonox-substring.$(OBJEXT) \
@@ -101,15 +97,11 @@
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-crosshair.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-curve.Po \
-@AMDEP_TRUE@	./$(DEPDIR)/orxonox-element_2d.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-environment.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-factory.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-fast_factory.Po \
-@AMDEP_TRUE@	./$(DEPDIR)/orxonox-font.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-game_loader.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-garbage_collector.Po \
-@AMDEP_TRUE@	./$(DEPDIR)/orxonox-graphics_engine.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-helper_functions.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-ini_parser.Po \
-@AMDEP_TRUE@	./$(DEPDIR)/orxonox-light.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-load_param.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-npc.Po \
@@ -121,8 +113,6 @@
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-player.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-projectile.Po \
-@AMDEP_TRUE@	./$(DEPDIR)/orxonox-render_2d.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-resource_manager.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-satellite.Po \
-@AMDEP_TRUE@	./$(DEPDIR)/orxonox-shader.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-skybox.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-skysphere.Po \
@@ -134,6 +124,4 @@
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-test_entity.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-test_gun.Po \
-@AMDEP_TRUE@	./$(DEPDIR)/orxonox-text.Po \
-@AMDEP_TRUE@	./$(DEPDIR)/orxonox-text_engine.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-track_manager.Po \
 @AMDEP_TRUE@	./$(DEPDIR)/orxonox-track_node.Po \
@@ -276,4 +264,5 @@
                        lib/gui/gl_gui/libORXglgui.a \
                        lib/graphics/importer/libORXimporter.a \
+		       lib/graphics/libORXgraphics.a \
                        lib/sound/libORXsound.a \
                        lib/event/libORXevent.a \
@@ -288,4 +277,5 @@
                 lib/gui/gl_gui/libORXglgui.a \
                 lib/graphics/importer/libORXimporter.a \
+	        lib/graphics/libORXgraphics.a \
                 lib/sound/libORXsound.a \
                 lib/event/libORXevent.a \
@@ -337,12 +327,4 @@
                   lib/coord/p_node.cc \
                   lib/coord/null_parent.cc \
-                  lib/graphics/graphics_engine.cc \
-                  lib/graphics/light.cc \
-                  lib/graphics/shader.cc \
-                  lib/graphics/text_engine/text.cc \
-                  lib/graphics/text_engine/font.cc \
-                  lib/graphics/text_engine/text_engine.cc \
-                  lib/graphics/render2D/element_2d.cc \
-                  lib/graphics/render2D/render_2d.cc \
                   lib/lang/base_object.cc \
                   lib/lang/class_list.cc \
@@ -412,10 +394,4 @@
                  lib/coord/p_node.h \
                  lib/coord/null_parent.h \
-                 lib/graphics/graphics_engine.h \
-                 lib/graphics/light.h \
-                 lib/graphics/shader.h \
-                 lib/graphics/text_engine/text.h \
-                 lib/graphics/text_engine/font.h \
-                 lib/graphics/text_engine/text_engine.h \
                  lib/lang/base_object.h \
                  lib/graphics/render2D/element_2d.h \
@@ -521,15 +497,11 @@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-crosshair.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-curve.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-element_2d.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-environment.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-factory.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-fast_factory.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-font.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-game_loader.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-garbage_collector.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-graphics_engine.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-helper_functions.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-ini_parser.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-light.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-load_param.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-npc.Po@am__quote@
@@ -541,8 +513,6 @@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-player.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-projectile.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-render_2d.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-resource_manager.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-satellite.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-shader.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-skybox.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-skysphere.Po@am__quote@
@@ -554,6 +524,4 @@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-test_entity.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-test_gun.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-text.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-text_engine.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-track_manager.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-track_node.Po@am__quote@
@@ -1205,132 +1173,4 @@
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-null_parent.obj `if test -f 'lib/coord/null_parent.cc'; then $(CYGPATH_W) 'lib/coord/null_parent.cc'; else $(CYGPATH_W) '$(srcdir)/lib/coord/null_parent.cc'; fi`
-
-orxonox-graphics_engine.o: lib/graphics/graphics_engine.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-graphics_engine.o -MD -MP -MF "$(DEPDIR)/orxonox-graphics_engine.Tpo" -c -o orxonox-graphics_engine.o `test -f 'lib/graphics/graphics_engine.cc' || echo '$(srcdir)/'`lib/graphics/graphics_engine.cc; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-graphics_engine.Tpo" "$(DEPDIR)/orxonox-graphics_engine.Po"; else rm -f "$(DEPDIR)/orxonox-graphics_engine.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/graphics_engine.cc' object='orxonox-graphics_engine.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-graphics_engine.Po' tmpdepfile='$(DEPDIR)/orxonox-graphics_engine.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-graphics_engine.o `test -f 'lib/graphics/graphics_engine.cc' || echo '$(srcdir)/'`lib/graphics/graphics_engine.cc
-
-orxonox-graphics_engine.obj: lib/graphics/graphics_engine.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-graphics_engine.obj -MD -MP -MF "$(DEPDIR)/orxonox-graphics_engine.Tpo" -c -o orxonox-graphics_engine.obj `if test -f 'lib/graphics/graphics_engine.cc'; then $(CYGPATH_W) 'lib/graphics/graphics_engine.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/graphics_engine.cc'; fi`; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-graphics_engine.Tpo" "$(DEPDIR)/orxonox-graphics_engine.Po"; else rm -f "$(DEPDIR)/orxonox-graphics_engine.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/graphics_engine.cc' object='orxonox-graphics_engine.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-graphics_engine.Po' tmpdepfile='$(DEPDIR)/orxonox-graphics_engine.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-graphics_engine.obj `if test -f 'lib/graphics/graphics_engine.cc'; then $(CYGPATH_W) 'lib/graphics/graphics_engine.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/graphics_engine.cc'; fi`
-
-orxonox-light.o: lib/graphics/light.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-light.o -MD -MP -MF "$(DEPDIR)/orxonox-light.Tpo" -c -o orxonox-light.o `test -f 'lib/graphics/light.cc' || echo '$(srcdir)/'`lib/graphics/light.cc; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-light.Tpo" "$(DEPDIR)/orxonox-light.Po"; else rm -f "$(DEPDIR)/orxonox-light.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/light.cc' object='orxonox-light.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-light.Po' tmpdepfile='$(DEPDIR)/orxonox-light.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-light.o `test -f 'lib/graphics/light.cc' || echo '$(srcdir)/'`lib/graphics/light.cc
-
-orxonox-light.obj: lib/graphics/light.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-light.obj -MD -MP -MF "$(DEPDIR)/orxonox-light.Tpo" -c -o orxonox-light.obj `if test -f 'lib/graphics/light.cc'; then $(CYGPATH_W) 'lib/graphics/light.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/light.cc'; fi`; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-light.Tpo" "$(DEPDIR)/orxonox-light.Po"; else rm -f "$(DEPDIR)/orxonox-light.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/light.cc' object='orxonox-light.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-light.Po' tmpdepfile='$(DEPDIR)/orxonox-light.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-light.obj `if test -f 'lib/graphics/light.cc'; then $(CYGPATH_W) 'lib/graphics/light.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/light.cc'; fi`
-
-orxonox-shader.o: lib/graphics/shader.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-shader.o -MD -MP -MF "$(DEPDIR)/orxonox-shader.Tpo" -c -o orxonox-shader.o `test -f 'lib/graphics/shader.cc' || echo '$(srcdir)/'`lib/graphics/shader.cc; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-shader.Tpo" "$(DEPDIR)/orxonox-shader.Po"; else rm -f "$(DEPDIR)/orxonox-shader.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/shader.cc' object='orxonox-shader.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-shader.Po' tmpdepfile='$(DEPDIR)/orxonox-shader.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-shader.o `test -f 'lib/graphics/shader.cc' || echo '$(srcdir)/'`lib/graphics/shader.cc
-
-orxonox-shader.obj: lib/graphics/shader.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-shader.obj -MD -MP -MF "$(DEPDIR)/orxonox-shader.Tpo" -c -o orxonox-shader.obj `if test -f 'lib/graphics/shader.cc'; then $(CYGPATH_W) 'lib/graphics/shader.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/shader.cc'; fi`; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-shader.Tpo" "$(DEPDIR)/orxonox-shader.Po"; else rm -f "$(DEPDIR)/orxonox-shader.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/shader.cc' object='orxonox-shader.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-shader.Po' tmpdepfile='$(DEPDIR)/orxonox-shader.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-shader.obj `if test -f 'lib/graphics/shader.cc'; then $(CYGPATH_W) 'lib/graphics/shader.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/shader.cc'; fi`
-
-orxonox-text.o: lib/graphics/text_engine/text.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-text.o -MD -MP -MF "$(DEPDIR)/orxonox-text.Tpo" -c -o orxonox-text.o `test -f 'lib/graphics/text_engine/text.cc' || echo '$(srcdir)/'`lib/graphics/text_engine/text.cc; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-text.Tpo" "$(DEPDIR)/orxonox-text.Po"; else rm -f "$(DEPDIR)/orxonox-text.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/text_engine/text.cc' object='orxonox-text.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-text.Po' tmpdepfile='$(DEPDIR)/orxonox-text.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-text.o `test -f 'lib/graphics/text_engine/text.cc' || echo '$(srcdir)/'`lib/graphics/text_engine/text.cc
-
-orxonox-text.obj: lib/graphics/text_engine/text.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-text.obj -MD -MP -MF "$(DEPDIR)/orxonox-text.Tpo" -c -o orxonox-text.obj `if test -f 'lib/graphics/text_engine/text.cc'; then $(CYGPATH_W) 'lib/graphics/text_engine/text.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/text_engine/text.cc'; fi`; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-text.Tpo" "$(DEPDIR)/orxonox-text.Po"; else rm -f "$(DEPDIR)/orxonox-text.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/text_engine/text.cc' object='orxonox-text.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-text.Po' tmpdepfile='$(DEPDIR)/orxonox-text.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-text.obj `if test -f 'lib/graphics/text_engine/text.cc'; then $(CYGPATH_W) 'lib/graphics/text_engine/text.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/text_engine/text.cc'; fi`
-
-orxonox-font.o: lib/graphics/text_engine/font.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-font.o -MD -MP -MF "$(DEPDIR)/orxonox-font.Tpo" -c -o orxonox-font.o `test -f 'lib/graphics/text_engine/font.cc' || echo '$(srcdir)/'`lib/graphics/text_engine/font.cc; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-font.Tpo" "$(DEPDIR)/orxonox-font.Po"; else rm -f "$(DEPDIR)/orxonox-font.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/text_engine/font.cc' object='orxonox-font.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-font.Po' tmpdepfile='$(DEPDIR)/orxonox-font.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-font.o `test -f 'lib/graphics/text_engine/font.cc' || echo '$(srcdir)/'`lib/graphics/text_engine/font.cc
-
-orxonox-font.obj: lib/graphics/text_engine/font.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-font.obj -MD -MP -MF "$(DEPDIR)/orxonox-font.Tpo" -c -o orxonox-font.obj `if test -f 'lib/graphics/text_engine/font.cc'; then $(CYGPATH_W) 'lib/graphics/text_engine/font.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/text_engine/font.cc'; fi`; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-font.Tpo" "$(DEPDIR)/orxonox-font.Po"; else rm -f "$(DEPDIR)/orxonox-font.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/text_engine/font.cc' object='orxonox-font.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-font.Po' tmpdepfile='$(DEPDIR)/orxonox-font.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-font.obj `if test -f 'lib/graphics/text_engine/font.cc'; then $(CYGPATH_W) 'lib/graphics/text_engine/font.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/text_engine/font.cc'; fi`
-
-orxonox-text_engine.o: lib/graphics/text_engine/text_engine.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-text_engine.o -MD -MP -MF "$(DEPDIR)/orxonox-text_engine.Tpo" -c -o orxonox-text_engine.o `test -f 'lib/graphics/text_engine/text_engine.cc' || echo '$(srcdir)/'`lib/graphics/text_engine/text_engine.cc; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-text_engine.Tpo" "$(DEPDIR)/orxonox-text_engine.Po"; else rm -f "$(DEPDIR)/orxonox-text_engine.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/text_engine/text_engine.cc' object='orxonox-text_engine.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-text_engine.Po' tmpdepfile='$(DEPDIR)/orxonox-text_engine.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-text_engine.o `test -f 'lib/graphics/text_engine/text_engine.cc' || echo '$(srcdir)/'`lib/graphics/text_engine/text_engine.cc
-
-orxonox-text_engine.obj: lib/graphics/text_engine/text_engine.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-text_engine.obj -MD -MP -MF "$(DEPDIR)/orxonox-text_engine.Tpo" -c -o orxonox-text_engine.obj `if test -f 'lib/graphics/text_engine/text_engine.cc'; then $(CYGPATH_W) 'lib/graphics/text_engine/text_engine.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/text_engine/text_engine.cc'; fi`; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-text_engine.Tpo" "$(DEPDIR)/orxonox-text_engine.Po"; else rm -f "$(DEPDIR)/orxonox-text_engine.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/text_engine/text_engine.cc' object='orxonox-text_engine.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-text_engine.Po' tmpdepfile='$(DEPDIR)/orxonox-text_engine.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-text_engine.obj `if test -f 'lib/graphics/text_engine/text_engine.cc'; then $(CYGPATH_W) 'lib/graphics/text_engine/text_engine.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/text_engine/text_engine.cc'; fi`
-
-orxonox-element_2d.o: lib/graphics/render2D/element_2d.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-element_2d.o -MD -MP -MF "$(DEPDIR)/orxonox-element_2d.Tpo" -c -o orxonox-element_2d.o `test -f 'lib/graphics/render2D/element_2d.cc' || echo '$(srcdir)/'`lib/graphics/render2D/element_2d.cc; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-element_2d.Tpo" "$(DEPDIR)/orxonox-element_2d.Po"; else rm -f "$(DEPDIR)/orxonox-element_2d.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/render2D/element_2d.cc' object='orxonox-element_2d.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-element_2d.Po' tmpdepfile='$(DEPDIR)/orxonox-element_2d.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-element_2d.o `test -f 'lib/graphics/render2D/element_2d.cc' || echo '$(srcdir)/'`lib/graphics/render2D/element_2d.cc
-
-orxonox-element_2d.obj: lib/graphics/render2D/element_2d.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-element_2d.obj -MD -MP -MF "$(DEPDIR)/orxonox-element_2d.Tpo" -c -o orxonox-element_2d.obj `if test -f 'lib/graphics/render2D/element_2d.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/element_2d.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/element_2d.cc'; fi`; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-element_2d.Tpo" "$(DEPDIR)/orxonox-element_2d.Po"; else rm -f "$(DEPDIR)/orxonox-element_2d.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/render2D/element_2d.cc' object='orxonox-element_2d.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-element_2d.Po' tmpdepfile='$(DEPDIR)/orxonox-element_2d.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-element_2d.obj `if test -f 'lib/graphics/render2D/element_2d.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/element_2d.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/element_2d.cc'; fi`
-
-orxonox-render_2d.o: lib/graphics/render2D/render_2d.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-render_2d.o -MD -MP -MF "$(DEPDIR)/orxonox-render_2d.Tpo" -c -o orxonox-render_2d.o `test -f 'lib/graphics/render2D/render_2d.cc' || echo '$(srcdir)/'`lib/graphics/render2D/render_2d.cc; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-render_2d.Tpo" "$(DEPDIR)/orxonox-render_2d.Po"; else rm -f "$(DEPDIR)/orxonox-render_2d.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/render2D/render_2d.cc' object='orxonox-render_2d.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-render_2d.Po' tmpdepfile='$(DEPDIR)/orxonox-render_2d.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-render_2d.o `test -f 'lib/graphics/render2D/render_2d.cc' || echo '$(srcdir)/'`lib/graphics/render2D/render_2d.cc
-
-orxonox-render_2d.obj: lib/graphics/render2D/render_2d.cc
-@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-render_2d.obj -MD -MP -MF "$(DEPDIR)/orxonox-render_2d.Tpo" -c -o orxonox-render_2d.obj `if test -f 'lib/graphics/render2D/render_2d.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/render_2d.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/render_2d.cc'; fi`; \
-@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/orxonox-render_2d.Tpo" "$(DEPDIR)/orxonox-render_2d.Po"; else rm -f "$(DEPDIR)/orxonox-render_2d.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='lib/graphics/render2D/render_2d.cc' object='orxonox-render_2d.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/orxonox-render_2d.Po' tmpdepfile='$(DEPDIR)/orxonox-render_2d.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-render_2d.obj `if test -f 'lib/graphics/render2D/render_2d.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/render_2d.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/render_2d.cc'; fi`
 
 orxonox-base_object.o: lib/lang/base_object.cc
@@ -1600,5 +1440,5 @@
 
 distdir: $(DISTFILES)
-	$(mkdir_p) $(distdir)/defs $(distdir)/lib/coord $(distdir)/lib/graphics $(distdir)/lib/graphics/render2D $(distdir)/lib/graphics/text_engine $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/proto $(distdir)/story_entities $(distdir)/subprojects $(distdir)/util $(distdir)/util/animation $(distdir)/util/loading $(distdir)/util/track $(distdir)/world_entities $(distdir)/world_entities/weapons
+	$(mkdir_p) $(distdir)/defs $(distdir)/lib/coord $(distdir)/lib/graphics/render2D $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/proto $(distdir)/story_entities $(distdir)/subprojects $(distdir)/util $(distdir)/util/animation $(distdir)/util/loading $(distdir)/util/track $(distdir)/world_entities $(distdir)/world_entities/weapons
 	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
 	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
Index: /trunk/src/lib/graphics/Makefile.am
===================================================================
--- /trunk/src/lib/graphics/Makefile.am	(revision 5346)
+++ /trunk/src/lib/graphics/Makefile.am	(revision 5347)
@@ -1,4 +1,28 @@
+MAINSRCDIR=../..
+include $(MAINSRCDIR)/defs/include_paths.am
+
+noinst_LIBRARIES = libORXgraphics.a
+
+libORXgraphics_a_SOURCES = graphics_engine.cc \
+			   light.cc \
+			   shader.cc \
+			   render2D/render_2d.cc \
+			   render2D/element_2d.cc \
+			   text_engine/text_engine.cc \
+			   text_engine/text.cc \
+			   text_engine/font.cc
+
+noinst_HEADERS = graphics_engine.h \
+		 light.h \
+		 shader.h \
+		 render2D/render_2d.h \
+		 render2D/element_2d.h \
+		 text_engine/text_engine.h \
+		 text_engine/text.h \
+		 text_engine/font.h
+
+
 SUBDIRS = importer \
           spatial_separation
 
-EXTRA_DIST = text_engine/font.xpm
+EXTRA_DIST = text_engine/default_font.xpm
Index: /trunk/src/lib/graphics/Makefile.in
===================================================================
--- /trunk/src/lib/graphics/Makefile.in	(revision 5346)
+++ /trunk/src/lib/graphics/Makefile.in	(revision 5347)
@@ -14,4 +14,8 @@
 
 @SET_MAKE@
+
+
+SOURCES = $(libORXgraphics_a_SOURCES)
+
 srcdir = @srcdir@
 top_srcdir = @top_srcdir@
@@ -36,5 +40,6 @@
 host_triplet = @host@
 subdir = src/lib/graphics
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
+	$(srcdir)/Makefile.in
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
@@ -44,6 +49,29 @@
 CONFIG_HEADER = $(top_builddir)/config.h
 CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
+LIBRARIES = $(noinst_LIBRARIES)
+AR = ar
+ARFLAGS = cru
+libORXgraphics_a_AR = $(AR) $(ARFLAGS)
+libORXgraphics_a_LIBADD =
+am_libORXgraphics_a_OBJECTS = graphics_engine.$(OBJEXT) \
+	light.$(OBJEXT) shader.$(OBJEXT) render_2d.$(OBJEXT) \
+	element_2d.$(OBJEXT) text_engine.$(OBJEXT) text.$(OBJEXT) \
+	font.$(OBJEXT)
+libORXgraphics_a_OBJECTS = $(am_libORXgraphics_a_OBJECTS)
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/element_2d.Po ./$(DEPDIR)/font.Po \
+@AMDEP_TRUE@	./$(DEPDIR)/graphics_engine.Po \
+@AMDEP_TRUE@	./$(DEPDIR)/light.Po ./$(DEPDIR)/render_2d.Po \
+@AMDEP_TRUE@	./$(DEPDIR)/shader.Po ./$(DEPDIR)/text.Po \
+@AMDEP_TRUE@	./$(DEPDIR)/text_engine.Po
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+CXXLD = $(CXX)
+CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
+	-o $@
+SOURCES = $(libORXgraphics_a_SOURCES)
+DIST_SOURCES = $(libORXgraphics_a_SOURCES)
 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
 	html-recursive info-recursive install-data-recursive \
@@ -52,4 +80,5 @@
 	pdf-recursive ps-recursive uninstall-info-recursive \
 	uninstall-recursive
+HEADERS = $(noinst_HEADERS)
 ETAGS = etags
 CTAGS = ctags
@@ -164,11 +193,32 @@
 target_os = @target_os@
 target_vendor = @target_vendor@
+MAINSRCDIR = ../..
+noinst_LIBRARIES = libORXgraphics.a
+libORXgraphics_a_SOURCES = graphics_engine.cc \
+			   light.cc \
+			   shader.cc \
+			   render2D/render_2d.cc \
+			   render2D/element_2d.cc \
+			   text_engine/text_engine.cc \
+			   text_engine/text.cc \
+			   text_engine/font.cc
+
+noinst_HEADERS = graphics_engine.h \
+		 light.h \
+		 shader.h \
+		 render2D/render_2d.h \
+		 render2D/element_2d.h \
+		 text_engine/text_engine.h \
+		 text_engine/text.h \
+		 text_engine/font.h
+
 SUBDIRS = importer \
           spatial_separation
 
-EXTRA_DIST = text_engine/font.xpm
+EXTRA_DIST = text_engine/default_font.xpm
 all: all-recursive
 
 .SUFFIXES:
+.SUFFIXES: .cc .o .obj
 $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
 	@for dep in $?; do \
@@ -200,4 +250,122 @@
 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+clean-noinstLIBRARIES:
+	-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
+libORXgraphics.a: $(libORXgraphics_a_OBJECTS) $(libORXgraphics_a_DEPENDENCIES) 
+	-rm -f libORXgraphics.a
+	$(libORXgraphics_a_AR) libORXgraphics.a $(libORXgraphics_a_OBJECTS) $(libORXgraphics_a_LIBADD)
+	$(RANLIB) libORXgraphics.a
+
+mostlyclean-compile:
+	-rm -f *.$(OBJEXT)
+
+distclean-compile:
+	-rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/element_2d.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/graphics_engine.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/light.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/render_2d.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shader.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text_engine.Po@am__quote@
+
+.cc.o:
+@am__fastdepCXX_TRUE@	if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ $<
+
+.cc.obj:
+@am__fastdepCXX_TRUE@	if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+render_2d.o: render2D/render_2d.cc
+@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT render_2d.o -MD -MP -MF "$(DEPDIR)/render_2d.Tpo" -c -o render_2d.o `test -f 'render2D/render_2d.cc' || echo '$(srcdir)/'`render2D/render_2d.cc; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/render_2d.Tpo" "$(DEPDIR)/render_2d.Po"; else rm -f "$(DEPDIR)/render_2d.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='render2D/render_2d.cc' object='render_2d.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/render_2d.Po' tmpdepfile='$(DEPDIR)/render_2d.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o render_2d.o `test -f 'render2D/render_2d.cc' || echo '$(srcdir)/'`render2D/render_2d.cc
+
+render_2d.obj: render2D/render_2d.cc
+@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT render_2d.obj -MD -MP -MF "$(DEPDIR)/render_2d.Tpo" -c -o render_2d.obj `if test -f 'render2D/render_2d.cc'; then $(CYGPATH_W) 'render2D/render_2d.cc'; else $(CYGPATH_W) '$(srcdir)/render2D/render_2d.cc'; fi`; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/render_2d.Tpo" "$(DEPDIR)/render_2d.Po"; else rm -f "$(DEPDIR)/render_2d.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='render2D/render_2d.cc' object='render_2d.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/render_2d.Po' tmpdepfile='$(DEPDIR)/render_2d.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o render_2d.obj `if test -f 'render2D/render_2d.cc'; then $(CYGPATH_W) 'render2D/render_2d.cc'; else $(CYGPATH_W) '$(srcdir)/render2D/render_2d.cc'; fi`
+
+element_2d.o: render2D/element_2d.cc
+@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT element_2d.o -MD -MP -MF "$(DEPDIR)/element_2d.Tpo" -c -o element_2d.o `test -f 'render2D/element_2d.cc' || echo '$(srcdir)/'`render2D/element_2d.cc; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/element_2d.Tpo" "$(DEPDIR)/element_2d.Po"; else rm -f "$(DEPDIR)/element_2d.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='render2D/element_2d.cc' object='element_2d.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/element_2d.Po' tmpdepfile='$(DEPDIR)/element_2d.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o element_2d.o `test -f 'render2D/element_2d.cc' || echo '$(srcdir)/'`render2D/element_2d.cc
+
+element_2d.obj: render2D/element_2d.cc
+@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT element_2d.obj -MD -MP -MF "$(DEPDIR)/element_2d.Tpo" -c -o element_2d.obj `if test -f 'render2D/element_2d.cc'; then $(CYGPATH_W) 'render2D/element_2d.cc'; else $(CYGPATH_W) '$(srcdir)/render2D/element_2d.cc'; fi`; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/element_2d.Tpo" "$(DEPDIR)/element_2d.Po"; else rm -f "$(DEPDIR)/element_2d.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='render2D/element_2d.cc' object='element_2d.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/element_2d.Po' tmpdepfile='$(DEPDIR)/element_2d.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o element_2d.obj `if test -f 'render2D/element_2d.cc'; then $(CYGPATH_W) 'render2D/element_2d.cc'; else $(CYGPATH_W) '$(srcdir)/render2D/element_2d.cc'; fi`
+
+text_engine.o: text_engine/text_engine.cc
+@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT text_engine.o -MD -MP -MF "$(DEPDIR)/text_engine.Tpo" -c -o text_engine.o `test -f 'text_engine/text_engine.cc' || echo '$(srcdir)/'`text_engine/text_engine.cc; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/text_engine.Tpo" "$(DEPDIR)/text_engine.Po"; else rm -f "$(DEPDIR)/text_engine.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='text_engine/text_engine.cc' object='text_engine.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/text_engine.Po' tmpdepfile='$(DEPDIR)/text_engine.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o text_engine.o `test -f 'text_engine/text_engine.cc' || echo '$(srcdir)/'`text_engine/text_engine.cc
+
+text_engine.obj: text_engine/text_engine.cc
+@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT text_engine.obj -MD -MP -MF "$(DEPDIR)/text_engine.Tpo" -c -o text_engine.obj `if test -f 'text_engine/text_engine.cc'; then $(CYGPATH_W) 'text_engine/text_engine.cc'; else $(CYGPATH_W) '$(srcdir)/text_engine/text_engine.cc'; fi`; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/text_engine.Tpo" "$(DEPDIR)/text_engine.Po"; else rm -f "$(DEPDIR)/text_engine.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='text_engine/text_engine.cc' object='text_engine.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/text_engine.Po' tmpdepfile='$(DEPDIR)/text_engine.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o text_engine.obj `if test -f 'text_engine/text_engine.cc'; then $(CYGPATH_W) 'text_engine/text_engine.cc'; else $(CYGPATH_W) '$(srcdir)/text_engine/text_engine.cc'; fi`
+
+text.o: text_engine/text.cc
+@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT text.o -MD -MP -MF "$(DEPDIR)/text.Tpo" -c -o text.o `test -f 'text_engine/text.cc' || echo '$(srcdir)/'`text_engine/text.cc; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/text.Tpo" "$(DEPDIR)/text.Po"; else rm -f "$(DEPDIR)/text.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='text_engine/text.cc' object='text.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/text.Po' tmpdepfile='$(DEPDIR)/text.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o text.o `test -f 'text_engine/text.cc' || echo '$(srcdir)/'`text_engine/text.cc
+
+text.obj: text_engine/text.cc
+@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT text.obj -MD -MP -MF "$(DEPDIR)/text.Tpo" -c -o text.obj `if test -f 'text_engine/text.cc'; then $(CYGPATH_W) 'text_engine/text.cc'; else $(CYGPATH_W) '$(srcdir)/text_engine/text.cc'; fi`; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/text.Tpo" "$(DEPDIR)/text.Po"; else rm -f "$(DEPDIR)/text.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='text_engine/text.cc' object='text.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/text.Po' tmpdepfile='$(DEPDIR)/text.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o text.obj `if test -f 'text_engine/text.cc'; then $(CYGPATH_W) 'text_engine/text.cc'; else $(CYGPATH_W) '$(srcdir)/text_engine/text.cc'; fi`
+
+font.o: text_engine/font.cc
+@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT font.o -MD -MP -MF "$(DEPDIR)/font.Tpo" -c -o font.o `test -f 'text_engine/font.cc' || echo '$(srcdir)/'`text_engine/font.cc; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/font.Tpo" "$(DEPDIR)/font.Po"; else rm -f "$(DEPDIR)/font.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='text_engine/font.cc' object='font.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/font.Po' tmpdepfile='$(DEPDIR)/font.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o font.o `test -f 'text_engine/font.cc' || echo '$(srcdir)/'`text_engine/font.cc
+
+font.obj: text_engine/font.cc
+@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT font.obj -MD -MP -MF "$(DEPDIR)/font.Tpo" -c -o font.obj `if test -f 'text_engine/font.cc'; then $(CYGPATH_W) 'text_engine/font.cc'; else $(CYGPATH_W) '$(srcdir)/text_engine/font.cc'; fi`; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/font.Tpo" "$(DEPDIR)/font.Po"; else rm -f "$(DEPDIR)/font.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='text_engine/font.cc' object='font.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/font.Po' tmpdepfile='$(DEPDIR)/font.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o font.obj `if test -f 'text_engine/font.cc'; then $(CYGPATH_W) 'text_engine/font.cc'; else $(CYGPATH_W) '$(srcdir)/text_engine/font.cc'; fi`
 uninstall-info-am:
 
@@ -323,5 +491,5 @@
 
 distdir: $(DISTFILES)
-	$(mkdir_p) $(distdir)/text_engine
+	$(mkdir_p) $(distdir)/render2D $(distdir)/text_engine
 	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
 	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
@@ -365,5 +533,5 @@
 check-am: all-am
 check: check-recursive
-all-am: Makefile
+all-am: Makefile $(LIBRARIES) $(HEADERS)
 installdirs: installdirs-recursive
 installdirs-am:
@@ -394,9 +562,11 @@
 clean: clean-recursive
 
-clean-am: clean-generic mostlyclean-am
+clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
 
 distclean: distclean-recursive
+	-rm -rf ./$(DEPDIR)
 	-rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-tags
+distclean-am: clean-am distclean-compile distclean-generic \
+	distclean-tags
 
 dvi: dvi-recursive
@@ -421,4 +591,5 @@
 
 maintainer-clean: maintainer-clean-recursive
+	-rm -rf ./$(DEPDIR)
 	-rm -f Makefile
 maintainer-clean-am: distclean-am maintainer-clean-generic
@@ -426,5 +597,5 @@
 mostlyclean: mostlyclean-recursive
 
-mostlyclean-am: mostlyclean-generic
+mostlyclean-am: mostlyclean-compile mostlyclean-generic
 
 pdf: pdf-recursive
@@ -441,15 +612,17 @@
 
 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
-	clean clean-generic clean-recursive ctags ctags-recursive \
-	distclean distclean-generic distclean-recursive distclean-tags \
-	distdir dvi dvi-am html html-am info info-am install \
-	install-am install-data install-data-am install-exec \
-	install-exec-am install-info install-info-am install-man \
-	install-strip installcheck installcheck-am installdirs \
-	installdirs-am maintainer-clean maintainer-clean-generic \
-	maintainer-clean-recursive mostlyclean mostlyclean-generic \
-	mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
-	uninstall uninstall-am uninstall-info-am
-
+	clean clean-generic clean-noinstLIBRARIES clean-recursive \
+	ctags ctags-recursive distclean distclean-compile \
+	distclean-generic distclean-recursive distclean-tags distdir \
+	dvi dvi-am html html-am info info-am install install-am \
+	install-data install-data-am install-exec install-exec-am \
+	install-info install-info-am install-man install-strip \
+	installcheck installcheck-am installdirs installdirs-am \
+	maintainer-clean maintainer-clean-generic \
+	maintainer-clean-recursive mostlyclean mostlyclean-compile \
+	mostlyclean-generic mostlyclean-recursive pdf pdf-am ps ps-am \
+	tags tags-recursive uninstall uninstall-am uninstall-info-am
+
+include $(MAINSRCDIR)/defs/include_paths.am
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
Index: /trunk/src/lib/graphics/graphics_engine.cc
===================================================================
--- /trunk/src/lib/graphics/graphics_engine.cc	(revision 5346)
+++ /trunk/src/lib/graphics/graphics_engine.cc	(revision 5347)
@@ -21,8 +21,9 @@
 
 #include "render_2d.h"
+#include "text_engine.h"
 #include "light.h"
+#include "shader.h"
 #include "debug.h"
-#include "text_engine.h"
-#include "shader.h"
+
 #include "ini_parser.h"
 #include "substring.h"
@@ -84,7 +85,8 @@
   delete this->hwExtensions;
 
-  delete Render2D::getInstance();
   //TextEngine
   delete TextEngine::getInstance();
+  // render 2D
+  delete Render2D::getInstance();
 
   SDL_QuitSubSystem(SDL_INIT_VIDEO);
Index: /trunk/src/lib/graphics/text_engine/default_font.xpm
===================================================================
--- /trunk/src/lib/graphics/text_engine/default_font.xpm	(revision 5347)
+++ /trunk/src/lib/graphics/text_engine/default_font.xpm	(revision 5347)
@@ -0,0 +1,268 @@
+/* XPM */
+static char * font_xpm[] = {
+"256 256 9 1",
+" 	c None",
+".	c #FEFEFE",
+"+	c #FDFDFD",
+"@	c #FAFAFA",
+"#	c #FBFBFB",
+"$	c #F8F8F8",
+"%	c #FCFCFC",
+"&	c #F9F9F9",
+"*	c #F7F7F7",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"  .               .               .               .               .               .               .               .               .               .     .         .     .         .     .         .     .         .     .         .     .         .     .       ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"  .               .               .               .               .               .               .               .               .               .               .               .               .               .               .               .             ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"  .               .               .               .               .               .               .               .               .               .               .               .     .         .     .         .     .         .     .         .     .       ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"  .               .               .               .               .               .               .               .               .               .               .               .               .               .               .               .             ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                  ..              ...             .                    ..         .                 +......       ..                 ..            .              .               .               ..              .               ..                   ..       ",
+"                  ..              ...                                 ...                          ........       .+               +...           ...+                                            ..                              ..                  ..        ",
+"                  ..              ...                              .........                       ..              @               ..               ..+                                            #                                                  .+        ",
+"                  ..                                              ..........                        ...                           ...                ..                                                                                              ..$        ",
+"                  ++                                              ... #..                          ...++  .+                      ...                ..                                                                                             #..         ",
+"                                                                  %......%%%.                     ...  %....                      ...                ..                                                                                             ..          ",
+"                  ..                                               +........+                     ..........+                     ...                .+                                                                                            +..          ",
+"                  ..                              .                    ..  ..     .               ...........#                    ...                .+           .               .                               .                                ..           ",
+"                  ..                                              &..........                       .....+                        ...                .+                                                                                            %@           ",
+"                                                                  &.........%                                                     ...                .+                                                                                                         ",
+"                                                                      ...                                                          ..               ..+                                                                                                         ",
+"                                                                                                                                   +...           ....#                                                                                                         ",
+"                                                                                                                                    ++.           ..%                                                                                                           ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"   .+....+#        ....           ..........      ..........             ..       ...........      +%.++%%##      ..........       .......+        +.....+%       ..              ..              .               .               .                ......       ",
+"  ..........      .....           ..........      ........%              ..       ...........      .........      ..........       ........+      &........+      ..              ..                                                               ......+      ",
+"  ...     .+        ...                   %.                      ..     ..                                                        ..    ..+      &..     ..                                                                                           ...      ",
+"  ..      ..        ...            +........             ..+      ..........       ........%      .........                        ........       @.........      ..              ..                                                                .....+      ",
+"  ..      ..        ...           ..........            .....     ..........       .........%     ..........           ..%         ........+       +........      ..              ..                                                                .....       ",
+"  ..      ..        ...                                   ...                             ...     ...     ..          @.+         ...     ..#                                      #                                                                            ",
+"  %......#.+        ...           ..........       ..........            ..        ..........     #..@@%+...         ...          ..........$      ........                                                                                          .          ",
+"   ........         ...           ...........     &.........             ..       &.........+      +........        ..+           ..........      .........                                                                                         ..          ",
+"     ....+           .            ..........       ........              ..        ........+         ......         ..              .......        ......+                                                                                           .          ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"  .               .........+      .........%       ........       ........+.       %.........      +........       .+.......      ...      ...    ...                  ...        ...     ..&     ...              .%.       .#.   +#%      ..     %.......+    ",
+"                  ...........     ..........#     .........       ..........+     +..........%    +.........      ..........      ...      ...    ...                  ...        ...   ++.       ...             %...+     ....  %...+     ..     ..........@  ",
+"                           %.%            ...     +..                      ..     @.       +..    +.+             +..             ...      ...    ...                  ...        ...  ..+        ...             ..#..     ..... ... .#    ..    +..      ..%  ",
+"                   ...........    ..........      ..                       ..     &...........    ..........      ...  ....       ... *.......    ...                  ...        ...  ..         ...             ... ..   .. ... ...  .%   ..    ...       ..  ",
+"                  ............    ..........      ..              ...      ..     &.........+     ..........      ...  .....      ... *.......    ...                  ...        ...  .#         ...             ... +.   .. ... ...  $..  ..    ...       ..  ",
+"                  ...      ...    ...      .+     ..              ...      ..     &..             ...             ...     ..      ...      ...    ...                  ...        ...  ...        ...             ...  .% +.  ... ...   +.. ..    +..       ..  ",
+"                  ............    ...........     %.+......       ..........+      ..........     ...             #.........      ...      ...    ...              ......+        ...   #.+       %.........      ...  ....#  ... ...    .....    %........#..  ",
+"  .               .........%..    ...........      +.......       ..........       %..........    ...              .........      ...      ...    ...             .......         ...    ...       .........      ...   ...   ... ...     ...@     +........+   ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"  .........%.      .+......+.     .........%       .........      ....... ....... ..       ..      ..       ..+   %..    ...    +. ...     ...    ...      ...    ..........         ..            ..              ..             .               ........      ",
+"  ..........+     %..........+    ..........#     ..........      &&&&#.. ....... ..       ..      %..      ..     ..    ...@   ..  ...   ..+     ...      ...     .........       ....            ..              ...                                          ",
+"           ..     %..      ..%            ...     ..+                  .. ..      ..       ..       ..     +.      ...   ....   ..   %.. ...      %..      ...                     ..               ..              ..+                                         ",
+"  ..........+     ..       ...    ..........%     .........+           .. ..      ..       ..       ..+   ..+       ..  .. .+  %..    .....        ..........                     ...               ..               ..                                         ",
+"  .........+.     ..       ...    ........+.       .........+          .. ..      ..       ..        ..   ..        ..  +. ..  +.     ....+         ........$        ....         ...                ..              ..                                         ",
+"  ...             ..%  %%  %..    ...   #.+                ..          .. ..      %..      ..        ..+ %..        ... .. ..+ ..    ... ...                        ..%           ...                ..              ..                                         ",
+"  ..              %......#+..#    ..     +..       ..........          .. ..       .........%         ..#..          +...   ....+   ...   ...         ....         .........      ...                 ..             .+                                         ",
+"  ..               %.........     ..      ..@     &..........          .. ..       #........           +..%          %..+   ....   ...     ...        ....        ...........     ...                 ..             .+                                         ",
+"                       ..                  ..                                                                                                                                     ...                                .+                                         ",
+"                                            ..                                                                                                                                    ...                                .+                                         ",
+"                                             ..                                                                                                                                    ..                               ..+                                         ",
+"                                                                                                                                                                                   +...                           ....                                          ",
+"                                                                                                                                                                                    %+.                            .%                                           ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"   ..             .........+      .........%       ........       ........+.       +........       +........       .+.......      ...      ...    ...                  ...        ...     ..&     ...              .+.       .%.   +%+      ..     %.......++   ",
+"                  .........+.     ..........#     +........        .........+     #.........      +.........      +.........      ...      ...    ...                  ...        ...   ...       ...             %...+     ....  %...+     ..     ..........#  ",
+"                           %.%            ...     +..                      ..     +.              +.+             +..             ...      ...    ...                  ...        ...  ..+        ...             ..#..     ..... ... .%    ..    +..      ..%  ",
+"                   ...........    ..........      ..               .       ..     ..........      ..........      ...  ....       ... *.......    ...                  ...        ...  ..         ...             ... ..   .. ... ...  .+   ..    ...       ..  ",
+"                  ............    ..........      ..              ...      ..     ..........      ..........      ...  .....      ... *.......    ...                  ...        ...  .%         ...             ... +.   .. ... ...  $..  ..    ...       ..  ",
+"                  ...      ...    ...      .+     ...             ...      ..     ...             ...             ...     ..      ...      ...    ...                  ...        ...  ...        ...             ...  .% +.  ... ...   +.. ..    +..       ..  ",
+"                  ............    ...........     %.+......       ..........+     %.........      ...             #.........      ...      ...    ...              ......+        ...   #.+       %.........      ...   ...#  ... ...    .....     ........%..  ",
+"                  .........%..    ...........      +.......       .........+       %........      ...              .........      ...      ...    ...             .......         ...     ..+      .........      ...   ...   ... ...     ...@     +........+   ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"  .........+.      .+......+.     .........+.      .........      ....... ....... ..       ..      ..       ..+   %..    ...    +. ...     ...    ...      ...    ..........      .               ...             .               .               .             ",
+"  ..........+     %..........%    ..........%     ..........       &&&#.. ....... ..       ..      %..      ..     ..    ...@   ..  ...   ..+     ...      ...     .........                      ...                                                           ",
+"           ..     +..      ..%             ..     ..+                  .. ..      ..       ..       ..     +.      ...   ....   ..   %.. ...      #..      ...                                    ..                                                            ",
+"  ..........+     ..       ...    ..........%     +........+           .. ..      ..       ..       +..   ..+       ..  .. .+  %.+    .....        ..........          ..                                                                                       ",
+"  .........+      ..       ...    .........+       .........+          .. ..      ..       ..        ..   ..        ..  +. ..  +.     ....+         ........$        ....                                                                                       ",
+"  ...             ..%  ++  %..    ...      .%              ..          .. ..      %..      ..         .+ +..        +.. ..  .+ ..    ... ...                        ..#                           &&                                                            ",
+"  ..              #......#+..#    ..       ..     &..........          .. ..       .........+         +.%..          +...   ....+   ...   ...         ....         .........                      ...                                                           ",
+"  ..               %.........     ..       ...    &..........          .. ..       #........           +..           %..+   ....   ...     ...        ....        ...........                     ...                                                           ",
+"                       ..                                                                                                                                                                                                                                       ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"  .               .               .               .               .               .               .               .               .               .                                                                                                             ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                  ..                   ..           .+.....                         ..      ...   ...                             .. ..                                                                                                                         ",
+"                  ..                   ...          ......                          ..      ...   ...                             ..  .                                                                                                                         ",
+"                                   %.......         ...                             ..      ...   ..                                                                                                                                                            ",
+"                  ..              +........       #%.....                         . +......... .                                                                                                                                                                ",
+"                  ..              +..  +.         .....%#                         #  .+.....+@ #                                                                                                                                                                ",
+"                  ..              ..   #.           ..                                            &&                                                                                                                                                            ",
+"                  ..              ..   &.           ......                              ...       ...                                                                                                                                                           ",
+"                  ..              ...  @.         +.......                             ....       ...                                                                                                                                                           ",
+"                                  +...@+...                                                                                                                                                                                                                     ",
+"                                   #.......                                                                                                                                                                                                                     ",
+"                                       ...                                                                                                                                                                                                                      ",
+"                                       ..                                                                                                                                                                                                                       ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                   ..                                                              ..+                                                                                                                ..        ",
+"                                                                                                                                                                                                                                                      ..        ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                   +....        ",
+"                                                                                                                                                                                                                                                  +.....        ",
+"                                                                                                                                                                                                                                                  ...           ",
+"                                                                                                                                                                                                                                                  +.......      ",
+"                                                                                                                                                                                                                                                   .......      ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"      .@               ..             ...             ...+           .. ..                        ..........%..... ........           +.                .%            .+.+           ..  .         ..              @.              ..+..           .  .         ",
+"                       *             %% #%           ...&            .  ..                         ...........@   #........                                                           .  .          %%                                             .  .         ",
+"   ........                                                                                                ..+    +..                ......                          ......                                        .                 .                          ",
+"  ...........     .........+      .........+      .........+      .........+                       .......+..%.......              +.........      %.........      +.........      %.........       ...           ...               ...             ..          ",
+"   ........%.     ...........     ...........     ...........     ...........      ........%      ...........#.......             +..........+     ..........%    +..........+     ..........%      ...           ...               ...             ..          ",
+"           ..+             %.%             %.%             %.%             %.%    ...........     ...      ..+    ..+             &..      +..    @..      +..    &..      +..    @..       ..      ...           ...               ...             ..          ",
+"   ...........     ...........     ...........     ...........     ...........             %.%    ........+....   +........       &...........    &...........    &...........    &...........      ...           ...               ...             ..          ",
+"  ............    ............    ............    ............    ............      ...... ...     .......+%...... ++......       &.........%     &.........+     &.........%     &.........+       ...           ...               ...             ..          ",
+"  ..       ...    ...      ...    ...      ...    ...      ...    ...      ...    +...........                        +..         #..             &..             #..             &..               ...           ...               ...             ..          ",
+"  ............    ............    ............    ............    ............    ...      ...                                     ...........     ..........      ...........     ..........       ...           ...               ...             ..          ",
+"   ........%..    .........+..    .........+..    .........+..    .........+..    ...      ...                                      +.........     %..........      +.........     %..........      ...           ...               ...             ..          ",
+"                    ......  .       ......  .       ......  .       ......  .     ............                                                       ........                        ........        .                                              ..          ",
+"                                                                                   .......+ ..                                                                                                                                                                  ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"   .........+          ....           ..+               ..            ....             ...#           .  ..                          .......+..       ..               &+.            ..+.           .@ .+              +.        ...             ..........    ",
+"    .........+        +..                               *                             ...             .  .                          +.........%                                                      .@  +                        .........++     ..+.......+   ",
+"            ..                       ......                          ......                                                        %..    ..%.+   ..       ..     ..       ..     ...      ..      .       ..      ..      ...    ...........     ..%     ...   ",
+"  .......   ..     +#%      ..     +........+      %.......+       +........+      %.......+       %.......+                       ...   %+  ..   ...      ..     ...      ..     ...      ..     ...      ..     ...      ...             ..     ..........    ",
+"  .......   ..    %...%     ..    +..........+    #..........     +..........+    #..........     #..........                      ...  ..   ..   ...      ..     ...      ..     ...      ..     ...      ..     +..      ...            ...     ...........   ",
+"   ...      ..    ..  .#    ..    ..       ..+    +..      ..%    ..       ..+    +..      ..%    +..      ..%                     ... +.    ..   ...      ..     ...      ..     ...      ..     ...      ..      ..........     ..........+     ..&      ..   ",
+"   ...........    ..   .%   ..    ..       ...    ..       ...    ..       ...    ..       ...    ...      ...                      ...++   #..   ...      ..     ...      ..     ...      ..     ...      ..      +........@     .........#      ..&  +.....   ",
+"   .........+     ..   &..  ..    ..       ...    ..       ...    ..       ...    ..       ...    ...      ...                      ..........    ...      ..     ...      ..     +..      ..     ...      ..                     ...             ..&  +.....   ",
+"                  ..    ... ..    +.+      #..    +.       ...    +..      #..    +.       ...    +..      ...                      .@......%     %..      .+     %..      .+     +..     ..+     %..      .+                     ..              ..&           ",
+"                  ..     .....    @..........     %........%..     ..........     %........%..    %........%..                                     ..........      ..........      +........       ..........         ....                        ..            ",
+"                  ..      ...@     %+......%+      +........+      %+......%+      +........+      +........+                                      @+.......       &+.......         .....+        &+.......          ....                                      ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"      .+               ..            .....            ...%          ... ..           .  +         ..........%..... ........           ..+              ..+            .+.#           ..  .          ..             ..%             ..+.%           .  .         ",
+"                                                     ...             .  ..           .  %          ........%..#   #........                                                           .  .                                                         .  .         ",
+"   ........        ........        ........        ........        ........          ...#                  ...    ...                .......         .......         .......                         ..            ..                .                          ",
+"  ...........     ...........     ...........     ...........     ...........                      ..................              +........       +........       +........        ........         ..           ...               ...             ..          ",
+"           %.+             %.+             %.+             %.+             %.+    .........%      ............    ...             %.+             %.+             %.+             #.........         ..           ...               ...             ..          ",
+"           ..+             ..+             ..+             ..+             ..+    ...........     ...      ...    ...             ..              ..              ..#             +.                 ..           ...               ...             ..          ",
+"  %...........    %...........    %...........    %...........    %...........             %.%    .............   +........       ..........      ..........      ..........      ..........         ..           ...               ...             ..          ",
+"  ............    ............    ............    ............    ............     +...... ...     ........%...... ++......       ..........      ..........      ..........      ..........         ..           ...               ...             ..          ",
+"  ..       ...    ..       ...    ..       ...    ..       ...    ...      ...    +...........                        ...         ...             ...             ...             ...                ..           ...               ...             ..          ",
+"  ............    ............    ............    ............    ............    ...      ...                       &@            .........       .........       .........      %.........         ..           ...               ...             ..          ",
+"   ........%..     ........%..     ........%..     ........%..     ........%..    ...      ...                                     @+.......       @+.......       @+.......       %........         ..           ...               ...             ..          ",
+"                                                                                  .........+..                                                                                                                                                                  ",
+"                                                                                   .......+ ..                                                                                                                                                                  ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"   ..........          +..%           %..              ..+            ....             ..++          ..  ..                          .......+..       ..               ...           ..%..           .. ..             ..@        ...                ..  .      ",
+"    .........+        +..                                                             +..             .  .                          +.........%                                                      ..  .                        .........++         .  .      ",
+"            ..      *                ......          ......          ......          ......          ......                        %..    ..#.+   ..       ..     ...      ..     ...      ..     ..       ..     ...      ...    ...........      ..      ..   ",
+"  .......   ..     ..++     ..     +........+      +........+      +........+      +........+      +........+                      ...   ++  ..   ...      ..     ...      ..     ...      ..     ...      ..     ...      ...             ..      ..      ...  ",
+"  .......   ..    +....#    ..    +..      ..+    +..      ..+    +..      ..+    +..      ..+    +..      ..+                     ...  ..   ..   ...      ..     ...      ..     ...      ..     ...      ..     %..      ...    ...........      ..      ...  ",
+"   ...      ..    ..  .+*   ..    ..       ..+    ..       ..+    ..       ..+    ..       ..+    ...      ..+                     ... +.    ..   ...      ..     ...      ..     ...      ..     ...      ..      +.........     ..........+      ..      ..   ",
+"   ...........    ..   ++   ..    ..       ...    ..       ...    ..       ...    ..       ...    ...      ...                      ...++...#..   ...      ..     ...      ..     ...      ..     ...      ..       ........@     ...              +........%   ",
+"   .........+     ..    +.  ..    ..       ...    ..       ...    ..       ...    ..       ...    ...      ...                      .........+    ...      ..     +..      ..     +..      ..     ...      ..                     ...                +.....+    ",
+"                  ..     .....    +.+      #..    +..      #..    +..      #..    +..      #..    +..      #..                      .&......      %..     ..+     +..     ..+     +..     ..+     #..     ..+                      .                            ",
+"                  ..      ...+     ..........      ..........      ..........      ..........      ..........                                      ..........      %........       %........       ..........         ....                            ....      ",
+"                  ..       %+       +......%        +......%        +......%        +......%        +......%                                        +.....+.         .....+          .....+         +.......           ...                            ....      ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                ",
+"                                                                                                                                                                                                                                                                "};
Index: /trunk/src/lib/graphics/text_engine/font.cc
===================================================================
--- /trunk/src/lib/graphics/text_engine/font.cc	(revision 5346)
+++ /trunk/src/lib/graphics/text_engine/font.cc	(revision 5347)
@@ -24,5 +24,5 @@
 #include <SDL/SDL_image.h>
 #endif
-#include "font.xpm"
+#include "default_font.xpm"
 
 #include "debug.h"
@@ -32,5 +32,5 @@
 
 /**
- * constructs a Font
+ * constructs a Font out of a TTF-FIle
  * @param fontFile the File to load the font from
  * @param fontSize the Size of the Font in Pixels
@@ -41,25 +41,41 @@
 
   this->setSize(fontSize);
+  this->setStyle("c");
 
   if (fontFile != NULL)
     this->loadFont(fontFile);
-
-  this->setStyle("c");//TTF_STYLE_NORMAL);
-
-  this->fastTextureID = this->createFastTexture();
-
-
-//  this->createAsciiImage("test.bmp");
+}
+
+/**
+ * constructs a Font out of an ImageFile
+ * @param imageFile the ImageFile to load the Font From.
+ */
+Font::Font(const char* imageFile)
+{
+  this->init();
+  this->setName(imageFile);
+  //  this->setSize(fontSize);
+  SDL_Surface* image = NULL;
+  if (imageFile != NULL)
+    image = IMG_Load(imageFile);
+  else
+    return;
+  if (image != NULL)
+  {
+    this->loadFontFromSDL_Surface(image);
+    SDL_FreeSurface(image);
+  }
+  else
+    PRINTF(1)("loading from surface %s failed: %s\n", imageFile, IMG_GetError());
 }
 
 /**
  * constructs a Font
- * @param fontFile the File to load the font from
- * @param fontSize the Size of the Font in Pixels
+ * @param xpmArray the xpm-ARRAY to load the font from
  */
 Font::Font(char** xpmArray)
 {
   this->init();
-
+  this->setName("XPM-array-font");
   //  this->setSize(fontSize);
   SDL_Surface* image = NULL;
@@ -73,5 +89,4 @@
   else
     PRINTF(1)("loading from surface failed: %s\n", IMG_GetError());
-
 }
 
@@ -91,5 +106,6 @@
       if (this->glyphArray[i] != NULL)
       {
-        glDeleteLists(this->glyphArray[i]->displayList, 1);
+        if (this->glyphArray[i]->displayList != 0)
+          glDeleteLists(this->glyphArray[i]->displayList, 1);
         delete this->glyphArray[i];
       }
@@ -97,4 +113,9 @@
     delete[] this->glyphArray;
   }
+
+  //! @todo check if we really do not need to delete the fastTextureID here.
+//   if (this->fastTextureID != 0)
+//     if(glIsTexture(this->fastTextureID))
+//       glDeleteTextures(1, &this->fastTextureID);
 
   // erease this font out of the memory.
@@ -123,22 +144,34 @@
 bool Font::loadFont(const char* fontFile)
 {
-  if (!this->getName())
-  {
-    this->setName(fontFile);
-
-    this->font = TTF_OpenFont(this->getName(), this->fontSize);
-    if(!this->font)
-    {
-      PRINTF(1)("TTF_OpenFont: %s\n", TTF_GetError());
+  // checking for existent Font.
+  if (this->font != NULL)
+  {
+    TTF_CloseFont(this->font);
+    this->font = NULL;
+  }
+  if (this->fastTextureID != 0)
+  {
+    if(glIsTexture(this->fastTextureID))
+      glDeleteTextures(1, &this->fastTextureID);
+    this->fastTextureID = 0;
+  }
+
+  this->setName(fontFile);
+  this->font = TTF_OpenFont(this->getName(), this->fontSize);
+
+  if(this->font != NULL)
+  {
+    this->fastTextureID = this->createFastTexture();
+    if (this->fastTextureID != 0)
+      return true;
+    else
       return false;
-    }
-    else
-      return true;
   }
   else
   {
-    PRINTF(2)("Font already initialized, unable to change it now.\n");
+    PRINTF(1)("TTF_OpenFont: %s\n", TTF_GetError());
     return false;
   }
+
 }
 
@@ -152,4 +185,17 @@
   if(surface == NULL)
     return false;
+
+  if (this->font != NULL)
+  {
+    TTF_CloseFont(this->font);
+    this->font = NULL;
+  }
+  if (this->fastTextureID != 0)
+  {
+    if(glIsTexture(this->fastTextureID))
+      glDeleteTextures(1, &this->fastTextureID);
+    this->fastTextureID = 0;
+  }
+
   this->fastTextureID = Text::loadTexture(surface, NULL);
 
@@ -195,6 +241,6 @@
 /**
  *  sets a specific renderStyle
- * @param renderStyle the Style to render: a char-array containing:
-   i: italic, b: bold, u, underline
+ * @param renderStyle the Style to render: a string (char-array) containing:
+ *   i: italic, b: bold, u, underline
  */
 void Font::setStyle(const char* renderStyle)
@@ -212,6 +258,6 @@
   if (likely(this->font != NULL))
     TTF_SetFontStyle(this->font, this->renderStyle);
-  else
-    PRINTF(2)("Font was not initialized, please do so before setting the Font-Style.\n");
+//  else
+//    PRINTF(2)("Font was not initialized, please do so before setting the Font-Style.\n");
 }
 
@@ -363,4 +409,5 @@
 {
   Glyph* rg = new Glyph;
+  rg->displayList = 0;
   rg->character = character;
   if (likely (this->font!= NULL))
@@ -537,5 +584,5 @@
  * @returns the optimal size to use as the texture size
 
-   @todo: this algorithm can be a lot more faster, althought it does
+   @todo: this algorithm can be a lot faster, althought it does
    not really matter within the init-context, and 128 glyphs.
 
@@ -545,4 +592,7 @@
 int Font::findOptimalFastTextureSize()
 {
+  if (this->glyphArray == NULL)
+    return 0;
+
   int i;
   int x,y; // the counters
@@ -555,5 +605,5 @@
   {
     x = 0; y = 0;
-    for (i = 0; i <= FONT_HIGHEST_KNOWN_CHAR; i++)
+    for (i = 0; i < FONT_HIGHEST_KNOWN_CHAR; i++)
     {
       if((tmpGlyph = this->glyphArray[i]) != NULL)
Index: /trunk/src/lib/graphics/text_engine/font.h
===================================================================
--- /trunk/src/lib/graphics/text_engine/font.h	(revision 5346)
+++ /trunk/src/lib/graphics/text_engine/font.h	(revision 5347)
@@ -31,5 +31,5 @@
 //! A struct for handling glyphs
 /**
-   a Glyph is one letter of a certain font
+ * a Glyph is one letter of a certain font
  */
 struct Glyph
@@ -56,5 +56,5 @@
 /// FONT ///
 ////////////
-//! A class to handle a Font of a certain ttf-File, Size and Color.
+//! A class to handle a Font of a certain ttf-File/image-file, Size.
 class Font : public BaseObject
 {
@@ -64,4 +64,5 @@
     Font(const char* fontFile,
          unsigned int fontSize);
+    Font(const char* imageFile);
     Font(char** xpmArray);
     virtual ~Font();
@@ -102,5 +103,5 @@
   private:
     static Font*  defaultFont;         //!< a default font, that is used, if other fonts were unable to be loaded.
-  // information about the Font
+    // information about the Font
     TTF_Font*     font;                //!< The font we use for this.
     unsigned int  fontSize;            //!< The size of the font in pixels. each Font has one size.
Index: unk/src/lib/graphics/text_engine/font.xpm
===================================================================
--- /trunk/src/lib/graphics/text_engine/font.xpm	(revision 5346)
+++ 	(revision )
@@ -1,268 +1,0 @@
-/* XPM */
-static char * font_xpm[] = {
-"256 256 9 1",
-" 	c None",
-".	c #FEFEFE",
-"+	c #FDFDFD",
-"@	c #FAFAFA",
-"#	c #FBFBFB",
-"$	c #F8F8F8",
-"%	c #FCFCFC",
-"&	c #F9F9F9",
-"*	c #F7F7F7",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"  .               .               .               .               .               .               .               .               .               .     .         .     .         .     .         .     .         .     .         .     .         .     .       ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"  .               .               .               .               .               .               .               .               .               .               .               .               .               .               .               .             ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"  .               .               .               .               .               .               .               .               .               .               .               .     .         .     .         .     .         .     .         .     .       ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"  .               .               .               .               .               .               .               .               .               .               .               .               .               .               .               .             ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                  ..              ...             .                    ..         .                 +......       ..                 ..            .              .               .               ..              .               ..                   ..       ",
-"                  ..              ...                                 ...                          ........       .+               +...           ...+                                            ..                              ..                  ..        ",
-"                  ..              ...                              .........                       ..              @               ..               ..+                                            #                                                  .+        ",
-"                  ..                                              ..........                        ...                           ...                ..                                                                                              ..$        ",
-"                  ++                                              ... #..                          ...++  .+                      ...                ..                                                                                             #..         ",
-"                                                                  %......%%%.                     ...  %....                      ...                ..                                                                                             ..          ",
-"                  ..                                               +........+                     ..........+                     ...                .+                                                                                            +..          ",
-"                  ..                              .                    ..  ..     .               ...........#                    ...                .+           .               .                               .                                ..           ",
-"                  ..                                              &..........                       .....+                        ...                .+                                                                                            %@           ",
-"                                                                  &.........%                                                     ...                .+                                                                                                         ",
-"                                                                      ...                                                          ..               ..+                                                                                                         ",
-"                                                                                                                                   +...           ....#                                                                                                         ",
-"                                                                                                                                    ++.           ..%                                                                                                           ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"   .+....+#        ....           ..........      ..........             ..       ...........      +%.++%%##      ..........       .......+        +.....+%       ..              ..              .               .               .                ......       ",
-"  ..........      .....           ..........      ........%              ..       ...........      .........      ..........       ........+      &........+      ..              ..                                                               ......+      ",
-"  ...     .+        ...                   %.                      ..     ..                                                        ..    ..+      &..     ..                                                                                           ...      ",
-"  ..      ..        ...            +........             ..+      ..........       ........%      .........                        ........       @.........      ..              ..                                                                .....+      ",
-"  ..      ..        ...           ..........            .....     ..........       .........%     ..........           ..%         ........+       +........      ..              ..                                                                .....       ",
-"  ..      ..        ...                                   ...                             ...     ...     ..          @.+         ...     ..#                                      #                                                                            ",
-"  %......#.+        ...           ..........       ..........            ..        ..........     #..@@%+...         ...          ..........$      ........                                                                                          .          ",
-"   ........         ...           ...........     &.........             ..       &.........+      +........        ..+           ..........      .........                                                                                         ..          ",
-"     ....+           .            ..........       ........              ..        ........+         ......         ..              .......        ......+                                                                                           .          ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"  .               .........+      .........%       ........       ........+.       %.........      +........       .+.......      ...      ...    ...                  ...        ...     ..&     ...              .%.       .#.   +#%      ..     %.......+    ",
-"                  ...........     ..........#     .........       ..........+     +..........%    +.........      ..........      ...      ...    ...                  ...        ...   ++.       ...             %...+     ....  %...+     ..     ..........@  ",
-"                           %.%            ...     +..                      ..     @.       +..    +.+             +..             ...      ...    ...                  ...        ...  ..+        ...             ..#..     ..... ... .#    ..    +..      ..%  ",
-"                   ...........    ..........      ..                       ..     &...........    ..........      ...  ....       ... *.......    ...                  ...        ...  ..         ...             ... ..   .. ... ...  .%   ..    ...       ..  ",
-"                  ............    ..........      ..              ...      ..     &.........+     ..........      ...  .....      ... *.......    ...                  ...        ...  .#         ...             ... +.   .. ... ...  $..  ..    ...       ..  ",
-"                  ...      ...    ...      .+     ..              ...      ..     &..             ...             ...     ..      ...      ...    ...                  ...        ...  ...        ...             ...  .% +.  ... ...   +.. ..    +..       ..  ",
-"                  ............    ...........     %.+......       ..........+      ..........     ...             #.........      ...      ...    ...              ......+        ...   #.+       %.........      ...  ....#  ... ...    .....    %........#..  ",
-"  .               .........%..    ...........      +.......       ..........       %..........    ...              .........      ...      ...    ...             .......         ...    ...       .........      ...   ...   ... ...     ...@     +........+   ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"  .........%.      .+......+.     .........%       .........      ....... ....... ..       ..      ..       ..+   %..    ...    +. ...     ...    ...      ...    ..........         ..            ..              ..             .               ........      ",
-"  ..........+     %..........+    ..........#     ..........      &&&&#.. ....... ..       ..      %..      ..     ..    ...@   ..  ...   ..+     ...      ...     .........       ....            ..              ...                                          ",
-"           ..     %..      ..%            ...     ..+                  .. ..      ..       ..       ..     +.      ...   ....   ..   %.. ...      %..      ...                     ..               ..              ..+                                         ",
-"  ..........+     ..       ...    ..........%     .........+           .. ..      ..       ..       ..+   ..+       ..  .. .+  %..    .....        ..........                     ...               ..               ..                                         ",
-"  .........+.     ..       ...    ........+.       .........+          .. ..      ..       ..        ..   ..        ..  +. ..  +.     ....+         ........$        ....         ...                ..              ..                                         ",
-"  ...             ..%  %%  %..    ...   #.+                ..          .. ..      %..      ..        ..+ %..        ... .. ..+ ..    ... ...                        ..%           ...                ..              ..                                         ",
-"  ..              %......#+..#    ..     +..       ..........          .. ..       .........%         ..#..          +...   ....+   ...   ...         ....         .........      ...                 ..             .+                                         ",
-"  ..               %.........     ..      ..@     &..........          .. ..       #........           +..%          %..+   ....   ...     ...        ....        ...........     ...                 ..             .+                                         ",
-"                       ..                  ..                                                                                                                                     ...                                .+                                         ",
-"                                            ..                                                                                                                                    ...                                .+                                         ",
-"                                             ..                                                                                                                                    ..                               ..+                                         ",
-"                                                                                                                                                                                   +...                           ....                                          ",
-"                                                                                                                                                                                    %+.                            .%                                           ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"   ..             .........+      .........%       ........       ........+.       +........       +........       .+.......      ...      ...    ...                  ...        ...     ..&     ...              .+.       .%.   +%+      ..     %.......++   ",
-"                  .........+.     ..........#     +........        .........+     #.........      +.........      +.........      ...      ...    ...                  ...        ...   ...       ...             %...+     ....  %...+     ..     ..........#  ",
-"                           %.%            ...     +..                      ..     +.              +.+             +..             ...      ...    ...                  ...        ...  ..+        ...             ..#..     ..... ... .%    ..    +..      ..%  ",
-"                   ...........    ..........      ..               .       ..     ..........      ..........      ...  ....       ... *.......    ...                  ...        ...  ..         ...             ... ..   .. ... ...  .+   ..    ...       ..  ",
-"                  ............    ..........      ..              ...      ..     ..........      ..........      ...  .....      ... *.......    ...                  ...        ...  .%         ...             ... +.   .. ... ...  $..  ..    ...       ..  ",
-"                  ...      ...    ...      .+     ...             ...      ..     ...             ...             ...     ..      ...      ...    ...                  ...        ...  ...        ...             ...  .% +.  ... ...   +.. ..    +..       ..  ",
-"                  ............    ...........     %.+......       ..........+     %.........      ...             #.........      ...      ...    ...              ......+        ...   #.+       %.........      ...   ...#  ... ...    .....     ........%..  ",
-"                  .........%..    ...........      +.......       .........+       %........      ...              .........      ...      ...    ...             .......         ...     ..+      .........      ...   ...   ... ...     ...@     +........+   ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"  .........+.      .+......+.     .........+.      .........      ....... ....... ..       ..      ..       ..+   %..    ...    +. ...     ...    ...      ...    ..........      .               ...             .               .               .             ",
-"  ..........+     %..........%    ..........%     ..........       &&&#.. ....... ..       ..      %..      ..     ..    ...@   ..  ...   ..+     ...      ...     .........                      ...                                                           ",
-"           ..     +..      ..%             ..     ..+                  .. ..      ..       ..       ..     +.      ...   ....   ..   %.. ...      #..      ...                                    ..                                                            ",
-"  ..........+     ..       ...    ..........%     +........+           .. ..      ..       ..       +..   ..+       ..  .. .+  %.+    .....        ..........          ..                                                                                       ",
-"  .........+      ..       ...    .........+       .........+          .. ..      ..       ..        ..   ..        ..  +. ..  +.     ....+         ........$        ....                                                                                       ",
-"  ...             ..%  ++  %..    ...      .%              ..          .. ..      %..      ..         .+ +..        +.. ..  .+ ..    ... ...                        ..#                           &&                                                            ",
-"  ..              #......#+..#    ..       ..     &..........          .. ..       .........+         +.%..          +...   ....+   ...   ...         ....         .........                      ...                                                           ",
-"  ..               %.........     ..       ...    &..........          .. ..       #........           +..           %..+   ....   ...     ...        ....        ...........                     ...                                                           ",
-"                       ..                                                                                                                                                                                                                                       ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"  .               .               .               .               .               .               .               .               .               .                                                                                                             ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                  ..                   ..           .+.....                         ..      ...   ...                             .. ..                                                                                                                         ",
-"                  ..                   ...          ......                          ..      ...   ...                             ..  .                                                                                                                         ",
-"                                   %.......         ...                             ..      ...   ..                                                                                                                                                            ",
-"                  ..              +........       #%.....                         . +......... .                                                                                                                                                                ",
-"                  ..              +..  +.         .....%#                         #  .+.....+@ #                                                                                                                                                                ",
-"                  ..              ..   #.           ..                                            &&                                                                                                                                                            ",
-"                  ..              ..   &.           ......                              ...       ...                                                                                                                                                           ",
-"                  ..              ...  @.         +.......                             ....       ...                                                                                                                                                           ",
-"                                  +...@+...                                                                                                                                                                                                                     ",
-"                                   #.......                                                                                                                                                                                                                     ",
-"                                       ...                                                                                                                                                                                                                      ",
-"                                       ..                                                                                                                                                                                                                       ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                   ..                                                              ..+                                                                                                                ..        ",
-"                                                                                                                                                                                                                                                      ..        ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                   +....        ",
-"                                                                                                                                                                                                                                                  +.....        ",
-"                                                                                                                                                                                                                                                  ...           ",
-"                                                                                                                                                                                                                                                  +.......      ",
-"                                                                                                                                                                                                                                                   .......      ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"      .@               ..             ...             ...+           .. ..                        ..........%..... ........           +.                .%            .+.+           ..  .         ..              @.              ..+..           .  .         ",
-"                       *             %% #%           ...&            .  ..                         ...........@   #........                                                           .  .          %%                                             .  .         ",
-"   ........                                                                                                ..+    +..                ......                          ......                                        .                 .                          ",
-"  ...........     .........+      .........+      .........+      .........+                       .......+..%.......              +.........      %.........      +.........      %.........       ...           ...               ...             ..          ",
-"   ........%.     ...........     ...........     ...........     ...........      ........%      ...........#.......             +..........+     ..........%    +..........+     ..........%      ...           ...               ...             ..          ",
-"           ..+             %.%             %.%             %.%             %.%    ...........     ...      ..+    ..+             &..      +..    @..      +..    &..      +..    @..       ..      ...           ...               ...             ..          ",
-"   ...........     ...........     ...........     ...........     ...........             %.%    ........+....   +........       &...........    &...........    &...........    &...........      ...           ...               ...             ..          ",
-"  ............    ............    ............    ............    ............      ...... ...     .......+%...... ++......       &.........%     &.........+     &.........%     &.........+       ...           ...               ...             ..          ",
-"  ..       ...    ...      ...    ...      ...    ...      ...    ...      ...    +...........                        +..         #..             &..             #..             &..               ...           ...               ...             ..          ",
-"  ............    ............    ............    ............    ............    ...      ...                                     ...........     ..........      ...........     ..........       ...           ...               ...             ..          ",
-"   ........%..    .........+..    .........+..    .........+..    .........+..    ...      ...                                      +.........     %..........      +.........     %..........      ...           ...               ...             ..          ",
-"                    ......  .       ......  .       ......  .       ......  .     ............                                                       ........                        ........        .                                              ..          ",
-"                                                                                   .......+ ..                                                                                                                                                                  ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"   .........+          ....           ..+               ..            ....             ...#           .  ..                          .......+..       ..               &+.            ..+.           .@ .+              +.        ...             ..........    ",
-"    .........+        +..                               *                             ...             .  .                          +.........%                                                      .@  +                        .........++     ..+.......+   ",
-"            ..                       ......                          ......                                                        %..    ..%.+   ..       ..     ..       ..     ...      ..      .       ..      ..      ...    ...........     ..%     ...   ",
-"  .......   ..     +#%      ..     +........+      %.......+       +........+      %.......+       %.......+                       ...   %+  ..   ...      ..     ...      ..     ...      ..     ...      ..     ...      ...             ..     ..........    ",
-"  .......   ..    %...%     ..    +..........+    #..........     +..........+    #..........     #..........                      ...  ..   ..   ...      ..     ...      ..     ...      ..     ...      ..     +..      ...            ...     ...........   ",
-"   ...      ..    ..  .#    ..    ..       ..+    +..      ..%    ..       ..+    +..      ..%    +..      ..%                     ... +.    ..   ...      ..     ...      ..     ...      ..     ...      ..      ..........     ..........+     ..&      ..   ",
-"   ...........    ..   .%   ..    ..       ...    ..       ...    ..       ...    ..       ...    ...      ...                      ...++   #..   ...      ..     ...      ..     ...      ..     ...      ..      +........@     .........#      ..&  +.....   ",
-"   .........+     ..   &..  ..    ..       ...    ..       ...    ..       ...    ..       ...    ...      ...                      ..........    ...      ..     ...      ..     +..      ..     ...      ..                     ...             ..&  +.....   ",
-"                  ..    ... ..    +.+      #..    +.       ...    +..      #..    +.       ...    +..      ...                      .@......%     %..      .+     %..      .+     +..     ..+     %..      .+                     ..              ..&           ",
-"                  ..     .....    @..........     %........%..     ..........     %........%..    %........%..                                     ..........      ..........      +........       ..........         ....                        ..            ",
-"                  ..      ...@     %+......%+      +........+      %+......%+      +........+      +........+                                      @+.......       &+.......         .....+        &+.......          ....                                      ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"      .+               ..            .....            ...%          ... ..           .  +         ..........%..... ........           ..+              ..+            .+.#           ..  .          ..             ..%             ..+.%           .  .         ",
-"                                                     ...             .  ..           .  %          ........%..#   #........                                                           .  .                                                         .  .         ",
-"   ........        ........        ........        ........        ........          ...#                  ...    ...                .......         .......         .......                         ..            ..                .                          ",
-"  ...........     ...........     ...........     ...........     ...........                      ..................              +........       +........       +........        ........         ..           ...               ...             ..          ",
-"           %.+             %.+             %.+             %.+             %.+    .........%      ............    ...             %.+             %.+             %.+             #.........         ..           ...               ...             ..          ",
-"           ..+             ..+             ..+             ..+             ..+    ...........     ...      ...    ...             ..              ..              ..#             +.                 ..           ...               ...             ..          ",
-"  %...........    %...........    %...........    %...........    %...........             %.%    .............   +........       ..........      ..........      ..........      ..........         ..           ...               ...             ..          ",
-"  ............    ............    ............    ............    ............     +...... ...     ........%...... ++......       ..........      ..........      ..........      ..........         ..           ...               ...             ..          ",
-"  ..       ...    ..       ...    ..       ...    ..       ...    ...      ...    +...........                        ...         ...             ...             ...             ...                ..           ...               ...             ..          ",
-"  ............    ............    ............    ............    ............    ...      ...                       &@            .........       .........       .........      %.........         ..           ...               ...             ..          ",
-"   ........%..     ........%..     ........%..     ........%..     ........%..    ...      ...                                     @+.......       @+.......       @+.......       %........         ..           ...               ...             ..          ",
-"                                                                                  .........+..                                                                                                                                                                  ",
-"                                                                                   .......+ ..                                                                                                                                                                  ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"   ..........          +..%           %..              ..+            ....             ..++          ..  ..                          .......+..       ..               ...           ..%..           .. ..             ..@        ...                ..  .      ",
-"    .........+        +..                                                             +..             .  .                          +.........%                                                      ..  .                        .........++         .  .      ",
-"            ..      *                ......          ......          ......          ......          ......                        %..    ..#.+   ..       ..     ...      ..     ...      ..     ..       ..     ...      ...    ...........      ..      ..   ",
-"  .......   ..     ..++     ..     +........+      +........+      +........+      +........+      +........+                      ...   ++  ..   ...      ..     ...      ..     ...      ..     ...      ..     ...      ...             ..      ..      ...  ",
-"  .......   ..    +....#    ..    +..      ..+    +..      ..+    +..      ..+    +..      ..+    +..      ..+                     ...  ..   ..   ...      ..     ...      ..     ...      ..     ...      ..     %..      ...    ...........      ..      ...  ",
-"   ...      ..    ..  .+*   ..    ..       ..+    ..       ..+    ..       ..+    ..       ..+    ...      ..+                     ... +.    ..   ...      ..     ...      ..     ...      ..     ...      ..      +.........     ..........+      ..      ..   ",
-"   ...........    ..   ++   ..    ..       ...    ..       ...    ..       ...    ..       ...    ...      ...                      ...++...#..   ...      ..     ...      ..     ...      ..     ...      ..       ........@     ...              +........%   ",
-"   .........+     ..    +.  ..    ..       ...    ..       ...    ..       ...    ..       ...    ...      ...                      .........+    ...      ..     +..      ..     +..      ..     ...      ..                     ...                +.....+    ",
-"                  ..     .....    +.+      #..    +..      #..    +..      #..    +..      #..    +..      #..                      .&......      %..     ..+     +..     ..+     +..     ..+     #..     ..+                      .                            ",
-"                  ..      ...+     ..........      ..........      ..........      ..........      ..........                                      ..........      %........       %........       ..........         ....                            ....      ",
-"                  ..       %+       +......%        +......%        +......%        +......%        +......%                                        +.....+.         .....+          .....+         +.......           ...                            ....      ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                ",
-"                                                                                                                                                                                                                                                                "};
Index: /trunk/src/lib/graphics/text_engine/text_engine.cc
===================================================================
--- /trunk/src/lib/graphics/text_engine/text_engine.cc	(revision 5346)
+++ /trunk/src/lib/graphics/text_engine/text_engine.cc	(revision 5347)
@@ -76,5 +76,5 @@
     delete textIterator;
   }
-  // delete all remaining fonts (this is done in the ResourceManager)
+  // delete all remaining fonts (There should not be Anything to do here)
   tList<BaseObject>* fontList = ClassList::getList(CL_FONT);
   if (fontList != NULL)
@@ -127,7 +127,7 @@
 /**
  *  outputs some nice Debug information
-
-   @todo there should also be something outputted about Font
-*/
+ *
+ * @todo there should also be something outputted about Font
+ */
 void TextEngine::debug() const
 {
Index: /trunk/src/lib/graphics/text_engine/text_engine.h
===================================================================
--- /trunk/src/lib/graphics/text_engine/text_engine.h	(revision 5346)
+++ /trunk/src/lib/graphics/text_engine/text_engine.h	(revision 5347)
@@ -1,16 +1,16 @@
 /*!
  * @file text_engine.h
-  *  Definition of textEngine, the Font and the Text
-
-    Text is the text outputed.
-    Font is a class that loads a certain ttf-file with a specific height into memory
-    TextEngine is used to manage the all the different Fonts that might be included
-
-    for more information see the specific classes.
-
-    !! IMPORTANT !! When using ttf fonts clear the license issues prior to
-   adding them to orxonox. This is really important, because we do not want
-   to offend anyone.
-*/
+ *  Definition of textEngine, the Font and the Text
+ *
+ * Text is the text outputed.
+ * Font is a class that loads a certain ttf-file with a specific height into memory
+ * TextEngine is used to manage the all the different Fonts that might be included
+ *
+ *   for more information see the specific classes.
+ *
+ *  !! IMPORTANT !! When using ttf fonts clear the license issues prior to
+ * adding them to orxonox. This is really important, because we do not want
+ * to offend anyone.
+ */
 
 #ifndef _TEXT_ENGINE_H
@@ -26,8 +26,5 @@
 class Text;
 
-///////////////////
-/// TEXT-ENGINE ///
-///////////////////
-//! A singleton Class that operates as a Handler for generating and rendering Text in 2D
+//! A singleton Class that operates as a Handler initializing FONTS.
 class TextEngine : public BaseObject
 {
Index: /trunk/src/story_entities/world.cc
===================================================================
--- /trunk/src/story_entities/world.cc	(revision 5346)
+++ /trunk/src/story_entities/world.cc	(revision 5347)
@@ -38,5 +38,4 @@
 #include "terrain.h"
 #include "light.h"
-#include "text_engine.h"
 #include "load_param.h"
 #include "shell.h"
