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

Thread: glEnable(GL_ALPHA_TEST | GL_DEPTH_TEST)

  1. #1
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    2,833

    glEnable(GL_ALPHA_TEST | GL_DEPTH_TEST)

    is it possible to combine GLenum's passed into glEnable/glDisable using bitwise operators?
    Been looking through the spec and can't see anything regarding this...

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2009
    Posts
    600

    Re: glEnable(GL_ALPHA_TEST | GL_DEPTH_TEST)

    AFAIK, the only time where | can be used to say multiple things is if the GL enumeration has BIT, so for glEnable stuff no go. Looking at the values of the enumerations in gl.h gives the beans too:

    Code :
    #define GL_ALPHA_TEST                     0x0BC0
    #define GL_DEPTH_TEST                     0x0B71

Posting Permissions

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