I am modifing DotSceneLoader.cpp to load enviroment color, i am doing:
Code: Select all
[code]if (auto pElement = XMLNode.child("colourBackground"))
{
mBackgroundColour = parseColour(pElement);
mSceneMgr->setOption("background-color", new ColourValue(mBackgroundColour));
}[/code]then in the application, when i capture the option background-color:
Code: Select all
scnMgr->hasOption("background-color");is returning false.
in my .scene i have:
Code: Select all
<scene formatVersion="1.1">
<environment>
<colourAmbient r="1.0" g="0.1" b="0.1" />
<colourBackground r="0.2" g="0.2" b="0.8" />
</environment>why the hasOptions seems to dont remember the background-color?
i would like to call
Code: Select all
DotSceneLoader.getBackgroundColour()when i do
Code: Select all
scnMgr->getRootSceneNode()->loadChildren("myscene.scene");but how do i get the DotSceneLoader Object when i call loadChildren?