Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi working friends, I'm using the irr XML parser built on the 1.3 version of the engine. I have multiple files that contain the position, resolution, size and booleans needed for an specific scene. My xml file looks like: <?xml version="1.0"?> The trouble comes when reading the ScreenResolution attribute. I have built functions to that work, but recently I saw the io::IAttribute class with lots of getAttributeValueAsXXX. Does the irrXML parser include the posibility of read that kind of format as a irr variable (i.e.core::position2d<s32> ,...) using io::IAttribute? Here is my code (the code is inside a while loop):
The applicaction crash when axecutoing the addPosition2d(...) function, is the addPosition2d usage correct?. Are there any other function to get irr values directly with the irrXML parser? :) |
||||
|
[justify]case io::EXN_ELEMENT: { if(core::stringw("ScreenResolution") == confApp->getNodeName()) { core::stringc cadena = confApp->getAttributeValue("res");[/justify] [size=18]And where did you declare your [color=red]tempScreenRes[/color]?[/size] |
|