I know, this is a stupid question, but I've been sitting now on this (ridiculously small) problem and don't know the answer...
Here is what i got:
Code: Select all
struct FireData
{
//stuff
const c8* filename;
}
//in the main function:
{
FireData fire = new FireData();
//reading a xml-file
{
if (stringw("fire20") == mapXml->getNodeName())
{
fire->file = mapXml->getAttributeValue("file");
}
}
//Loading a fireemitter
//Loading the texture for the emitter:
fire->node->setMaterialTexture(0, driver->getTexture(filename));
//do the rest
}
I think I know how to solve the problem: by simply using a strcpy-like funktion, which copy's from const char* to const char*
Is there a function or a way to do that?
TiA
Lo_Ord