Inertia's picture

Enum: Depth Texture (Version14) [not done!]

http://opengl.org/registry/specs/ARB/depth_texture.txt

No EnableCap affected.

            // add to Enum PixelInternalFormat
            DepthComponent = (int) All.DepthComponent, // was missing
            DepthComponent16 = ( (int) 0x81a5 ),
            DepthComponent24 = ( (int) 0x81a6 ),
            DepthComponent32 = ( (int) 0x81a7 ),
 
            // Note: PixelFormat enum already contains DepthComponent which is correct
 
            // add to Enum GetTextureParameter
            TextureDepthSize = ( (int) 0x884a ),
 
            // add to BOTH Enums: GetTextureParameter AND TextureParameterName
            DepthTextureMode = ( (int) 0x884b ), // Legal values: LUMINANCE, INTENSITY, ALPHA
 

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Inertia's picture

This is related to ARB_texture_rg cleanup http://www.opentk.com/node/594

DepthTextureMode = ( (int) 0x884b ), // Legal values: LUMINANCE, INTENSITY, ALPHA

Create new enum named OpenTK.Graphics.DepthTextureMode
{
Luminance,
Intensity,
Alpha,
RED 0x1903 // from ARB_texture_rg
}

It is not supposed to be forced to use in any function, the idea is to allow:

GL.TexParameter( TextureTarget.Texture2D, TextureParameterName.DepthTextureMode, (int)DepthTextureMode.Red );