Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4165 in orxonox.OLD


Ignore:
Timestamp:
May 11, 2005, 2:23:54 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/heightMap: merged trunk back to the heightMap branche
merged with command:
svn merge trunk/ branches/heightMap/ -r 4122:HEAD

Location:
orxonox/branches/heightMap
Files:
40 edited
2 copied

Legend:

Unmodified
Added
Removed
  • orxonox/branches/heightMap/ChangeLog

    r4122 r4165  
     12005-05-10      Benjamin Grauer <bensch@orxonox.ethz.ch>
     2        Merged the gui into the executable
     3        Windows compiles again.
     4
    152005-04-27      orxonox
    26        Tagged Version 0.2.3-pre-alpha
  • orxonox/branches/heightMap/Makefile.in

    r4122 r4165  
    129129PACKAGE_VERSION = @PACKAGE_VERSION@
    130130PATH_SEPARATOR = @PATH_SEPARATOR@
     131PKG_CONFIG = @PKG_CONFIG@
    131132RANLIB = @RANLIB@
    132133SET_MAKE = @SET_MAKE@
  • orxonox/branches/heightMap/configure

    r4122 r4165  
    312312#endif"
    313313
    314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS'
     314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS'
    315315ac_subst_files=''
    316316
     
    42164216
    42174217
     4218#-------------------------#
     4219# checking for pkg-config #
     4220#-------------------------#
     4221if test x$def_gtk = xyes; then
     4222 # Extract the first word of "pkg-config", so it can be a program name with args.
     4223set dummy pkg-config; ac_word=$2
     4224echo "$as_me:$LINENO: checking for $ac_word" >&5
     4225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4226if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     4227  echo $ECHO_N "(cached) $ECHO_C" >&6
     4228else
     4229  case $PKG_CONFIG in
     4230  [\\/]* | ?:[\\/]*)
     4231  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     4232  ;;
     4233  *)
     4234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4235for as_dir in $PATH
     4236do
     4237  IFS=$as_save_IFS
     4238  test -z "$as_dir" && as_dir=.
     4239  for ac_exec_ext in '' $ac_executable_extensions; do
     4240  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4241    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     4242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4243    break 2
     4244  fi
     4245done
     4246done
     4247
     4248  ;;
     4249esac
     4250fi
     4251PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     4252
     4253if test -n "$PKG_CONFIG"; then
     4254  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     4255echo "${ECHO_T}$PKG_CONFIG" >&6
     4256else
     4257  echo "$as_me:$LINENO: result: no" >&5
     4258echo "${ECHO_T}no" >&6
     4259fi
     4260
     4261fi
     4262
     4263
    42184264#########################
    42194265## CHECKING FOR SYSTEM ##
     
    66746720#-----#
    66756721if test x$def_gtk = xyes; then
    6676 
    66776722        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
    66786723        echo "$as_me:$LINENO: checking for gtk2.0" >&5
    66796724echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
    6680         if `pkg-config --exists gtk+-2.0`; then
     6725        if `$PKG_CONFIG --exists gtk+-2.0`; then
    66816726                echo "yes"
    66826727                have_gtk2=yes
    6683                 GTK2_LIBS=`pkg-config --libs gtk+-2.0`
    6684                 GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
     6728                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
     6729                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
    66856730
    66866731cat >>confdefs.h <<_ACEOF
     
    66886733_ACEOF
    66896734
     6735                if test $DEBUG -ge 3; then
     6736                 echo "cflags: $GTK2_CFLAGS"
     6737                 echo "libs: $GTK2_LIBS"
     6738                fi
    66906739        else
    66916740                echo "no"
     
    86718720s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
    86728721s,@GPROF@,$GPROF,;t t
     8722s,@PKG_CONFIG@,$PKG_CONFIG,;t t
    86738723s,@MSBITFIELDS@,$MSBITFIELDS,;t t
    86748724s,@GTK2_LIBS@,$GTK2_LIBS,;t t
  • orxonox/branches/heightMap/configure.ac

    r4122 r4165  
    192192AC_PATH_PROG(GPROF, gprof)
    193193
     194#-------------------------#
     195# checking for pkg-config #
     196#-------------------------#
     197if test x$def_gtk = xyes; then
     198 AC_PATH_PROG(PKG_CONFIG, pkg-config)
     199fi
     200
     201
    194202#########################
    195203## CHECKING FOR SYSTEM ##
     
    435443#-----#
    436444if test x$def_gtk = xyes; then
    437 
    438445        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
    439446        AC_MSG_CHECKING([for gtk2.0])
    440         if `pkg-config --exists gtk+-2.0`; then
     447        if `$PKG_CONFIG --exists gtk+-2.0`; then
    441448                echo "yes"
    442449                have_gtk2=yes
    443                 GTK2_LIBS=`pkg-config --libs gtk+-2.0`
    444                 GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
     450                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
     451                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
    445452                AC_DEFINE_UNQUOTED(HAVE_GTK2, 1, [if we have GTK2])
     453                if test $DEBUG -ge 3; then
     454                 echo "cflags: $GTK2_CFLAGS"
     455                 echo "libs: $GTK2_LIBS"
     456                fi
    446457        else
    447458                echo "no"
  • orxonox/branches/heightMap/src/Makefile.am

    r4122 r4165  
    2222AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/animation
    2323AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/common
     24AM_CXXFLAGS+=-I$(MAINSRCDIR)/subprojects
    2425
    2526
     
    3233
    3334orxonox_DEPENDENCIES = libORXgui.a
    34 orxonox_LDADD = libORXgui.a
     35orxonox_LDADD = libORXgui.a $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS)
    3536orxonox_SOURCES= orxonox.cc \
    3637                 game_loader.cc \
     
    8990                 lib/xmlparser/tinystr.cc \
    9091                 lib/xmlparser/tinyxmlerror.cc \
    91                  lib/xmlparser/tinyxmlparser.cc
     92                 lib/xmlparser/tinyxmlparser.cc \
     93                 subprojects/benchmark.cc
    9294
    9395
     
    163165                 lib/gui/gui/gui_banner.h \
    164166                 lib/gui/gui/gui_keys.h \
    165                  lib/gui/gui/gui_update.h
     167                 lib/gui/gui/gui_update.h \
     168                 subprojects/benchmark.h
    166169
    167170libORXgui_a_CPPFLAGS=$(GTK2_CFLAGS) $(GTHREAD_CFLAGS) $(CURL_CFLAGS) $(MSBITFIELDS)
    168 AM_LDFLAGS=$(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS)
    169171
    170172libORXgui_a_SOURCES = lib/gui/gui/gui.cc \
  • orxonox/branches/heightMap/src/Makefile.in

    r4122 r4165  
    9191        glmenu_imagescreen.$(OBJEXT) tinyxml.$(OBJEXT) \
    9292        tinystr.$(OBJEXT) tinyxmlerror.$(OBJEXT) \
    93         tinyxmlparser.$(OBJEXT)
     93        tinyxmlparser.$(OBJEXT) benchmark.$(OBJEXT)
    9494orxonox_OBJECTS = $(am_orxonox_OBJECTS)
     95am__DEPENDENCIES_1 =
    9596DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
    9697depcomp = $(SHELL) $(top_srcdir)/depcomp
     
    100101@AMDEP_TRUE@    ./$(DEPDIR)/animation_player.Po \
    101102@AMDEP_TRUE@    ./$(DEPDIR)/array.Po ./$(DEPDIR)/base_entity.Po \
    102 @AMDEP_TRUE@    ./$(DEPDIR)/base_object.Po ./$(DEPDIR)/camera.Po \
     103@AMDEP_TRUE@    ./$(DEPDIR)/base_object.Po \
     104@AMDEP_TRUE@    ./$(DEPDIR)/benchmark.Po ./$(DEPDIR)/camera.Po \
    103105@AMDEP_TRUE@    ./$(DEPDIR)/campaign.Po \
    104106@AMDEP_TRUE@    ./$(DEPDIR)/character_attributes.Po \
     
    221223PACKAGE_VERSION = @PACKAGE_VERSION@
    222224PATH_SEPARATOR = @PATH_SEPARATOR@
     225PKG_CONFIG = @PKG_CONFIG@
    223226RANLIB = @RANLIB@
    224227SET_MAKE = @SET_MAKE@
     
    272275target_vendor = @target_vendor@
    273276MAINSRCDIR = .
    274 AM_CXXFLAGS = -I$(MAINSRCDIR) -I$(MAINSRCDIR)/world_entities -I$(MAINSRCDIR)/story_entities -I$(MAINSRCDIR)/lib -I$(MAINSRCDIR)/lib/coord -I$(MAINSRCDIR)/lib/data -I$(MAINSRCDIR)/lib/graphics -I$(MAINSRCDIR)/lib/graphics/importer -I$(MAINSRCDIR)/lib/graphics/particles -I$(MAINSRCDIR)/lib/gui -I$(MAINSRCDIR)/lib/gui/gui -I$(MAINSRCDIR)/lib/lang -I$(MAINSRCDIR)/lib/util -I$(MAINSRCDIR)/lib/math -I$(MAINSRCDIR)/defs -I$(MAINSRCDIR)/font -I$(MAINSRCDIR)/network -I$(MAINSRCDIR)/glmenu -I$(MAINSRCDIR)/ai -I$(MAINSRCDIR)/util -I$(MAINSRCDIR)/util/animation -I$(MAINSRCDIR)/util/common
     277AM_CXXFLAGS = -I$(MAINSRCDIR) -I$(MAINSRCDIR)/world_entities -I$(MAINSRCDIR)/story_entities -I$(MAINSRCDIR)/lib -I$(MAINSRCDIR)/lib/coord -I$(MAINSRCDIR)/lib/data -I$(MAINSRCDIR)/lib/graphics -I$(MAINSRCDIR)/lib/graphics/importer -I$(MAINSRCDIR)/lib/graphics/particles -I$(MAINSRCDIR)/lib/gui -I$(MAINSRCDIR)/lib/gui/gui -I$(MAINSRCDIR)/lib/lang -I$(MAINSRCDIR)/lib/util -I$(MAINSRCDIR)/lib/math -I$(MAINSRCDIR)/defs -I$(MAINSRCDIR)/font -I$(MAINSRCDIR)/network -I$(MAINSRCDIR)/glmenu -I$(MAINSRCDIR)/ai -I$(MAINSRCDIR)/util -I$(MAINSRCDIR)/util/animation -I$(MAINSRCDIR)/util/common -I$(MAINSRCDIR)/subprojects
    275278noinst_LIBRARIES = libORXgui.a
    276279orxonox_DEPENDENCIES = libORXgui.a
    277 orxonox_LDADD = libORXgui.a
     280orxonox_LDADD = libORXgui.a $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS)
    278281orxonox_SOURCES = orxonox.cc \
    279282                 game_loader.cc \
     
    332335                 lib/xmlparser/tinystr.cc \
    333336                 lib/xmlparser/tinyxmlerror.cc \
    334                  lib/xmlparser/tinyxmlparser.cc
     337                 lib/xmlparser/tinyxmlparser.cc \
     338                 subprojects/benchmark.cc
    335339
    336340noinst_HEADERS = orxonox.h \
     
    405409                 lib/gui/gui/gui_banner.h \
    406410                 lib/gui/gui/gui_keys.h \
    407                  lib/gui/gui/gui_update.h
     411                 lib/gui/gui/gui_update.h \
     412                 subprojects/benchmark.h
    408413
    409414libORXgui_a_CPPFLAGS = $(GTK2_CFLAGS) $(GTHREAD_CFLAGS) $(CURL_CFLAGS) $(MSBITFIELDS)
    410 AM_LDFLAGS = $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS)
    411415libORXgui_a_SOURCES = lib/gui/gui/gui.cc \
    412416                            lib/gui/gui/gui_gtk.cc \
     
    446450          esac; \
    447451        done; \
    448         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/Makefile'; \
     452        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/Makefile'; \
    449453        cd $(top_srcdir) && \
    450           $(AUTOMAKE) --gnu  src/Makefile
     454          $(AUTOMAKE) --foreign  src/Makefile
    451455.PRECIOUS: Makefile
    452456Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     
    513517@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/base_entity.Po@am__quote@
    514518@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/base_object.Po@am__quote@
     519@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/benchmark.Po@am__quote@
    515520@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/camera.Po@am__quote@
    516521@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/campaign.Po@am__quote@
     
    15331538@AMDEP_TRUE@@am__fastdepCXX_FALSE@      $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    15341539@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tinyxmlparser.obj `if test -f 'lib/xmlparser/tinyxmlparser.cc'; then $(CYGPATH_W) 'lib/xmlparser/tinyxmlparser.cc'; else $(CYGPATH_W) '$(srcdir)/lib/xmlparser/tinyxmlparser.cc'; fi`
     1540
     1541benchmark.o: subprojects/benchmark.cc
     1542@am__fastdepCXX_TRUE@   if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT benchmark.o -MD -MP -MF "$(DEPDIR)/benchmark.Tpo" -c -o benchmark.o `test -f 'subprojects/benchmark.cc' || echo '$(srcdir)/'`subprojects/benchmark.cc; \
     1543@am__fastdepCXX_TRUE@   then mv -f "$(DEPDIR)/benchmark.Tpo" "$(DEPDIR)/benchmark.Po"; else rm -f "$(DEPDIR)/benchmark.Tpo"; exit 1; fi
     1544@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='subprojects/benchmark.cc' object='benchmark.o' libtool=no @AMDEPBACKSLASH@
     1545@AMDEP_TRUE@@am__fastdepCXX_FALSE@      depfile='$(DEPDIR)/benchmark.Po' tmpdepfile='$(DEPDIR)/benchmark.TPo' @AMDEPBACKSLASH@
     1546@AMDEP_TRUE@@am__fastdepCXX_FALSE@      $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     1547@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o benchmark.o `test -f 'subprojects/benchmark.cc' || echo '$(srcdir)/'`subprojects/benchmark.cc
     1548
     1549benchmark.obj: subprojects/benchmark.cc
     1550@am__fastdepCXX_TRUE@   if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT benchmark.obj -MD -MP -MF "$(DEPDIR)/benchmark.Tpo" -c -o benchmark.obj `if test -f 'subprojects/benchmark.cc'; then $(CYGPATH_W) 'subprojects/benchmark.cc'; else $(CYGPATH_W) '$(srcdir)/subprojects/benchmark.cc'; fi`; \
     1551@am__fastdepCXX_TRUE@   then mv -f "$(DEPDIR)/benchmark.Tpo" "$(DEPDIR)/benchmark.Po"; else rm -f "$(DEPDIR)/benchmark.Tpo"; exit 1; fi
     1552@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='subprojects/benchmark.cc' object='benchmark.obj' libtool=no @AMDEPBACKSLASH@
     1553@AMDEP_TRUE@@am__fastdepCXX_FALSE@      depfile='$(DEPDIR)/benchmark.Po' tmpdepfile='$(DEPDIR)/benchmark.TPo' @AMDEPBACKSLASH@
     1554@AMDEP_TRUE@@am__fastdepCXX_FALSE@      $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     1555@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o benchmark.obj `if test -f 'subprojects/benchmark.cc'; then $(CYGPATH_W) 'subprojects/benchmark.cc'; else $(CYGPATH_W) '$(srcdir)/subprojects/benchmark.cc'; fi`
    15351556uninstall-info-am:
    15361557
     
    16561677
    16571678distdir: $(DISTFILES)
    1658         $(mkdir_p) $(distdir)/ai $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/data $(distdir)/lib/graphics $(distdir)/lib/graphics/importer $(distdir)/lib/graphics/particles $(distdir)/lib/gui/gui $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/network $(distdir)/proto $(distdir)/story_entities $(distdir)/util $(distdir)/util/animation $(distdir)/util/common $(distdir)/world_entities
     1679        $(mkdir_p) $(distdir)/ai $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/data $(distdir)/lib/graphics $(distdir)/lib/graphics/importer $(distdir)/lib/graphics/particles $(distdir)/lib/gui/gui $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/util $(distdir)/network $(distdir)/proto $(distdir)/story_entities $(distdir)/subprojects $(distdir)/util $(distdir)/util/animation $(distdir)/util/common $(distdir)/world_entities
    16591680        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    16601681        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  • orxonox/branches/heightMap/src/factory.h

    r4122 r4165  
    5757tFactory<T>::tFactory(const char* name) : Factory(name)
    5858{
    59   printf("fileName: %s\n", name);
     59  PRINTF(5)("fileName: %s\n", name);
    6060}
    6161 
  • orxonox/branches/heightMap/src/glmenu/glmenu_imagescreen.cc

    r4122 r4165  
    9797{
    9898  delete this->backMat;
    99   delete barMat;
     99  delete this->barMat;
    100100}
    101101
  • orxonox/branches/heightMap/src/lib/Makefile.in

    r4122 r4165  
    113113PACKAGE_VERSION = @PACKAGE_VERSION@
    114114PATH_SEPARATOR = @PATH_SEPARATOR@
     115PKG_CONFIG = @PKG_CONFIG@
    115116RANLIB = @RANLIB@
    116117SET_MAKE = @SET_MAKE@
     
    182183          esac; \
    183184        done; \
    184         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/Makefile'; \
     185        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/Makefile'; \
    185186        cd $(top_srcdir) && \
    186           $(AUTOMAKE) --gnu  src/lib/Makefile
     187          $(AUTOMAKE) --foreign  src/lib/Makefile
    187188.PRECIOUS: Makefile
    188189Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/branches/heightMap/src/lib/coord/p_node.cc

    r4122 r4165  
    9999  this->parent = parent;
    100100  this->objectName = NULL;
    101   this->time = 1.0; /* set time to 1 to make divisions by zero impossible */
    102101}
    103102
     
    281280}
    282281
    283 
    284 
    285 /**
    286    \brief this calculates the current movement speed of the node
    287 */
    288 float PNode::getSpeed() const
    289 {
    290   return (this->absCoordinate - this->lastAbsCoordinate).len() / this->time;
    291 }
    292 
    293 /**
    294    \returns the Velocity of the PNode
    295 */
    296 Vector PNode::getVelocity() const
    297 {
    298   return (this->absCoordinate - this->lastAbsCoordinate) / this->time;
    299 }
    300 
    301282/**
    302283   \brief adds a child and makes this node to a parent
     
    424405{
    425406  this->lastAbsCoordinate = this->absCoordinate;
    426   this->time = dt;
     407
    427408  PRINTF(4)("PNode::update - %s - (%f, %f, %f)\n", this->objectName, this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
    428409
     
    499480  delete iterator;
    500481
     482  this->velocity = (this->absCoordinate - this->lastAbsCoordinate) / dt;
    501483  this->timeStamp = timeStamp;
    502484  this->bRelCoorChanged = false;
  • orxonox/branches/heightMap/src/lib/coord/p_node.h

    r4122 r4165  
    6969  void shiftDir (const Quaternion& shift);
    7070
    71   float getSpeed() const;
    72   Vector getVelocity() const;
     71  /** \returns the Speed of the Node */
     72  inline float getSpeed() const {return this->velocity.len()/1000;} //! \FIX THIS SHOULD NOT BE /1000
     73  /** \returns the Velocity of the Node */
     74  inline const Vector& getVelocity() const {return this->velocity;}
    7375
    7476  void addChild (PNode* pNode, int parentingMode = DEFAULT_MODE);
     
    110112  void init(PNode* parent);
    111113
     114  Vector velocity;          //!< Saves the velocity.
    112115  Vector lastAbsCoordinate; //!< this is used for speedcalculation, it stores the last coordinate
    113   Vector diffCoordinate;    //!< this is stored here for performance reasons, difference to the last vector
    114   float time;                //!< time since last update
    115116};
    116117
  • orxonox/branches/heightMap/src/lib/graphics/Makefile.in

    r4122 r4165  
    113113PACKAGE_VERSION = @PACKAGE_VERSION@
    114114PATH_SEPARATOR = @PATH_SEPARATOR@
     115PKG_CONFIG = @PKG_CONFIG@
    115116RANLIB = @RANLIB@
    116117SET_MAKE = @SET_MAKE@
     
    176177          esac; \
    177178        done; \
    178         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/graphics/Makefile'; \
     179        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/graphics/Makefile'; \
    179180        cd $(top_srcdir) && \
    180           $(AUTOMAKE) --gnu  src/lib/graphics/Makefile
     181          $(AUTOMAKE) --foreign  src/lib/graphics/Makefile
    181182.PRECIOUS: Makefile
    182183Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/branches/heightMap/src/lib/graphics/graphics_engine.cc

    r4122 r4165  
    3131{
    3232  this->setClassName ("GraphicsEngine");
     33
     34  this->fullscreen = false;
     35
    3336  this->initVideo();
    3437
     
    140143int GraphicsEngine::setResolution(int width, int height, int bpp)
    141144{
     145  Uint32 fullscreenFlag;
    142146  this->resolutionX = width;
    143147  this->resolutionY = height;
    144148  this->bitsPerPixel = bpp;
     149  if (this->fullscreen)
     150    fullscreenFlag = SDL_FULLSCREEN;
     151  else
     152    fullscreenFlag = 0;
    145153 
    146154  printf ("ok\n");
    147   if((this->screen = SDL_SetVideoMode(this->resolutionX, this->resolutionY, this->bitsPerPixel, this->videoFlags)) == NULL)
     155  if((this->screen = SDL_SetVideoMode(this->resolutionX, this->resolutionY, this->bitsPerPixel, this->videoFlags | fullscreenFlag)) == NULL)
    148156    {
    149157      PRINTF(1)("Could not SDL_SetVideoMode(%d, %d, %d, %d): %s\n", this->resolutionX, this->resolutionY, this->bitsPerPixel, this->videoFlags, SDL_GetError());
     
    151159      //    return -1;
    152160    }
    153 
     161}
     162
     163void GraphicsEngine::setFullscreen(bool fullscreen)
     164{
     165  this->fullscreen = fullscreen;
     166  this->setResolution(this->resolutionX, this->resolutionY, this->bitsPerPixel);
    154167}
    155168
     
    257270  /* Check if our resolution is restricted */
    258271  if(this->videoModes == (SDL_Rect **)-1){
    259     PRINTF(1)("All resolutions available.\n");
     272    PRINTF(2)("All resolutions available.\n");
    260273  }
    261274  else{
     
    263276    PRINT(0)("Available Resoulution Modes are\n");
    264277    for(int i = 0; this->videoModes[i]; ++i)
    265       PRINT(0)(" |  %d x %d\n", this->videoModes[i]->w, this->videoModes[i]->h);
     278      PRINT(4)(" |  %d x %d\n", this->videoModes[i]->w, this->videoModes[i]->h);
    266279  }
    267280 
  • orxonox/branches/heightMap/src/lib/graphics/graphics_engine.h

    r3844 r4165  
    2626  int setGLattribs(void);
    2727  int setResolution(int width, int height, int bpp);
     28  void setFullscreen(bool fullscreen = false);
    2829  /** \returns the x resolution */
    2930  inline int getResolutionX(void) {return this->resolutionX;}
  • orxonox/branches/heightMap/src/lib/graphics/importer/Makefile.in

    r4122 r4165  
    150150PACKAGE_VERSION = @PACKAGE_VERSION@
    151151PATH_SEPARATOR = @PATH_SEPARATOR@
     152PKG_CONFIG = @PKG_CONFIG@
    152153RANLIB = @RANLIB@
    153154SET_MAKE = @SET_MAKE@
     
    247248          esac; \
    248249        done; \
    249         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/graphics/importer/Makefile'; \
     250        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/graphics/importer/Makefile'; \
    250251        cd $(top_srcdir) && \
    251           $(AUTOMAKE) --gnu  src/lib/graphics/importer/Makefile
     252          $(AUTOMAKE) --foreign  src/lib/graphics/importer/Makefile
    252253.PRECIOUS: Makefile
    253254Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/branches/heightMap/src/lib/graphics/importer/material.cc

    r4111 r4165  
    4545  this->setTransparency(1.0);
    4646
    47 
    4847  this->diffuseTexture = NULL;
    4948  this->ambientTexture = NULL;
    5049  this->specularTexture = NULL;
    51 
    52   this->diffuseTextureSet = false;
    53   this->ambientTextureSet = false;
    54   this->specularTextureSet = false;
    5550
    5651  this->setName(mtlName);
     
    107102    glShadeModel(GL_SMOOTH);
    108103
    109   if (this->diffuseTextureSet)
     104  if (this->diffuseTexture)
    110105    {
    111106      glEnable(GL_TEXTURE_2D);
     
    300295{
    301296  PRINTF(4)("setting Diffuse Map %s\n", dMap);
    302   //    diffuseTexture = new Texture();
    303   //    this->diffuseTextureSet = diffuseTexture->loadImage(dMap);
    304297
    305298  //! \todo check if RESOURCE MANAGER is availiable
    306299  //! \todo Textures from .mtl-file need special care.
    307   this->diffuseTextureSet = this->diffuseTexture = (Texture*)ResourceManager::getInstance()->load(dMap, IMAGE);
     300  this->diffuseTexture = (Texture*)ResourceManager::getInstance()->load(dMap, IMAGE);
    308301}
    309302
  • orxonox/branches/heightMap/src/lib/graphics/importer/material.h

    r3914 r4165  
    6767  Texture* ambientTexture; //!< The ambient texture of the Material.
    6868  Texture* specularTexture;//!< The specular texture of the Material.
    69  
    70   bool diffuseTextureSet; //!< Chekcs if the diffuse texture is Set.
    71   bool ambientTextureSet; //!< Chekcs if the ambient texture is Set.
    72   bool specularTextureSet;//!< Chekcs if the specular texture is Set.
    73 
    7469};
    7570#endif
  • orxonox/branches/heightMap/src/lib/graphics/particles/particle_system.cc

    r4122 r4165  
    4040   this->particleType = type;
    4141   this->particles = NULL;
     42   this->deadList = NULL;
    4243   this->setConserve(.8);
    4344   this->setLifeSpan(.1);
     
    5758  // delete what has to be deleted here
    5859   ParticleEngine::getInstance()->removeSystem(this);
     60
     61   // deleting all the living Particles
     62   while (this->particles)
     63     {
     64       Particle* tmpDelPart = this->particles;
     65       this->particles = this->particles->next;
     66       delete tmpDelPart;
     67     }
     68
     69   // deleting all the dead particles
     70   while (this->deadList)
     71     {
     72       Particle* tmpDelPart = this->deadList;
     73       this->deadList = this->deadList->next;
     74       delete tmpDelPart;
     75     }
    5976}
    6077
     
    199216            {
    200217              prevPart->next = tickPart->next;
    201               delete tickPart;
     218              tickPart->next = this->deadList;
     219              this->deadList = tickPart;
    202220              tickPart = prevPart->next;
    203221            }
     
    206224              prevPart = NULL;
    207225              this->particles = tickPart->next;
    208               delete tickPart;
     226              tickPart->next = this->deadList;
     227              this->deadList = tickPart;
    209228              tickPart = this->particles;
    210229            }
     
    266285      if (unlikely(particles == NULL))
    267286        {
    268           this->particles = new Particle;
     287          if (likely(deadList != NULL))
     288            {
     289              this->particles = this->deadList;
     290              deadList = deadList->next;
     291            }
     292          else
     293            this->particles = new Particle;
    269294          this->particles->next = NULL;
    270295        }
     
    272297      else
    273298        {
    274           Particle* tmpPart = new Particle;
     299          Particle* tmpPart;
     300          if (likely(deadList != NULL))
     301            {
     302              tmpPart = this->deadList;
     303              deadList = deadList->next;
     304            }
     305          else
     306            tmpPart = new Particle;
    275307          tmpPart->next = this->particles;
    276308          this->particles = tmpPart;
     
    300332  PRINT(0)("  ParticleSystem %s\n", this->name);
    301333  PRINT(0)("  ParticleCount: %d, maximumCount: %d :: filled %d%%\n", this->count, this->maxCount, 100*this->count/this->maxCount);
    302 }
     334  if (deadList)
     335    {
     336      PRINT(0)("  - ParticleDeadList is used: ");
     337      int i = 1;
     338      Particle* tmpPart = this->deadList;
     339      while (tmpPart = tmpPart->next) ++i;
     340      PRINT(0)("count: %d\n", i);
     341    }
     342}
  • orxonox/branches/heightMap/src/lib/graphics/particles/particle_system.h

    r4122 r4165  
    9292  Material* material;        //!< A Material for all the Particles.
    9393  Particle* particles;       //!< A list of particles of this System.
     94  Particle* deadList;        //!< A list of dead Particles in the System.
    9495
    9596  GLuint* glID;              //!< A List of different gl-List-ID's
  • orxonox/branches/heightMap/src/lib/gui/Makefile.in

    r4122 r4165  
    113113PACKAGE_VERSION = @PACKAGE_VERSION@
    114114PATH_SEPARATOR = @PATH_SEPARATOR@
     115PKG_CONFIG = @PKG_CONFIG@
    115116RANLIB = @RANLIB@
    116117SET_MAKE = @SET_MAKE@
     
    178179          esac; \
    179180        done; \
    180         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/gui/Makefile'; \
     181        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/gui/Makefile'; \
    181182        cd $(top_srcdir) && \
    182           $(AUTOMAKE) --gnu  src/lib/gui/Makefile
     183          $(AUTOMAKE) --foreign  src/lib/gui/Makefile
    183184.PRECIOUS: Makefile
    184185Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/branches/heightMap/src/lib/gui/console/Makefile.in

    r4122 r4165  
    132132PACKAGE_VERSION = @PACKAGE_VERSION@
    133133PATH_SEPARATOR = @PATH_SEPARATOR@
     134PKG_CONFIG = @PKG_CONFIG@
    134135RANLIB = @RANLIB@
    135136SET_MAKE = @SET_MAKE@
     
    204205          esac; \
    205206        done; \
    206         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/gui/console/Makefile'; \
     207        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/gui/console/Makefile'; \
    207208        cd $(top_srcdir) && \
    208           $(AUTOMAKE) --gnu  src/lib/gui/console/Makefile
     209          $(AUTOMAKE) --foreign  src/lib/gui/console/Makefile
    209210.PRECIOUS: Makefile
    210211Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/branches/heightMap/src/lib/gui/gui/Makefile.in

    r4122 r4165  
    150150PACKAGE_VERSION = @PACKAGE_VERSION@
    151151PATH_SEPARATOR = @PATH_SEPARATOR@
     152PKG_CONFIG = @PKG_CONFIG@
    152153RANLIB = @RANLIB@
    153154SET_MAKE = @SET_MAKE@
     
    264265          esac; \
    265266        done; \
    266         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/gui/gui/Makefile'; \
     267        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/gui/gui/Makefile'; \
    267268        cd $(top_srcdir) && \
    268           $(AUTOMAKE) --gnu  src/lib/gui/gui/Makefile
     269          $(AUTOMAKE) --foreign  src/lib/gui/gui/Makefile
    269270.PRECIOUS: Makefile
    270271Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/branches/heightMap/src/lib/gui/gui/gui.cc

    r4122 r4165  
    5353{
    5454  Window* orxonoxGUI = NULL;
    55 
     55  executable = NULL;
     56 
    5657  initGUI(argc, argv);
    5758
     
    8081      Box* optionBoxR = new Box('v');
    8182      {
    82         exec = new GuiExec();
    83         optionBoxR->fill(exec->getWidget());
    84        
    8583        flags = new GuiFlags();
    86        
    8784        optionBoxR->fill(flags->getWidget());
    8885       
    8986        update = new GuiUpdate();
    9087        optionBoxR->fill(update->getWidget());
     88
     89        exec = new GuiExec();
     90        optionBoxR->fill(exec->getWidget());
    9191      }
    9292      windowBox->fill(optionBoxR);
     
    9494    orxonoxGUI->fill(windowBox);
    9595  }
     96
     97
    9698  // Reading Values from File
    9799  exec->setConfDir(GUI_DEFAULT_CONF_DIR);
     
    116118    }
    117119#endif /* HAVE_CURL */
     120}
    118121
     122/**
     123   \brief starts the OrxonoxGUI
     124*/
     125void Gui::startGui(void)
     126{
    119127  mainloopGUI();
     128 
    120129#ifndef HAVE_GTK2
    121130  GuiExec::startOrxonox(NULL, exec);
     
    123132}
    124133
     134void Gui::printHelp()
     135{
     136  Window::mainWindow->walkThrough(Widget::printHelp, 1);
     137}
     138
     139/**
     140   \brief a bool that knows if orxonox should be started
     141*/
    125142bool Gui::startOrxonox = false;
    126143
  • orxonox/branches/heightMap/src/lib/gui/gui/gui.h

    r4122 r4165  
    2626  ~Gui(void);
    2727
     28  void startGui(void);
     29  void printHelp(void);
     30
    2831  static bool startOrxonox;
    2932};
  • orxonox/branches/heightMap/src/lib/gui/gui/gui_audio.cc

    r4122 r4165  
    4747      enableSound = new CheckButton(CONFIG_NAME_DISABLE_AUDIO);
    4848      enableSound->setFlagName ("no-sound", 0);
     49      enableSound->setDescription("Disables Sound", "Check this to disable Sound in Orxonox");
     50      enableSound->setDefaultValue(0);
    4951      enableSound->saveability();
    5052      audioBox->fill(enableSound);
     
    5355      musicVolume = new Slider("Music Volume", 0, 100);
    5456      musicVolume->setFlagName("music-volume", "m", 80);
     57      musicVolume->setDescription("Sets the volume of the ingame music");
    5558      musicVolume->saveability();
    5659      audioBox->fill (musicVolume);
     
    5962      effectsVolume = new Slider ("Effects Volume", 0, 100);
    6063      effectsVolume->setFlagName ("effects-volume", "e", 80);
     64      effectsVolume->setDescription("Sets the volune of the ingame SoundEffects");
    6165      effectsVolume->saveability();
    6266      audioBox->fill (effectsVolume);
  • orxonox/branches/heightMap/src/lib/gui/gui/gui_exec.cc

    r4122 r4165  
    7070      execBox->fill(this->saveSettings);
    7171
    72       verboseMode = new Menu(CONFIG_NAME_VERBOSE_MODE, "nothing", "error", "warning", "info", "lastItem");
     72#ifdef DEBUG
     73      verboseMode = new Menu(CONFIG_NAME_VERBOSE_MODE, "nothing",
     74#if DEBUG >=1
     75                             "error",
     76#endif
     77#if DEBUG >=2
     78                             "warning",
     79#endif
     80#if DEBUG >=3
     81                             "info",
     82#endif
     83#if DEBUG >=4
     84                             "debug",
     85#endif
     86#if DEBUG >=5
     87                             "heavydebug",
     88#endif
     89                             "lastItem");
    7390      verboseMode->setFlagName("verbose", "v", 2);
     91      verboseMode->setDescription("Sets the Output Mode", "This Enables Outbug messages\n"
     92                                  "0: nothing will be displayed, but stuff one cannot do without (eg.GUI)\n"
     93#if DEBUG >=1
     94                                  "1: error: outputs all the above and errors"
     95#endif
     96#if DEBUG >=2
     97                                  "2: warning: outputs all the above plus warnings"
     98#endif
     99#if DEBUG >=3
     100                                  "3: info: outputs all the above plus Information"
     101#endif
     102#if DEBUG >=4
     103                                  "4: debug: displays all the above plus debug information"
     104#endif
     105#if DEBUG >=5
     106                                  "5: heavydebug: displays all the above plus heavy debug information: WARNING: the game will run very slow with this."
     107#endif
     108                                  );
    74109      verboseMode->saveability();
    75110      execBox->fill(verboseMode);
     111#endif
    76112
    77113      alwaysShow = new CheckButton(CONFIG_NAME_ALWAYS_SHOW_GUI);
    78114      alwaysShow->setFlagName("gui", "g", 0);
     115      alwaysShow->setDescription("shows the gui when starting orxonox");
    79116      alwaysShow->saveability();
    80117      execBox->fill(alwaysShow);
     
    114151  this->confDir = ResourceManager::homeDirCheck(confDir);
    115152
    116   PRINTF(3)("Config Directory is: %s.\n", this->confDir);
     153  PRINTF(5)("Config Directory is: %s.\n", this->confDir);
    117154  //! \todo F** Windows-support
    118155#ifndef __WIN32__
     
    135172  this->confFile = new char[strlen(this->confDir)+strlen(fileName)+2];
    136173  sprintf(this->confFile, "%s/%s", this->confDir, fileName);
    137   PRINTF(3)("ConfigurationFile is %s.\n", this->confFile);
     174  PRINTF(5)("ConfigurationFile is %s.\n", this->confFile);
    138175}
    139176
  • orxonox/branches/heightMap/src/lib/gui/gui/gui_flags.cc

    r4122 r4165  
    3838  this->flagsBox->fill(flagsLabel);
    3939  this->shortFlags = new CheckButton("shortFlags");
     40  this->shortFlags->setDefaultValue(0);
    4041  this->flagsBox->fill(shortFlags);
    4142
  • orxonox/branches/heightMap/src/lib/gui/gui/gui_gtk.cc

    r4122 r4165  
    312312
    313313/**
     314    \brief This is for listing the options of "widget"
     315    \param widget specifies the widget that should be listed
     316    \param data A Counter, that always knows how many Options have been found yet.
     317*/
     318void Widget::printHelp(Widget* widget)
     319{
     320  int helpLen=0;
     321
     322  if (widget->optionType > GUI_NOTHING)
     323    {
     324      Option* option = (Option*)widget;
     325      if (option->flagName || option->flagNameShort)
     326        {
     327          PRINT(0)("  ");
     328          if (option->flagNameShort)
     329            {
     330              PRINT(0)("-%s", option->flagNameShort);
     331              helpLen += strlen(option->flagNameShort)+1;
     332            }
     333          if (option->flagName)
     334            {
     335              if (helpLen > 0)
     336                {
     337                  PRINT(0)("|");
     338                  helpLen++;
     339                }
     340              PRINT(0)("--%s:", option->flagName);
     341              helpLen += strlen(option->flagName)+2;
     342            }
     343          while ((helpLen ++) < 29)
     344            PRINT(0)(" ");
     345          if (option->shortDescription)
     346            PRINT(0)("%s\n", option->shortDescription);
     347          else
     348            PRINT(0)("\n");
     349        }
     350    }
     351}
     352
     353/**
    314354    \brief Finds an Option by a given number(the n'th option found away from this Widget)
    315355    \param number The Count of options to wait(by reference)
     
    595635    }
    596636  else
    597     PRINTF(1)("You tried to put more than one Widget into a Container. \nNot including this item.\nThis is only possible with Boxes.\n");
     637    PRINTF(2)("You tried to put more than one Widget into a Container. \nNot including this item.\nThis is only possible with Boxes.\n");
    598638}
    599639
     
    11771217  if ((this->value = atoi(tmpChar))=!0)
    11781218    this->value = 1;
    1179 #endif /* HAVE_GTK2 */
     1219
    11801220  PRINT(0)("%s set to: %d\n", this->title, this->value);
     1221#endif /* HAVE_GTK2 */
    11811222}
    11821223
     
    12621303  if (this->value <= this->start)
    12631304    this->value = this->start;
    1264 #endif /* HAVE_GTK2 */
     1305
    12651306  PRINT(0)("%s set to: %d\n",this->title, this->value);
     1307#endif /* HAVE_GTK2 */
    12661308}
    12671309
     
    13701412    {
    13711413      this->value = 0;
    1372       PRINTF(2)("Sorry, but %s has not been found in the Itemlist of %s\n", loadString, this->title);
    1373     }
    1374   PRINTF(4)( "Loading %s: setting to %d\n", this->title, this->value);
     1414      PRINTF(2)("%s has not been found in the Itemlist of %s\n", loadString, this->title);
     1415    }
     1416  PRINTF(5)( "Loading %s: setting to %d\n", this->title, this->value);
    13751417  this->redraw();
    13761418}
     
    14291471
    14301472#endif /* HAVE_GTK2 */
    1431   PRINT(4)("%s set to: %d\n", this->title, this->value);
     1473  PRINT(5)("%s set to: %d\n", this->title, this->value);
    14321474}
    14331475
     
    15181560void OptionLabel::load(char* loadString)
    15191561{
    1520   PRINTF(4)("Loading %s: setting to %s\n", this->title, loadString);
     1562  PRINTF(5)("Loading %s: setting to %s\n", this->title, loadString);
    15211563  this->setValue(loadString);
    15221564}
     
    16681710#ifdef HAVE_GTK2
    16691711  gtk_progress_set_value(GTK_PROGRESS(widget), this->progress*100.0/this->totalSize);
    1670   PRINTF(4)("Progress: %f%%\n", this->progress*100.0/this->totalSize);
     1712  PRINTF(5)("Progress: %f%%\n", this->progress*100.0/this->totalSize);
    16711713#else /* HVE_GTK2 */
    16721714  PRINT(0)("Progress: %f%%\n", this->progress*100.0/this->totalSize);
  • orxonox/branches/heightMap/src/lib/gui/gui/gui_gtk.h

    r4122 r4165  
    7171   static void listGroups(Widget* widget);
    7272   static void listGroups(Widget* widget, void* data);
     73   static void printHelp(Widget* widget);
    7374   Widget* findGroupByNumber(int* number, unsigned int depth);
    7475   static void setOptions(Widget* widget);
  • orxonox/branches/heightMap/src/lib/gui/gui/gui_update.cc

    r4122 r4165  
    5555  dataDirButton = new Button(CONFIG_NAME_DATADIR);
    5656  dataDirLabel = new OptionLabel(CONFIG_NAME_DATADIR, "unknown");
     57  dataDirLabel->setFlagName("data-dir", "d", 0);
     58  dataDirLabel->setDescription("Sets the location of the orxonox' Data-Directory");
    5759  dataDirLabel->saveability();
    5860  dataDirDialog = new FileDialog("data-Repos-location");
     
    7375  this->updateBox->fill(this->autoUpdate);
    7476  this->autoUpdate->setFlagName("update", "u", 0);
     77  this->autoUpdate->setDescription("Updates orxonox", "When this option is selected orxonox automatically searches for updates, and if found installs them");
    7578  this->autoUpdate->saveability();
    7679
     
    127130bool GuiUpdate::getSystemInfo(void)
    128131{
    129   PRINTF(3)("Grabbing system information\n");
     132  PRINTF(5)("Grabbing system information\n");
    130133  this->tmpDir = getenv("TMPDIR");
    131134  if(!tmpDir)
    132135    this->tmpDir = "/tmp";
    133   PRINTF(4)("Temporary directory is: %s\n", this->tmpDir);
     136  PRINTF(5)("Temporary directory is: %s\n", this->tmpDir);
    134137
    135138#ifdef __WIN32__
     
    138141  this->homeDir = getenv("HOME");
    139142#endif
    140   PRINTF(4)("Home directory is %s\n", homeDir);
    141 
    142   this->installDataDir = "/usr/share/games/orxonox";
    143   PRINTF(4)("Installation of orxonox-data will go to this directory: %s\n", this->installDataDir);
     143  PRINTF(5)("Home directory is %s\n", homeDir);
     144
     145
     146  this->installDataDir = DEFAULT_DATA_DIR;
     147  PRINTF(5)("Installation of orxonox-data will go to this directory: %s\n", this->installDataDir);
    144148
    145149  this->installSourceDir = "/usr/games/bin";
    146   PRINTF(4)("Installation of orxonox-source will go to this directory: %s\n", this->installSourceDir);
     150  PRINTF(5)("Installation of orxonox-source will go to this directory: %s\n", this->installSourceDir);
    147151
    148152  this->userName = getenv("USER");
    149   PRINTF(4)("Logged in username is: %s\n", this->userName);
     153  PRINTF(5)("Logged in username is: %s\n", this->userName);
    150154}
    151155
     
    153157bool* GuiUpdate::checkForUpdates(void)
    154158{
    155   PRINTF(3)("checking for new version of orxonox\n");
     159  PRINTF(4)("checking for new version of orxonox\n");
    156160  FileInfo updateFileInfo;
    157161  updateFileInfo.fileName = "update_info";
     
    263267  dataInfo->webRoot  = "http://www.orxonox.ethz.ch/files/";
    264268  dataInfo->localRoot = "./";
    265   PRINTF(3)("Preparing to download file %s.\n", dataInfo->fileName);
     269  PRINTF(4)("Preparing to download file %s.\n", dataInfo->fileName);
    266270  downloadWithStyle(dataInfo);
    267271}
     
    348352      return false;
    349353    }
    350   PRINTF(3)("Downloading.\n");
     354  PRINTF(4)("Downloading.\n");
    351355  FileInfo* info =(FileInfo*)fileInfo;
    352356  CURLcode res;
     
    396400      return false;
    397401    }
    398   PRINTF(3)("Downloading.\n");
     402  PRINTF(4)("Downloading.\n");
    399403  FileInfo* info =(FileInfo*)fileInfo;
    400404  CURLcode res;
     
    464468    curl_easy_cleanup(curlHandle);
    465469 
    466   PRINTF(3)("Closing the downloaded file.\n");
     470  PRINTF(4)("Closing the downloaded file.\n");
    467471  fclose(info->fileHandle);
    468472
     
    490494gint GuiUpdate::cancelDownload(GtkWidget* w, GdkEventKey* event, void* bar)
    491495{
    492   PRINTF(4)("Cannot cancle the Downloading process until after this File\n");
     496  PRINTF(3)("Cannot cancle the Downloading process until after this File\n");
    493497}
    494498#endif /* HAVE_GTK2 */
  • orxonox/branches/heightMap/src/lib/gui/gui/gui_video.cc

    r4122 r4165  
    5151      fullscreen = new CheckButton(CONFIG_NAME_FULLSCREEN);
    5252      fullscreen->setFlagName("windowed", "q", 1);
     53      fullscreen->setDescription("Starts orxonox in windowed mode");
    5354      fullscreen->saveability();
    5455      videoBox->fill(fullscreen);
     
    5758      resolution->saveability();
    5859      resolution->setFlagName("resolution", "r", 0);
     60      resolution->setDescription("Sets the resolution of orxonox");
    5961      videoBox->fill(resolution);
    6062      wireframe = new CheckButton(CONFIG_NAME_WIREFRAME);
    6163      wireframe->setFlagName("wireframe", "w", 0);
     64      wireframe->setDescription("Starts orxonox in wireframe mode");
    6265      wireframe->saveability();
    6366      videoBox->fill(wireframe);
     
    199202  else{
    200203    /* Print valid modes */
    201     PRINT(4)("Available Modes\n");
     204    PRINT(5)("Available Modes\n");
    202205    for(i = 0; modes[i] ;++i)
    203206      {
    204207        if (x != modes[i]->w || y != modes[i]->h)
    205208          {
    206             PRINT(4)("  %d x %d\n", modes[i]->w, modes[i]->h);
     209            PRINTF(5)("  %d x %d\n", modes[i]->w, modes[i]->h);
    207210            sprintf(tmpChar, "%dx%d", modes[i]->w, modes[i]->h);
    208211            menu->addItem(tmpChar);
  • orxonox/branches/heightMap/src/orxonox.cc

    r4122 r4165  
    3838#include "text_engine.h"
    3939#include "factory.h"
     40#include "benchmark.h"
    4041
    4142#include <string.h>
     
    4748/**
    4849   \brief create a new Orxonox
     50
     51   In this funcitons only global values are set. The game will not be started here.
    4952*/
    5053Orxonox::Orxonox ()
     
    5558  this->resources = NULL;
    5659  this->localinput = NULL;
     60
     61  this->argc = 0;
     62  this->argv = NULL;
    5763}
    5864
     
    102108int Orxonox::init (int argc, char** argv)
    103109{
     110  this->argc = argc;
     111  this->argv = argv;
    104112  // parse command line
    105113  // config file
     
    131139 
    132140  GraphicsEngine::getInstance();
    133  
     141   
    134142  return 0;
    135143}
     
    219227  PRINT(3)("initializing TextEngine\n");
    220228  TextEngine::getInstance();
     229
     230  return 0;
    221231}
    222232
     
    336346*/
    337347int main(int argc, char** argv)
    338 
    339  
    340   /* reading arguments
    341      
    342      currently supported arguments are:
    343      <no args>                   ::    just starts orxonox
    344      --benchmark                 ::    start the benchmark without starting orxonox
    345      
    346      this is a preselection: it matches to one of the start* functions, the
    347      finetuning is made in those functions.
    348   */
    349 
    350 
     348{
     349
     350  // here the pre-arguments are loaded, these are needed to go either to orxonx itself, Help, or Benchmark.
    351351  int i;
    352352  for(i = 1; i < argc; ++i)
    353353    {
    354       if(! strcmp( "--help", argv[i])) return startHelp();
    355       else if(! strcmp( "--benchmark", argv[i])) return startBenchmarks();
    356       else if(! strcmp( "--gui", argv[i]) || !strcmp("-g", argv[i])) showGui = true;
    357       else PRINTF(2)("Orxonox does not understand the arguments %s\n", argv[i]);
     354      if(! strcmp( "--help", argv[i]) || !strcmp("-h", argv[i])) return startHelp(argc, argv);
     355      else if(!strcmp( "--benchmark", argv[i]) || !strcmp("-b", argv[i])) return startBenchmarks();
     356      else if(!strcmp( "--gui", argv[i]) || !strcmp("-g", argv[i])) showGui = true;
     357      //      else PRINTF(2)("Orxonox does not understand the arguments %s\n", argv[i]);
    358358    }
    359359
     
    363363
    364364
    365 int startHelp()
     365int startHelp(int argc, char** argv)
    366366{
    367367  PRINT(0)("orxonox: starts the orxonox game - rules\n");
    368   PRINT(0)("usage: orxonox [arg]\n\n");
     368  PRINT(0)("usage: orxonox [arg [arg...]]\n\n");
    369369  PRINT(0)("valid options:\n");
    370   PRINT(0)(" --benchmark\tstarts the orxonox benchmark\n");
    371   PRINT(0)(" --help \tshows this menu\n");
    372   PRINT(0)(" --gui/-g \tDisplays the Gui on startup\n");
     370  {
     371    Gui* gui = new Gui(argc, argv);
     372    gui->printHelp();
     373    delete gui;
     374  }
     375  PRINT(0)(" -b|--benchmark:\t\tstarts the orxonox benchmark\n");
     376  PRINT(0)(" -h|--help:\t\t\tshows this help\n");
    373377}
    374378
     
    383387      if (ResourceManager::isFile("~/.orxonox/orxonox.lock"))
    384388        ResourceManager::deleteFile("~/.orxonox/orxonox.lock");
    385       //      char* guiExec = new char[strlen(argv[0])+20];
    386       //      sprintf(guiExec,"%sGui --gui", argv[0]);
     389     
     390      // starting the GUI
    387391      Gui* gui = new Gui(argc, argv);
     392      gui->startGui();
     393
    388394      if (! gui->startOrxonox)
    389395        return 0;
     
    410416 
    411417}
    412 
    413 #if defined __linux__
    414 
    415 #include "list.h"
    416 #include "world_entity.h"
    417 #include "vector.h"
    418 #include "player.h"
    419 #include "base_object.h"
    420 
    421 #include <asm/msr.h>
    422 #include <linux/timex.h>
    423 
    424 
    425 #define LIST_MAX 1000
    426 #define VECTOR_MAX 1000000
    427 #define ITERATIONS 10000
    428 
    429 
    430 int startBenchmarks()
    431 {
    432 
    433   printf("===========================================================\n");
    434   printf("=                      BENCHMARKS                         =\n");
    435   printf("===========================================================\n");
    436   printf(" the author is not paying any attention to cacheing effects\n");
    437   printf(" of the CPU.\n\n");
    438   printf("[title]\t\t\t\t\t     [cycles]\t[loops]\n\n");
    439   //  printf("------------------------------------------------------------\n\n");
    440 
    441   // first measure the time overhead:
    442   unsigned long ini, end, dt, tmp;
    443   rdtscl(ini); rdtscl(end);
    444   dt = end - ini;
    445 
    446   int type = -1;
    447   /* type   -1 == all
    448      type    0 == framework
    449      type    1 == vector
    450      type    2 == quaternion
    451      type    3 == lists
    452   */
    453   if(type == 0 || type == -1)
    454     {
    455       /* framework test*/
    456      
    457       printf("Generating Objects:\t\t\t\t\t%i\n", ITERATIONS);
    458       /* ************WorldEntity class test************** */
    459       WorldEntity* w = NULL;
    460       int i = 0;
    461       unsigned long mittel = 0;
    462      
    463       for(i = 0; i < ITERATIONS; ++i)
    464         {
    465           rdtscl(ini);
    466          
    467           WorldEntity* w = new WorldEntity();
    468          
    469           rdtscl(end);
    470           delete w;
    471           mittel += (end - ini - dt);
    472         }
    473       float mi = mittel / (float)ITERATIONS;
    474       printf(" Generate a WorldEntity object:\t\t%11.2f\n", mi);
    475      
    476       /*
    477         mittel = 0;
    478         for(i = 0; i < ITERATIONS; ++i)
    479         {
    480         rdtscl(ini);
    481        
    482         WorldEntity* w = new Primitive(P_SPHERE);
    483        
    484         rdtscl(end);
    485         delete w;
    486         mittel += (end - ini - dt);
    487         }
    488         mi = mittel / (float)ITERATIONS;
    489         printf(" Generate a Primitive  object:\t\t%11.2f\n", mi);
    490       */
    491 
    492       mittel = 0;
    493       for(i = 0; i < ITERATIONS; ++i)
    494         {
    495           rdtscl(ini);
    496          
    497           Vector* v = new Vector();
    498          
    499           rdtscl(end);
    500           delete v;
    501           mittel += (end - ini - dt);
    502         }
    503       mi = mittel / (float)ITERATIONS;
    504       printf(" Generate a Vector object:\t\t%11.2f\n", mi);
    505 
    506 
    507      mittel = 0;
    508       for(i = 0; i < ITERATIONS; ++i)
    509         {
    510           rdtscl(ini);
    511          
    512           Quaternion* q = new Quaternion();
    513          
    514           rdtscl(end);
    515           delete q;
    516           mittel += (end - ini - dt);
    517         }
    518       mi = mittel / (float)ITERATIONS;
    519       printf(" Generate a Quaternion object:\t\t%11.2f\n", mi);
    520 
    521 
    522 
    523 
    524       printf("\nCalling function inline &| virtual, \t\t\t%i\n", ITERATIONS);
    525       mittel = 0;
    526       w = new WorldEntity();
    527       for(i = 0; i < ITERATIONS; ++i)
    528         {
    529           rdtscl(ini);
    530          
    531           w->tick(0.0f);
    532 
    533           rdtscl(end);
    534           mittel += (end - ini - dt);
    535           }
    536       //delete w;
    537       mi = mittel / (float)ITERATIONS;
    538       printf(" Virt funct tick() of WE: \t\t%11.2f\n", mi);
    539 
    540 
    541       mittel = 0;
    542       WorldEntity wo;
    543       for(i = 0; i < ITERATIONS; ++i)
    544         {
    545           rdtscl(ini);
    546          
    547           wo.tick(0.0f);
    548            
    549           rdtscl(end);
    550           mittel += (end - ini - dt);
    551           }
    552       //delete w;
    553       mi = mittel / (float)ITERATIONS;
    554       printf(" Inl virt funct tick() of WE v2: \t%11.2f\n", mi);
    555 
    556      
    557       mittel = 0;
    558       BaseObject* bo = new BaseObject();
    559       for(i = 0; i < ITERATIONS; ++i)
    560         {
    561           rdtscl(ini);
    562          
    563           bo->isFinalized();
    564            
    565           rdtscl(end);
    566           mittel += (end - ini - dt);
    567           }
    568       //delete w;
    569       mi = mittel / (float)ITERATIONS;
    570       printf(" Inl funct BaseObject::isFinazlized(): \t%11.2f\n", mi);
    571 
    572      
    573       tList<WorldEntity>* list = new tList<WorldEntity>();
    574 
    575      
    576       /* ************Primitvie class test************** */
    577       list = new tList<WorldEntity>();
    578  
    579      
    580       /*
    581         mittel = 0;
    582         w = new Primitive(P_SPHERE);
    583         for(i = 0; i < ITERATIONS; ++i)
    584         {
    585         rdtscl(ini);
    586        
    587         w->tick(0.0f);
    588        
    589         rdtscl(end);
    590         mittel += (end - ini - dt);
    591         }
    592         mi = mittel / (float)ITERATIONS;
    593         printf(" Call function tick() of Prim:\t\t%11.2f\n", mi);
    594       */
    595      
    596     }
    597  
    598   if(type == 1 || type == -1)
    599     {
    600       printf("\nDoing some simple vector operations: \t\t\t%i\n", VECTOR_MAX);
    601       /* vector test */
    602       Vector* a = new Vector(1.3, 5.3, 4.1);
    603       Vector* b = new Vector(0.4, 2.5, 6.2);
    604       Vector* c = new Vector();
    605      
    606       unsigned long mittel, ini, end;
    607       float mi;
    608       int i = 0;
    609       // addition
    610       mittel = 0;
    611       for(i = 0; i < VECTOR_MAX; ++i)
    612         {
    613           rdtscl(ini);
    614          
    615           *c = *a + *b;
    616            
    617           rdtscl(end);
    618           mittel += (end - ini - dt);
    619         }
    620       mi = mittel / (float)VECTOR_MAX;
    621       printf(" Addition of two vectors:\t\t%11.2f\n", mi);
    622      
    623       // multiplikation
    624 
    625       mittel = 0;
    626       for(i = 0; i < VECTOR_MAX; ++i)
    627         {
    628           rdtscl(ini);
    629          
    630           *c = a->cross( *b);
    631            
    632           rdtscl(end);
    633           mittel += (end - ini - dt);
    634         }
    635       mi = mittel / (float)VECTOR_MAX;
    636       printf(" CrossMult of two vectors:\t\t%11.2f\n", mi);
    637 
    638     }
    639   if( type == 2 || type == -1)
    640     {
    641       /* quaternion test */
    642       printf("\nDoing some simple quaternion operations: \t\t%i\n", VECTOR_MAX);
    643       /* vector test */
    644       Quaternion* a = new Quaternion();
    645       Quaternion* b = new Quaternion();
    646       Quaternion* c = new Quaternion();
    647      
    648       unsigned long mittel, ini, end;
    649       float mi;
    650       int i = 0;
    651       // quaternion generieren mit spez konstruktor
    652       mittel = 0;
    653       Vector* qa = new Vector(4.6, 9.3, 0.4);
    654       Vector* qb = new Vector(3.5, 6.1, 4.3);
    655       for(i = 0; i < VECTOR_MAX; ++i)
    656         {
    657           rdtscl(ini);
    658          
    659           Quaternion* qu = new Quaternion(*qa, *qb);
    660          
    661           rdtscl(end);
    662           delete qu;
    663           mittel += (end - ini - dt);
    664         }
    665       delete a;
    666       delete b;
    667       mi = mittel / (float)VECTOR_MAX;
    668       printf(" Gen. quatern. betw. two vectors:\t%11.2f\n", mi);
    669      
    670      
    671       // multiplication
    672       mittel = 0;
    673       for(i = 0; i < VECTOR_MAX; ++i)
    674         {
    675           rdtscl(ini);
    676          
    677           *c = *a * *b;
    678          
    679           rdtscl(end);
    680           mittel += (end - ini - dt);
    681         }
    682       mi = mittel / (float)VECTOR_MAX;
    683       printf(" Multiplying two quat.(=rot): a * b\t%11.2f\n", mi);
    684      
    685      
    686      
    687       // rotating a vector by a quaternion
    688       mittel = 0;
    689       for(i = 0; i < VECTOR_MAX; ++i)
    690         {
    691           rdtscl(ini);
    692          
    693           *qa = a->apply(*qb);
    694          
    695           rdtscl(end);
    696           mittel += (end - ini - dt);
    697         }
    698       mi = mittel / (float)VECTOR_MAX;
    699       printf(" Rot a vec by a quat: q->apply(v)\t%11.2f\n", mi);
    700      
    701      
    702      
    703       // generate rotation matrix
    704       mittel = 0;
    705       float matrix[4][4];
    706       for(i = 0; i < VECTOR_MAX; ++i)
    707         {
    708           rdtscl(ini);
    709          
    710           a->matrix(matrix);
    711          
    712           rdtscl(end);
    713           mittel += (end - ini - dt);
    714         }
    715       mi = mittel / (float)VECTOR_MAX;
    716       printf(" Generate rot matrix: q->matrix(m)\t%11.2f\n", mi);
    717     }
    718   if( type == 3 || type == -1)
    719     {
    720       /* list tests*/
    721       printf("\nList operations tests: \t\t\t\t\t%i\n", LIST_MAX);
    722       tList<char>* list = new tList<char>();
    723       char* name;
    724      
    725       printf(" Adding[1..10] elements to list, found:\n");
    726       list->add("1");
    727       list->add("2");
    728       list->add("3");
    729       list->add("4");
    730       list->add("5");
    731       list->add("6");
    732       list->add("7");
    733       list->add("8");
    734       list->add("9");
    735       list->add("10");
    736      
    737       /*give list out */
    738       tIterator<char>* iterator = list->getIterator();
    739       name = iterator->nextElement();
    740       printf("  List Elements: \t\t");
    741       while( name != NULL)
    742         {
    743           printf("%s,", name);
    744           name = iterator->nextElement();
    745         }
    746       delete iterator;
    747       printf("\n");
    748      
    749      
    750       /*removing some elements from the list*/
    751       printf(" Removing elements [2,3,6,8,10], adding [11] now found:\n");
    752       list->remove("2");
    753       list->remove("3");
    754       list->remove("6");
    755       list->remove("8");
    756       list->remove("10");
    757       list->add("11");
    758       /*give list out */
    759       iterator = list->getIterator();
    760       name = iterator->nextElement();
    761       printf("  List Elements: \t\t");
    762       while( name != NULL)
    763         {
    764           printf("%s,", name);
    765           name = iterator->nextElement();
    766         }
    767       delete iterator;
    768       printf("\n");
    769      
    770       delete list;
    771       printf("\nChecking list performance:\t\t\t\t%i\n", LIST_MAX);
    772      
    773       tList<int>* plist = new tList<int>();
    774       unsigned long mittel, ini, end;
    775       float mi;
    776       int i = 0;
    777       mittel = 0;
    778       for(i = 0; i < LIST_MAX; ++i)
    779         {
    780           rdtscl(ini);
    781          
    782           plist->add(&i);
    783          
    784           rdtscl(end);
    785           mittel += (end - ini - dt);
    786         }
    787       mi = mittel / (float)LIST_MAX;
    788       printf(" Adding reference to list:\t\t%11.2f\n", mi);
    789      
    790       mittel = 0;
    791       for(i = 0; i < LIST_MAX; ++i)
    792         {
    793           rdtscl(ini);
    794          
    795           plist->remove(&i);
    796          
    797           rdtscl(end);
    798           mittel += (end - ini - dt);
    799         }
    800       mi = mittel / (float)LIST_MAX;
    801       printf(" Removing 1st reference from list:\t%11.2f\n", mi);
    802      
    803 
    804       printf("\nList operations tests: \t\t\t\t\t%i\n", LIST_MAX);
    805       list = new tList<char>();
    806       printf(" Adding[1..10] elements to list, found:\n");
    807       list->add("1");
    808       list->add("2");
    809       list->add("3");
    810       list->add("4");
    811       list->add("5");
    812       list->add("6");
    813       list->add("7");
    814       list->add("8");
    815       list->add("9");
    816       list->add("10");
    817      
    818       /*give list out */
    819       iterator = list->getIterator();
    820       name = iterator->nextElement();
    821       printf("  List Elements: \t\t");
    822       while( name != NULL)
    823         {
    824           printf("%s,", name);
    825           name = iterator->nextElement();
    826         }
    827       delete iterator;
    828       printf("\n");
    829      
    830      
    831       int c = 0;
    832       printf(" Going trough list with nextElement(el) func: ");
    833       name = list->firstElement();
    834       while(c < 20)
    835         {
    836           printf("%s,", name);
    837           name = list->nextElement(name);
    838           c++;
    839         }
    840       printf("\n");
    841      
    842 
    843      
    844     }
    845  
    846 }
    847 
    848 #else
    849 
    850 int startBenchmarks()
    851 {
    852   PRINTF(1)("Benchmark is not implemented in this system\n");
    853 }
    854 
    855 #endif
  • orxonox/branches/heightMap/src/orxonox.h

    r3660 r4165  
    3939  Uint32 lastframe;           //!< Time of the last Frame
    4040 
     41  unsigned int argc;          //!< Count of Arguments of orxonox
     42  char** argv;                //!< Values of th Arguments of orxonox.
     43 
    4144  void getConfigFile (int argc, char** argv);
    4245 
    43   // main loop functions
    44   //  void synchronize ();
    45   //void handle_input ();
    46   //void time_slice ();
    47   //void collision ();
    48   //void display ();
    49  
    50         // subsystem initialization
     46  // subsystem initialization
    5147  int initVideo ();
    5248  int initSound ();
     
    7571};
    7672
    77 int startHelp(void);
     73int startHelp(int argc, char** argv);
    7874int startOrxonox(int argc, char** argv);
    79 int startBenchmarks(void);
    8075
    8176#endif /* _ORXONOX_H */
  • orxonox/branches/heightMap/src/story_entities/world.cc

    r4122 r4165  
    197197  cn->reset();
    198198
    199   ResourceManager::getInstance()->debug();
    200   ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);
    201   ResourceManager::getInstance()->debug();
    202 
    203199  delete WorldInterface::getInstance();
    204200
     
    209205  TextEngine::getInstance()->flush();
    210206
    211   AnimationPlayer::getInstance()->debug();
    212207  delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence.
    213208  //delete garbagecollecor
    214209  //delete animator
    215210
    216 
     211  ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);
    217212}
    218213
     
    844839  this->glmis = new GLMenuImageScreen();
    845840  this->glmis->init();
    846   glmis->setBackgroundImage("pictures/load_screen.jpg");
    847841  this->glmis->setMaximum(8);
    848842  //  this->glmis->draw();
     
    11181112     
    11191113      /* function to let all entities tick (iterate through list) */
    1120       float seconds = this->dt / 1000.0;     
    1121       this->gameTime += seconds;
     1114      this->dtS = (float)this->dt / 1000.0;     
     1115      this->gameTime += this->dtS;
    11221116      //entity = entities->enumerate();
    11231117      tIterator<WorldEntity>* iterator = this->entities->getIterator();
     
    11251119      while( entity != NULL)
    11261120        {
    1127           entity->tick (seconds);
     1121          entity->tick (this->dtS);
    11281122          entity = iterator->nextElement();
    11291123        }
     
    11331127      this->trackManager->tick(this->dt);
    11341128      this->localCamera->tick(this->dt);
    1135       this->garbageCollector->tick(seconds);
    1136 
    1137       AnimationPlayer::getInstance()->tick(seconds);
     1129      this->garbageCollector->tick(this->dtS);
     1130
     1131      AnimationPlayer::getInstance()->tick(this->dtS);
    11381132    }
    11391133  this->lastFrame = currentFrame;
     
    11501144{
    11511145  this->garbageCollector->update();
    1152   this->nullParent->update (dt);
     1146  this->nullParent->update (this->dtS);
    11531147}
    11541148
  • orxonox/branches/heightMap/src/story_entities/world.h

    r4122 r4165  
    9494  Uint32 lastFrame;                   //!< last time of frame
    9595  Uint32 dt;                          //!< time needed to calculate this frame
     96  float dtS;                          //!< The time needed for caluculations in seconds
    9697  double gameTime;                    //!< this is where the game time is saved
    9798  bool bQuitOrxonox;                  //!< quit this application
  • orxonox/branches/heightMap/src/subprojects/Makefile.in

    r4122 r4165  
    113113PACKAGE_VERSION = @PACKAGE_VERSION@
    114114PATH_SEPARATOR = @PATH_SEPARATOR@
     115PKG_CONFIG = @PKG_CONFIG@
    115116RANLIB = @RANLIB@
    116117SET_MAKE = @SET_MAKE@
     
    176177          esac; \
    177178        done; \
    178         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/subprojects/Makefile'; \
     179        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/subprojects/Makefile'; \
    179180        cd $(top_srcdir) && \
    180           $(AUTOMAKE) --gnu  src/subprojects/Makefile
     181          $(AUTOMAKE) --foreign  src/subprojects/Makefile
    181182.PRECIOUS: Makefile
    182183Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/branches/heightMap/src/subprojects/testmain/Makefile.in

    r4122 r4165  
    128128PACKAGE_VERSION = @PACKAGE_VERSION@
    129129PATH_SEPARATOR = @PATH_SEPARATOR@
     130PKG_CONFIG = @PKG_CONFIG@
    130131RANLIB = @RANLIB@
    131132SET_MAKE = @SET_MAKE@
     
    196197          esac; \
    197198        done; \
    198         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/subprojects/testmain/Makefile'; \
     199        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/subprojects/testmain/Makefile'; \
    199200        cd $(top_srcdir) && \
    200           $(AUTOMAKE) --gnu  src/subprojects/testmain/Makefile
     201          $(AUTOMAKE) --foreign  src/subprojects/testmain/Makefile
    201202.PRECIOUS: Makefile
    202203Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/branches/heightMap/src/world_entities/skybox.cc

    r4122 r4165  
    6666      PRINTF(0)("SkyBox is missing a proper 'MaterialSet'\n");
    6767    }
    68   if( this->model == NULL)
     68  if( this->skyModel == NULL)
    6969    {
    7070      PRINTF(0)("SkyBox model '%s' could not be loaded\n", string);
     
    7676{
    7777  this->setClassName("SkyBox");
     78  this->skyModel = NULL;
    7879  this->material = new Material*[6];
    79   for (int i = 0; i <6; i++)
     80  for (int i = 0; i < 6; i++)
    8081    {
    8182      this->material[i] = new Material();
     
    100101SkyBox::~SkyBox()
    101102{
    102   PRINTF(5)("Deleting the SkyBox\n");
     103  PRINTF(5)("Deleting SkyBox\n");
    103104  for (int i = 0; i < 6; i++)
    104105    delete this->material[i];
     
    179180  glTranslatef(r.x, r.y, r.z);
    180181
    181   this->model->draw();
     182  this->skyModel->draw();
    182183
    183184  glPopMatrix();
     
    192193void SkyBox::rebuild()
    193194{
    194   if (this->model)
    195     delete model;
    196   model = new Model();
    197 
    198   model->addVertex (-0.5*size, -0.5*size, 0.5*size); 
    199   model->addVertex (0.5*size, -0.5*size, 0.5*size);
    200   model->addVertex (-0.5*size, 0.5*size, 0.5*size);
    201   model->addVertex (0.5*size, 0.5*size, 0.5*size);
    202   model->addVertex (-0.5*size, 0.5*size, -0.5*size);
    203   model->addVertex (0.5*size, 0.5*size, -0.5*size);
    204   model->addVertex (-0.5*size, -0.5*size, -0.5*size);
    205   model->addVertex (0.5*size, -0.5*size, -0.5*size);
    206 
    207   model->addVertexTexture (0.0, 0.0);
    208   model->addVertexTexture (1.0, 0.0);
    209   model->addVertexTexture (1.0, 1.0);
    210   model->addVertexTexture (0.0, 1.0);
    211 
    212   model->addVertexNormal (0.0, 0.0, 1.0);
    213   model->addVertexNormal (0.0, 1.0, 0.0);
    214   model->addVertexNormal (0.0, 0.0, -1.0);
    215   model->addVertexNormal (0.0, -1.0, 0.0);
    216   model->addVertexNormal (1.0, 0.0, 0.0);
    217   model->addVertexNormal (-1.0, 0.0, 0.0);
    218 
    219   model->setMaterial(material[0]);
    220   model->addFace (4, VERTEX_TEXCOORD_NORMAL, 2,1,3, 3,2,3, 5,3,3, 4,0,3); // top
    221   model->setMaterial(material[1]);
    222   model->addFace (4, VERTEX_TEXCOORD_NORMAL, 6,3,1, 7,0,1, 1,1,1, 0,2,1); // bottom
    223   model->setMaterial(material[2]);
    224   model->addFace (4, VERTEX_TEXCOORD_NORMAL, 0,0,2, 1,1,2, 3,2,2, 2,3,2); // left
    225   model->setMaterial(material[3]);
    226   model->addFace (4, VERTEX_TEXCOORD_NORMAL, 4,2,0, 5,3,0, 7,0,0, 6,1,0); // right
    227   model->setMaterial(material[4]);
    228   model->addFace (4, VERTEX_TEXCOORD_NORMAL, 1,0,5, 7,1,5, 5,2,5, 3,3,6); // front
    229   model->setMaterial(material[5]);
    230   model->addFace (4, VERTEX_TEXCOORD_NORMAL, 6,0,4, 0,1,4, 2,2,4, 4,3,4); // back
     195  if (this->skyModel)
     196    delete skyModel;
     197  skyModel = new Model();
     198
     199  this->skyModel->addVertex (-0.5*size, -0.5*size, 0.5*size); 
     200  this->skyModel->addVertex (0.5*size, -0.5*size, 0.5*size);
     201  this->skyModel->addVertex (-0.5*size, 0.5*size, 0.5*size);
     202  this->skyModel->addVertex (0.5*size, 0.5*size, 0.5*size);
     203  this->skyModel->addVertex (-0.5*size, 0.5*size, -0.5*size);
     204  this->skyModel->addVertex (0.5*size, 0.5*size, -0.5*size);
     205  this->skyModel->addVertex (-0.5*size, -0.5*size, -0.5*size);
     206  this->skyModel->addVertex (0.5*size, -0.5*size, -0.5*size);
     207
     208  this->skyModel->addVertexTexture (0.0, 0.0);
     209  this->skyModel->addVertexTexture (1.0, 0.0);
     210  this->skyModel->addVertexTexture (1.0, 1.0);
     211  this->skyModel->addVertexTexture (0.0, 1.0);
     212
     213  this->skyModel->addVertexNormal (0.0, 0.0, 1.0);
     214  this->skyModel->addVertexNormal (0.0, 1.0, 0.0);
     215  this->skyModel->addVertexNormal (0.0, 0.0, -1.0);
     216  this->skyModel->addVertexNormal (0.0, -1.0, 0.0);
     217  this->skyModel->addVertexNormal (1.0, 0.0, 0.0);
     218  this->skyModel->addVertexNormal (-1.0, 0.0, 0.0);
     219
     220  this->skyModel->setMaterial(material[0]);
     221  this->skyModel->addFace (4, VERTEX_TEXCOORD_NORMAL, 2,1,3, 3,2,3, 5,3,3, 4,0,3); // top
     222  this->skyModel->setMaterial(material[1]);
     223  this->skyModel->addFace (4, VERTEX_TEXCOORD_NORMAL, 6,3,1, 7,0,1, 1,1,1, 0,2,1); // bottom
     224  this->skyModel->setMaterial(material[2]);
     225  this->skyModel->addFace (4, VERTEX_TEXCOORD_NORMAL, 0,0,2, 1,1,2, 3,2,2, 2,3,2); // left
     226  this->skyModel->setMaterial(material[3]);
     227  this->skyModel->addFace (4, VERTEX_TEXCOORD_NORMAL, 4,2,0, 5,3,0, 7,0,0, 6,1,0); // right
     228  this->skyModel->setMaterial(material[4]);
     229  this->skyModel->addFace (4, VERTEX_TEXCOORD_NORMAL, 1,0,5, 7,1,5, 5,2,5, 3,3,6); // front
     230  this->skyModel->setMaterial(material[5]);
     231  this->skyModel->addFace (4, VERTEX_TEXCOORD_NORMAL, 6,0,4, 0,1,4, 2,2,4, 4,3,4); // back
    231232 
    232   model->finalize();
    233 }
     233  this->skyModel->finalize();
     234}
  • orxonox/branches/heightMap/src/world_entities/skybox.h

    r4122 r4165  
    3939  void rebuild();
    4040
     41  Model* skyModel;        //!< A Model for the Sky. This must not be the same as the Model from WorldEntity, because it is not alocated through the ResourceManager.
    4142  Material **material;    //!< Materials for the SkyBox. sorted by number (0-5) top, bottom, left, right, front, back
    4243  float size;             //!< Size of the SkyBox. This should match the frustum maximum range.
  • orxonox/branches/heightMap/src/world_entities/terrain.cc

    r4090 r4165  
    109109void Terrain::init(void)
    110110{
    111    this->setClassName ("Terrain");
    112 
    113    this->objectList = 0;
     111  this->setClassName ("Terrain");
     112 
     113  this->objectList = 0;
    114114}
    115115
     
    130130  glMultMatrixf((float*)matrix);
    131131
    132   if (objectList)
    133     glCallList(objectList);
    134   else if (model)
    135     model->draw();
    136   //  this->model->draw();
     132  if (this->objectList)
     133    glCallList(this->objectList);
     134  else if (this->model)
     135    this->model->draw();
    137136  glPopMatrix();
    138137}
Note: See TracChangeset for help on using the changeset viewer.