Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 28, 2009, 7:46:37 PM (16 years ago)
Author:
rgrieder
Message:

Merged buildsystem3 containing buildsystem2 containing Adi's buildsystem branch back to the trunk.
Please update the media directory if you were not using buildsystem3 before.

Location:
code/trunk
Files:
6 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/gui/CMakeLists.txt

    r2131 r2710  
    1 SET( SRC_FILES
     1ADD_SOURCE_FILES(ORXONOX_SRC_FILES
    22  GUIManager.cc
    3   OgreCEGUIRenderer.cpp
    4   OgreCEGUIResourceProvider.cpp
    5   OgreCEGUITexture.cpp
    63)
    7 
    8 ADD_SOURCE_FILES(SRC_FILES)
  • code/trunk/src/orxonox/gui/GUIManager.cc

    r2662 r2710  
    3636#include "GUIManager.h"
    3737
     38#include <boost/filesystem.hpp>
    3839#include <OgreRenderWindow.h>
    3940#include <OgreRoot.h>
    4041#include <CEGUI.h>
    41 #include "ceguilua/CEGUILua.h"
     42#include <CEGUIDefaultLogger.h>
     43#include <ogreceguirenderer/OgreCEGUIRenderer.h>
     44#include "SpecialConfig.h" // Configures the macro below
     45#ifdef CEGUILUA_USE_INTERNAL_LIBRARY
     46#   include <ceguilua/CEGUILua.h>
     47#else
     48#   include <CEGUILua.h>
     49#endif
     50
    4251#include "util/Exception.h"
    4352#include "core/input/InputManager.h"
    4453#include "core/input/SimpleInputState.h"
    45 #include "core/tolua/tolua_bind.h"
    4654#include "core/ConsoleCommand.h"
    4755#include "core/Core.h"
    48 #include "tolua/tolua_bind.h"
    49 #include "OgreCEGUIRenderer.h"
    50 
    51 #include "lua/lua.hpp"
     56#include "ToluaBindCore.h"
     57#include "ToluaBindOrxonox.h"
     58
     59extern "C" {
     60#include <lua.h>
     61}
    5262
    5363namespace orxonox
     
    100110                lua_pushnil(luaState_);
    101111                lua_setglobal(luaState_, "Core");
    102             // TODO: deleting the script module fails an assertation.
     112            // TODO: deleting the script module fails an assertion.
    103113            // However there is not much we can do about it since it occurs too when
    104114            // we don't open Core or Orxonox. Might be a CEGUI issue.
     
    141151                this->luaState_ = this->scriptModule_->getLuaState();
    142152
     153                // Create our own logger to specify the filepath
     154                boost::filesystem::path ceguiLogFilepath(Core::getLogPath() / "cegui.log");
     155                this->ceguiLogger_ = new DefaultLogger();
     156                this->ceguiLogger_->setLogFilename(ceguiLogFilepath.file_string());
     157                // set the log level according to ours (translate by subtracting 1)
     158                this->ceguiLogger_->setLoggingLevel(
     159                    (LoggingLevel)(Core::getSoftDebugLevel(OutputHandler::LD_Logfile) - 1));
     160
    143161                // create the CEGUI system singleton
    144162                this->guiSystem_ = new System(this->guiRenderer_, this->resourceProvider_, 0, this->scriptModule_);
    145 
    146                 // set the log level according to ours (translate by subtracting 1)
    147                 Logger::getSingleton().setLoggingLevel(
    148                     (LoggingLevel)(Core::getSoftDebugLevel(OutputHandler::LD_Logfile) - 1));
    149163
    150164                // do this after 'new CEGUI::Sytem' because that creates the lua state in the first place
  • code/trunk/src/orxonox/gui/GUIManager.h

    r1887 r2710  
    4242#include "core/input/InputInterfaces.h"
    4343
    44 namespace orxonox // tolua_export
    45 { // tolua_export
     44// Forward declaration
     45namespace CEGUI { class DefaultLogger; }
     46
     47// tolua_begin
     48namespace orxonox
     49{
    4650    /**
    4751    @brief
    4852        Provides a simple interface to CEGUI with tolua methods and console commands
    4953    */
    50     class _OrxonoxExport GUIManager : public KeyHandler, public MouseHandler
    51     /*
    52     class GUIManager { // tolua_export
    53     */
     54    class _OrxonoxExport GUIManager
     55// tolua_end
     56        : public KeyHandler, public MouseHandler
     57// tolua_begin
    5458    {
     59// tolua_end
    5560    public:
    5661        enum State
     
    117122        CEGUI::ResourceProvider*  resourceProvider_;
    118123        CEGUI::LuaScriptModule*   scriptModule_;
     124        CEGUI::DefaultLogger*     ceguiLogger_;
    119125        CEGUI::System*            guiSystem_;
    120126        CEGUI::Imageset*          backgroundImage_;
Note: See TracChangeset for help on using the changeset viewer.