Inertia's picture

EXT_texture_integer

Project:The Open Toolkit library
Version:0.9.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

http://www.opengl.org/registry/specs/EXT/texture_integer.txt

Functions:

C:
void ClearColorIiEXT ( int r, int g, int b, int a );
void ClearColorIuiEXT ( uint r, uint g, uint b, uint a );

SVN:
[System.CLSCompliant(false)]
public static
void ClearColorI(UInt32 red, UInt32 green, UInt32 blue, UInt32 alpha)
{
Delegates.glClearColorIuiEXT((UInt32)red, (UInt32)green, (UInt32)blue, (UInt32)alpha);
}

public static
void ClearColorI(Int32 red, Int32 green, Int32 blue, Int32 alpha)
{
Delegates.glClearColorIuiEXT((UInt32)red, (UInt32)green, (UInt32)blue, (UInt32)alpha);
}

This is best corrected in the generator, it tries to automatically provide a compliant overload but it could - instead of casting - just use ClearColorIiEXT.

Although the functions use the correct enums, the same issue applies to:

void TexParameterIivEXT( enum target, enum pname, int *params );
void TexParameterIuivEXT( enum target, enum pname, uint *params );
void GetTexParameterIivEXT ( enum target, enum pname, int *params);
void GetTexParameterIuivEXT ( enum target, enum pname, uint *params);

Tokens:

Add to OpenTK.Graphics.GetPName

RGBA_INTEGER_MODE_EXT 0x8D9E

Add to OpenTK.Graphics.PixelInternalFormat

RGBA32UI_EXT 0x8D70
RGB32UI_EXT 0x8D71
ALPHA32UI_EXT 0x8D72
INTENSITY32UI_EXT 0x8D73
LUMINANCE32UI_EXT 0x8D74
LUMINANCE_ALPHA32UI_EXT 0x8D75

RGBA16UI_EXT 0x8D76
RGB16UI_EXT 0x8D77
ALPHA16UI_EXT 0x8D78
INTENSITY16UI_EXT 0x8D79
LUMINANCE16UI_EXT 0x8D7A
LUMINANCE_ALPHA16UI_EXT 0x8D7B

RGBA8UI_EXT 0x8D7C
RGB8UI_EXT 0x8D7D
ALPHA8UI_EXT 0x8D7E
INTENSITY8UI_EXT 0x8D7F
LUMINANCE8UI_EXT 0x8D80
LUMINANCE_ALPHA8UI_EXT 0x8D81

RGBA32I_EXT 0x8D82
RGB32I_EXT 0x8D83
ALPHA32I_EXT 0x8D84
INTENSITY32I_EXT 0x8D85
LUMINANCE32I_EXT 0x8D86
LUMINANCE_ALPHA32I_EXT 0x8D87

RGBA16I_EXT 0x8D88
RGB16I_EXT 0x8D89
ALPHA16I_EXT 0x8D8A
INTENSITY16I_EXT 0x8D8B
LUMINANCE16I_EXT 0x8D8C
LUMINANCE_ALPHA16I_EXT 0x8D8D

RGBA8I_EXT 0x8D8E
RGB8I_EXT 0x8D8F
ALPHA8I_EXT 0x8D90
INTENSITY8I_EXT 0x8D91
LUMINANCE8I_EXT 0x8D92
LUMINANCE_ALPHA8I_EXT 0x8D93

Add to OpenTK.Graphics.PixelFormat

RED_INTEGER_EXT 0x8D94
GREEN_INTEGER_EXT 0x8D95
BLUE_INTEGER_EXT 0x8D96
ALPHA_INTEGER_EXT 0x8D97
RGB_INTEGER_EXT 0x8D98
RGBA_INTEGER_EXT 0x8D99
BGR_INTEGER_EXT 0x8D9A
BGRA_INTEGER_EXT 0x8D9B
LUMINANCE_INTEGER_EXT 0x8D9C
LUMINANCE_ALPHA_INTEGER_EXT 0x8D9D


Comments

Comment viewing options

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

#1

Status:open» fixed

Only the following tokens have been promoted to GL3.0 (pages 180-185 of the specs (pdf)). Committed to gl3 branch.

PixelInternalFormat enum:
	RGBA32UI					= 0x8D70
	RGB32UI						= 0x8D71
	RGBA16UI					= 0x8D76
	RGB16UI						= 0x8D77
	RGBA8UI						= 0x8D7C
	RGB8UI						= 0x8D7D
	RGBA32I						= 0x8D82
	RGB32I						= 0x8D83
	RGBA16I						= 0x8D88
	RGB16I						= 0x8D89
	RGBA8I						= 0x8D8E
	RGB8I							= 0x8D8F
 
PixelFormat enum:
	RED_INTEGER				= 0x8D94
	GREEN_INTEGER		= 0x8D95
	BLUE_INTEGER			= 0x8D96
	ALPHA_INTEGER		= 0x8D97
	RGB_INTEGER				= 0x8D98
	RGBA_INTEGER			= 0x8D99
	BGR_INTEGER				= 0x8D9A
	BGRA_INTEGER			= 0x8D9B
the Fiddler's picture

#2

Status:fixed» closed

Closing bugs issues in 0.9.4.