Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 27, 2008, 10:56:51 PM (16 years ago)
Author:
rgrieder
Message:
  • Added support for dedicated server. Could not network test it yet, client still segfaults me.
  • Also kicked GraphicsEngine::levelSceneManager_, there are only the statistic methods left.
  • GSDedicated also derives from GSLevel, but GSLevel is not anymore a real GameState.
  • CameraHandler and LevelManager get created in GSLevel now.
Location:
code/branches/objecthierarchy/src/orxonox/overlays
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/overlays/OrxonoxOverlay.cc

    r2019 r2023  
    4444#include "core/XMLPort.h"
    4545#include "core/ConsoleCommand.h"
    46 #include "GraphicsEngine.h"
    4746
    4847namespace orxonox
     
    115114
    116115            // We'll have to get the aspect ratio manually for the first time. Afterwards windowResized() gets
    117             // called automatically by the GraphicsEngine.
    118             this->windowResized(GraphicsEngine::getInstance().getWindowWidth(),
    119                 GraphicsEngine::getInstance().getWindowHeight());
     116            // called automatically by GSGraphics.
     117            //this->windowResized(GraphicsEngine::getInstance().getWindowWidth(),
     118            //    GraphicsEngine::getInstance().getWindowHeight());
     119            this->windowAspectRatio_ = Ogre::OverlayManager::getSingleton().getViewportAspectRatio();
     120            this->sizeCorrectionChanged();
    120121
    121122            this->changedVisibility();
  • code/branches/objecthierarchy/src/orxonox/overlays/console/InGameConsole.cc

    r1953 r2023  
    4848#include "core/input/SimpleInputState.h"
    4949#include "core/input/InputBuffer.h"
    50 #include "GraphicsEngine.h"
    5150
    5251namespace orxonox
     
    170169        @brief Initializes the InGameConsole.
    171170    */
    172     void InGameConsole::initialise()
     171    void InGameConsole::initialise(int windowWidth, int windowHeight)
    173172    {
    174173        // create the corresponding input state
     
    246245        this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_);
    247246
    248         this->windowResized(GraphicsEngine::getInstance().getWindowWidth(), GraphicsEngine::getInstance().getWindowHeight());
     247        this->windowResized(windowWidth, windowHeight);
    249248
    250249        // move overlay "above" the top edge of the screen
  • code/branches/objecthierarchy/src/orxonox/overlays/console/InGameConsole.h

    r1953 r2023  
    4949        ~InGameConsole();
    5050
    51         void initialise();
     51        void initialise(int windowWidth, int windowHeight);
    5252        void destroy();
    5353        void setConfigValues();
  • code/branches/objecthierarchy/src/orxonox/overlays/hud/ChatOverlay.cc

    r2019 r2023  
    3838#include "network/ClientInformation.h"
    3939
    40 #include "GraphicsEngine.h"
    4140#include "LevelManager.h"
    4241#include "objects/infos/PlayerInfo.h"
Note: See TracChangeset for help on using the changeset viewer.