I've looked all over these forums but i cannot find a clear answer...
I'm migrating my project from HGE to IRRLICHT, however what i cannot seem to figure out currently is how to use the strings correctly
this is what i used for HGE and string
Code: Select all
string SceneManager::XMLString(TiXmlElement *XMLNode, const string &node, string defaultValue)
{
const char* tmp;
if(XMLNode->FirstChildElement(node.c_str())) {
tmp = XMLNode->FirstChildElement(node.c_str())->GetText();
if (tmp == NULL) return defaultValue; else return string(tmp);
} else {
return defaultValue;
}
}
a. a texture name
b. an object name
c. an object command
d. text (in unicode)
but if i use the stringw (which seems unicode-wise most interesting for the text). Will i be able to pass that string to irrlicht's texture loader ?
Also i notice that sometimes L"sometext" is used... What does the L stand for?
greetings
el Fuz