Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2009, 12:44:49 AM (15 years ago)
Author:
rgrieder
Message:

Stripped sandbox further down to get a light version that excludes almost all core features.
Also, the Ogre dependency has been removed and a little ogremath library been added.

Location:
sandbox_light/src/orxonox
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox_light/src/orxonox/CMakeLists.txt

    r5782 r5789  
    2626SET_SOURCE_FILES(ORXONOX_SRC_FILES
    2727  Main.cc
    28   GSRoot.cc
    2928)
    3029
    3130ORXONOX_ADD_LIBRARY(orxonox
    3231  FIND_HEADER_FILES
     32  TOLUA_FILES
     33    Main.h
    3334  DEFINE_SYMBOL
    3435    "ORXONOX_SHARED_BUILD"
  • sandbox_light/src/orxonox/Main.cc

    r5782 r5789  
    3535
    3636#include "OrxonoxPrereqs.h"
    37 #include "SpecialConfig.h"
    3837
    39 #include "util/Exception.h"
    4038#include "core/CommandLine.h"
    41 #include "core/Game.h"
     39#include "core/Core.h"
     40#include "core/Clock.h"
    4241#include "core/LuaState.h"
     42#include "ToluaBindOrxonox.h"
    4343#include "Main.h"
     44
     45DeclareToluaInterface(Orxonox);
    4446
    4547namespace orxonox
    4648{
     49    void sandbox()
     50    {
     51    }
     52
    4753    /**
    4854    @brief
     
    5157    int main(const std::string& strCmdLine)
    5258    {
    53         Game* game = new Game(strCmdLine);
     59        // Create the Core
     60        Core* core = new Core(strCmdLine);
     61        // Set up a basic clock to keep time
     62        Clock* clock = new Clock();
    5463
    55         game->setStateHierarchy(
    56         "root"
    57         );
     64        sandbox();
    5865
    59         game->requestState("root");
    60 
    61         game->run();
    62         delete game;
    63 
     66        delete clock;
     67        delete core;
    6468        return 0;
    6569    }
Note: See TracChangeset for help on using the changeset viewer.