Inertia's picture

Enum Remains [done!]

This is a list of the last tokens i couldn't properly identify, and one Ati Extension where i'm not certain if it should be included at all.
Often it's mentioned that it has been added "somewhere", but theres no entry at "somewhere".

public enum Version12
        {
            MaxElementsVertices = ( (int) 0x80e8 ), //??
            MaxElementsIndices = ( (int) 0x80e9 ), //??
}
 
 public enum Version20
        {
            // partially: http://www.opengl.org/registry/specs/ATI/separate_stencil.txt
            StencilBackFunc = ( (int) 0x8800 ),
            StencilBackFail = ( (int) 0x8801 ),
            StencilBackPassDepthFail = ( (int) 0x8802 ),
            StencilBackPassDepthPass = ( (int) 0x8803 ),
            StencilBackRef = ( (int) 0x8ca3 ),
            StencilBackValueMask = ( (int) 0x8ca4 ),
            StencilBackWritemask = ( (int) 0x8ca5 ),
 
            AttachedShaders = ( (int) 0x8b85 ), // should both belong to ARB_shader_object, not listed?
            CurrentProgram = ( (int) 0x8b8d ), // CURRENT_PROGRAM				= 0x8B8D    # ARB_shader_objects (added for 2.0)
 
            PointSpriteCoordOrigin = ( (int) 0x8ca0 ),
            LowerLeft = ( (int) 0x8ca1 ),
            UpperLeft = ( (int) 0x8ca2 ),            /*
POINT_SPRITE_COORD_ORIGIN	= 0x8CA0    # ARB_point_sprite (added for 2.0)
LOWER_LEFT					= 0x8CA1    # ARB_point_sprite (added for 2.0)
UPPER_LEFT					= 0x8CA2    # ARB_point_sprite (added for 2.0)
            */
        }
 
        public enum Version21
        {
            CurrentRasterSecondaryColor = ( (int) 0x845f ), // related to GL.DrawPixels query (somehow)
        }

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture
public enum Version12
{
    MaxElementsVertices = ( (int) 0x80e8 ), //??
    MaxElementsIndices = ( (int) 0x80e9 ), //??
}

These are GetPName tokens (http://www.opengl.org/sdk/docs/man/xhtml/glGet.xml)

the Fiddler's picture
public enum Version20
{
           // partially: http://www.opengl.org/registry/specs/ATI/separate_stencil.txt
           StencilBackFunc = ( (int) 0x8800 ),
           StencilBackFail = ( (int) 0x8801 ),
           StencilBackPassDepthFail = ( (int) 0x8802 ),
           StencilBackPassDepthPass = ( (int) 0x8803 ),
           StencilBackRef = ( (int) 0x8ca3 ),
           StencilBackValueMask = ( (int) 0x8ca4 ),
           StencilBackWritemask = ( (int) 0x8ca5 )
}

GetPName tokens, too.

PointSpriteCoordOrigin = ( (int) 0x8ca0 ) // 
LowerLeft = ( (int) 0x8ca1 ),
UpperLeft = ( (int) 0x8ca2 ),

New PointParameter tokens (http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml). Added the first to PointParameterName and wrote a helper overload for the last two (otherwise you'd have to cast to int to use them).

            AttachedShaders = ( (int) 0x8b85 ), // should both belong to ARB_shader_object, not listed?
            CurrentProgram = ( (int) 0x8b8d ), // CURRENT_PROGRAM                               = 0x8B8D    # ARB_shader_objects (added for 2.0)

GetProgram tokens (http://www.opengl.org/sdk/docs/man/xhtml/glGetProgram.xml)

And this concludes Version20 - only Version21 left now!

the Fiddler's picture
        public enum Version21
        {
            CurrentRasterSecondaryColor = ( (int) 0x845f ), // related to GL.DrawPixels query (somehow)
        }

Another GetPName token (http://www.opengl.org/sdk/docs/man/xhtml/glGet.xml). Version21 is now finished!

Just the ARB shaders remain now.

Inertia's picture

I have to make up a new word to comment this, because no existing is sufficient.

Awesomeness!

This is the first time that google with parameter site:opengl.org failed me, guess they don't index .xml documents.