Aniketos
Member
|
Basic question about Str and Mesh loading
I have 2 questions.
1)Normally you load mesh like this.
mesh = Meshes("folder1/folder2/name.mesh");
but I want to load it like this:
Str name = "blabla";
mesh = Meshes("folder1/" + name + "/" + name +".mesh");
I can't seem to figure out how you can add strings together with essenthel...
2)How would I go about testing if I can load a file lets say a mesh and if it fails detect that and do something.
Basicly I want to create a method which will in case it can't load a mesh load a default mesh etc.
|
|
07-07-2011 09:43 PM |
|
Driklyn
Member
|
RE: Basic question about Str and Mesh loading
1) S + "folder1/" + name + ...
2) Meshes.ptrFind or Meshes.ptrGet, I believe. If mesh is NULL, then it failed to load.
|
|
07-07-2011 10:35 PM |
|