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
    Senior Member Regular Contributor
    Join Date
    Sep 2001
    Location
    Eastern USA
    Posts
    218

    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
    Senior Member Regular Contributor
    Join Date
    Sep 2001
    Location
    Eastern USA
    Posts
    218

    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

Similar Threads

  1. Replies: 9
    Last Post: 10-18-2014, 02:00 PM
  2. Built-in Functions: Work-Item Functions
    By sean.settle in forum OpenCL
    Replies: 7
    Last Post: 11-17-2011, 07:39 AM
  3. OpenGL 1.X functions in gl3.h?
    By Schnulla in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 07-01-2010, 05:23 PM
  4. How do I use opengl EXT functions?
    By analogic in forum OpenGL: Linux
    Replies: 1
    Last Post: 07-23-2004, 10:46 AM
  5. opengl ARB functions
    By mdog1234 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-18-2003, 06:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean