Inertia's picture

Enum: Shadow & Shadow Ambient (Version14) [done!]

http://opengl.org/registry/specs/ARB/shadow.txt
http://opengl.org/registry/specs/ARB/shadow_ambient.txt

No EnableCap affected.

Shadow:

            // add to BOTH Enums: TextureParameterName AND GetTextureParameter
            TextureCompareMode = ( (int) 0x884c ), // Legal values: NONE, COMPARE_R_TO_TEXTURE
            TextureCompareFunc = ( (int) 0x884d ), // Legal values: LEQUAL, GEQUAL
 
 
        // this token is accepted as parameter, if TextureParameterName == TextureCompareMode
        public enum TextureCompareMode : int
        {
            CompareRToTexture = ( (int) 0x884e ),
        }

Shadow Ambient:
Just a single new parameter for 2 enums:

            // add to BOTH Enums: TextureParameterName AND GetTextureParameter
            TextureCompareFailValue = (int) All.TextureCompareFailValueArb,

Quote about duplicate: "TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF (same as SHADOW_AMBIENT_SGIX)"