Opengl Functions

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

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?

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++

post the code you have so far?

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.

Never mind, it turns out that i wasn’t declaring the function at the beggining of the program

Thanks