Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 16, 2010, 8:13:36 PM (15 years ago)
Author:
rgrieder
Message:

Background wasn't transparent upon start up —> black screen when starting with "—standalone"

Location:
code/trunk/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/GUIManager.cc

    r6746 r6749  
    127127        resourceProvider_->setDefaultResourceGroup("GUI");
    128128
    129         // setup scripting
     129        // Setup scripting
    130130        luaState_.reset(new LuaState());
    131131        rootFileInfo_ = Resource::getInfo("InitialiseGUI.lua");
     
    142142        this->ceguiLogger_ = ceguiLogger.release();
    143143
    144         // create the CEGUI system singleton
     144        // Create the CEGUI system singleton
    145145        guiSystem_.reset(new System(guiRenderer_.get(), resourceProvider_, 0, scriptModule_.get()));
    146146
     
    160160        this->rootWindow_->addChildWindow(this->hudRootWindow_);
    161161        this->rootWindow_->addChildWindow(this->menuRootWindow_);
     162
     163        // No background to start with (sets the alpha value to 0)
     164        this->setBackgroundImage("");
    162165
    163166        // Set up the sheet manager in the Lua framework
  • code/trunk/src/libraries/core/GUIManager.h

    r6746 r6749  
    107107
    108108        void executeCode(const std::string& str);
    109 
    110109        template <typename FunctionType>
    111110        bool protectedCall(FunctionType function);
     
    120119        void mouseMoved    (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize);
    121120        void mouseScrolled (int abs, int rel);
     121
    122122        scoped_ptr<CEGUI::OgreCEGUIRenderer> guiRenderer_;      //!< CEGUI's interface to the Ogre Engine
    123123        scoped_ptr<LuaState>                 luaState_;         //!< LuaState, access point to the Lua engine
Note: See TracChangeset for help on using the changeset viewer.