View Full Version : glEnable(GL_ALPHA_TEST | GL_DEPTH_TEST)
07-07-2010, 02:54 AM
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...
07-07-2010, 05:05 AM
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:
#define GL_ALPHA_TEST 0x0BC0
#define GL_DEPTH_TEST 0x0B71
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.