Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: Opengl Functions

  1. #1
    Guest

    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

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2001
    Location
    Eastern USA
    Posts
    220

    Re: Opengl Functions

    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?

  3. #3
    Guest

    Re: Opengl Functions

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

  4. #4
    Guest

    Re: Opengl Functions

    post the code you have so far?

  5. #5
    Junior Member Regular Contributor
    Join Date
    Sep 2001
    Location
    Eastern USA
    Posts
    220

    Re: Opengl Functions

    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.

  6. #6
    Guest

    Re: Opengl Functions

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

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •