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 3 of 3

Thread: How do you query which is the active texture unit

  1. #1
    Junior Member Newbie
    Join Date
    May 2009
    Location
    Hungary
    Posts
    4

    How do you query which is the active texture unit

    ... in multitexturing?
    That is the question Thanks!

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    748

    Re: How do you query which is the active texture unit

    you use glGet with GL_ACTIVE_TEXTURE as the first parameter
    http://www.opengl.org/sdk/docs/man/xhtml/glGet.xml

    but i would think it's faster just to tell it which one should be active, or just keep track of it yourself using a simple variable.

  3. #3
    Junior Member Newbie
    Join Date
    May 2009
    Location
    Hungary
    Posts
    4

    Re: How do you query which is the active texture unit

    Thanks!
    I realized after 2 hours of debugging that I don't need to query it after all, but I can't remove the topic :P
    Thanks anyway!

Posting Permissions

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