Noobular Variable Question regarding GetMesh

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Ant

Noobular Variable Question regarding GetMesh

Post by Ant »

How would I make getmesh() load a variable, like I know getmesh("blah.blh"), but how would I do like getmesh(blah)?
Boogle
Posts: 162
Joined: Fri Nov 21, 2003 3:16 pm
Location: Toronto, Canada

Post by Boogle »

char* bob = "./meshes/mymesh.obj";

smgr->getMesh(bob);
rt
Posts: 150
Joined: Sun Nov 30, 2003 6:54 am
Location: canada
Contact:

Post by rt »

Boogle wrote:char* bob = "./meshes/mymesh.obj";

smgr->getMesh(bob);
that could cause scope problems. how about:

Code: Select all

char filename[80];
strcpy(filename,"meshes\\mymesh.m3s");
smgr->getMesh(filename);
Post Reply