Hi all, I have been working on an inventory menu system for some engine. I would like to draw every objects into the engine scene but first I have to write a code for calling a function called World_FindModelByID because that function can draw all objects in game.
My problem is I don't know how to call that function. Every objects in this engine have various ID's values for their correct drawing. I.E: There are every objects from Tomb Raider 3 game on this side: http://imageshack.us/photo/my-images/833/vr9k.png/
Gui_RenderRotatingMenu(); /// it is my function.
void Gui_RenderRotatingMenu() /// it is my function.
glPushMatrix(); // save current coordinate system
glTranslatef(0.0, 0.0, 1024.0); // some distance to the screen
glRotatef(30.0, 1.0, 0.0, 0.0); // rotate around 0X axis
// here put render code
glPopMatrix(); //restore coordinate system