i am trying to get this function to work on my windows machine i have other things that run and i am not sure what the deal is my display function looks like this
The problem can be anywhere in the code. Some not so uncommon problems is:
[ul][li] Forgetting to setup a viewpoint and a modelview matrix, ending up placing the entire model outside the view frustum.[] Forgetting to load the identity matrix before setting new viewpoint[] Using more than just a glTranslatef to place the object, and end up using them wrong, so the object is placed outside the frustum.[/ul][/li]
If this isn’t the problem, post the code which contains OpenGL related code (i.e. no input handling code and so on), and let us have a look.
I havent been programming long, but it might be a problem with you calling glFlush() (for single buffering) then glSwapBuffers() (for double buffering). I think (and it makes sense) for you to pick one or the other.
glFinish() shouldn’t be the problem. glFinish() just waits for OpenGL to complete all commands passed to the pipeline. When it returns, you are sure that all commands that has been passed to the pipeline, is done. This command is only usefill in networked environements (where the command processor and the renderer is on different computers). This command doesn’t has anything to do with singlebuffered rendering. It’s working in the same way in doublebuffered rendering.