PDA

View Full Version : Opengl Functions



07-03-2005, 06:10 PM
I just have a quick question, how do i make opengl drawing commands work in functions? All my attempts failed.

I already know about display lists, but i need to show my object at multiple places at once, and i cant doo that with display lists.

Thanks

Omaha
07-03-2005, 06:38 PM
Yes you can, just perform your transformation before you call your display list.

As for OpenGL calls not working in "other functions" are these functions operating in the same thread in which your rendering context is current?

07-03-2005, 06:46 PM
What do you mean by


are these functions operating in the same thread in which your rendering context is current Sorry, I'm new to opengl, and pretty new to C++

07-03-2005, 09:12 PM
post the code you have so far?

Omaha
07-03-2005, 10:22 PM
I'll take that as a single threaded application.

Are you using GLUT?

Please explain more by what you mean about OpenGL drawing commands not working in functions.

07-05-2005, 08:37 AM
Never mind, it turns out that i wasn't declaring the function at the beggining of the program

Thanks