Results 1 to 2 of 2

Thread: help! to obtain current viewport, GL_VIEWPORT not recognized

  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    1

    help! to obtain current viewport, GL_VIEWPORT not recognized

    Hi,

    I have an interface where I'm scrolling across a bunch of squares. When a user clicks a button, I need to draw a selection box around the central square.

    For this, I need the current screen coordinates. In order to get that I try using the command,

    GLint viewport[4];
    glGetIntegerv(GL_VIEWPORT, viewport);

    However, on compiling it says GL_VIEWPORT not recognized. Any help would be appreciated...

  2. #2
    Junior Member
    Join Date
    Mar 2005
    Location
    UK
    Posts
    24
    Compare the "asscoiated gets" section of this:
    http://www.khronos.org/opengles/docu...lViewport.html

    to this:
    http://www.opengl.org/documentation/.../viewport.html

    As you can see, OpenGL ES does not support querying the current viewport. If your app has set a viewport though it can remember it for later use, you don't need to query?

Similar Threads

  1. Replies: 1
    Last Post: 12-28-2012, 03:26 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
  •