Is there any way to link an opengl file (like OG_Cube.c) to the Earthball.c file? I would like to have the cube from OG_Cube.c to show up somewhere inside the game environment of the Earthball.c demo (like have the cube sitting somewhere on the terrain). I don't need it to be interactive with the ball or subjected to physics, I just need the cube to be statically displayed somewhere in the earthball world. I am not sure how to reference the external file or where to place it in the earthball.c code (or if it will work at all).
The reason is that I have very complex models that are created using vectors and I can easily draw them using GL_Triangles. But I cannot create them in MED and I would rather not convert them into ASCII model files.
As an alternative (if I cannot link to an external file written in openGL) I wouldn't mind coding the GL_Triangles somewhere within the earthball.c file, but I have no idea where it should be placed.