Results 1 to 2 of 2

Thread: glGet()

  1. #1
    Member Contributor
    Join Date
    Apr 2000
    Posts
    62

    glGet()

    Can someone help me understand what values are returned from this function.

    glGet(GL_POLYGON_MODE, &?);
    More specifically, what TYPE of data is this returning? From the help files its a pointer, what type of pointer?
    Sean E. Dolan

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: glGet()

    It depends upon which flavor of glGet you are using, glGetFloatv(...) or glGetIntegerv(...) and so on.

    For GL_POLYGON_MODE I'd use glGetIntegerv(...). For GL_POLYGON_MODE two values are returned, the polygon orientation that applies to the mode, and the mode. See glPolygonMode to see what those values are.

    [This message has been edited by DFrey (edited 06-27-2000).]

Similar Threads

  1. glGet Alternative?
    By Rhawk187 in forum OpenGL: Advanced Coding
    Replies: 17
    Last Post: 05-21-2008, 03:22 PM
  2. glGet (again)
    By felix82 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-21-2006, 08:10 PM
  3. glGet
    By felix82 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-21-2006, 05:13 PM
  4. glGet with GL_MODELVIEW_MATRIX won't work
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-30-2002, 03:51 AM
  5. strange GL Error (VPs and glGet)
    By Diapolo in forum OpenGL: Advanced Coding
    Replies: 9
    Last Post: 09-27-2002, 09:37 AM

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