create 2 objects?
I can load and render an object from an x file, but i don''t know load and render another x file. Please, can you copy me a little example. Thanks.
Make 2 different meshes, of course.
LoadMesh(mesh1);
LoadMesh(mesh2);
...
DrawMesh(mesh1);
DrawMesh(mesh2);
LoadMesh(mesh1);
LoadMesh(mesh2);
...
DrawMesh(mesh1);
DrawMesh(mesh2);
Not sure what you mean. If you can load and render one, what stops you from loading another?
Is it a different type(meaning has different information), or do you want a secondary copy of the same X file or do you want to load multiple X Files into memory at one time and display them... etc etc
Need a little more info on the problem.
Is it a different type(meaning has different information), or do you want a secondary copy of the same X file or do you want to load multiple X Files into memory at one time and display them... etc etc
Need a little more info on the problem.
Yeah then do what etnu said.
Best case scenario, you create an XFile class. Then you have a collection (array) of your XFile class. Then you render them as you need them.
Best case scenario, you create an XFile class. Then you have a collection (array) of your XFile class. Then you render them as you need them.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement