create 2 objects?

Started by
3 comments, last by javincin 19 years, 10 months ago
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.
Advertisement
Make 2 different meshes, of course.

LoadMesh(mesh1);
LoadMesh(mesh2);

...

DrawMesh(mesh1);
DrawMesh(mesh2);

---------------------------Hello, and Welcome to some arbitrary temporal location in the space-time continuum.

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.
I want load multiple X Files into memory at one time and display them.
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.

This topic is closed to new replies.

Advertisement