Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2008, 2:51:02 PM (16 years ago)
Author:
rgrieder
Message:
  • Added debug overlay that is constantly shown in graphics mode. F2 toggles its visibility, but only in level mode for now.
  • Added ConstructionCallback to get informed about the construction of any object of a specific type. Use RegisterConstructionCallback(ThisClassName, TargetClassName, FunctionName); to register such a callback.
File:
1 edited

Legend:

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

    r2075 r2084  
    7676        this->overlay_->add2D(this->background_);
    7777
    78         // We'll have to get the aspect ratio manually for the first time. Afterwards windowResized() gets
    79         // called automatically by GSGraphics.
    80         this->windowAspectRatio_ = Ogre::OverlayManager::getSingleton().getViewportAspectRatio();
     78        // We'll have to set the aspect ratio to a default value first.
     79        // GSGraphics gets informed about our construction here and can update us in the next tick.
     80        this->windowAspectRatio_ = 1.0;
    8181        this->sizeCorrectionChanged();
    8282
Note: See TracChangeset for help on using the changeset viewer.