About Store Forum Documentation Contact



Post Reply 
Basic question about Str and Mesh loading
Author Message
Aniketos Offline
Member

Post: #1
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
Visit this user's website Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #2
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
Find all posts by this user Quote this message in a reply
Aniketos Offline
Member

Post: #3
RE: Basic question about Str and Mesh loading
Thx will try it out smile
07-07-2011 10:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply