Source: OpenGL 1.2.1 spec.pdf
// add to Enum: GetPName MaxTextureUnits = ( (int) 0x84e2 ), ClientActiveTexture = ( (int) 0x84e1 ), ActiveTexture = ( (int) 0x84e0 ),
These are the last tokens from Version13, the enum is now empty.
Proofreading pays off:
Source: http://wiki.delphigl.com/index.php/glActiveTexture
Affected Functions:
old: GL.ActiveTexture( Version13 texture ); new: GL.ActiveTexture( ActiveTextureTarget texture );
old: GL.ClientActiveTexture( Version13 texture ); new: GL.ClientActiveTexture( ActiveTextureTarget texture );
The new Enum is:
public enum ActiveTextureTarget : int { Texture0 = ( (int) 0x84c0 ), Texture1 = ( (int) 0x84c1 ), Texture2 = ( (int) 0x84c2 ), Texture3 = ( (int) 0x84c3 ), Texture4 = ( (int) 0x84c4 ), Texture5 = ( (int) 0x84c5 ), Texture6 = ( (int) 0x84c6 ), Texture7 = ( (int) 0x84c7 ), Texture8 = ( (int) 0x84c8 ), Texture9 = ( (int) 0x84c9 ), Texture10 = ( (int) 0x84ca ), Texture11 = ( (int) 0x84cb ), Texture12 = ( (int) 0x84cc ), Texture13 = ( (int) 0x84cd ), Texture14 = ( (int) 0x84ce ), Texture15 = ( (int) 0x84cf ), Texture16 = ( (int) 0x84d0 ), Texture17 = ( (int) 0x84d1 ), Texture18 = ( (int) 0x84d2 ), Texture19 = ( (int) 0x84d3 ), Texture20 = ( (int) 0x84d4 ), Texture21 = ( (int) 0x84d5 ), Texture22 = ( (int) 0x84d6 ), Texture23 = ( (int) 0x84d7 ), Texture24 = ( (int) 0x84d8 ), Texture25 = ( (int) 0x84d9 ), Texture26 = ( (int) 0x84da ), Texture27 = ( (int) 0x84db ), Texture28 = ( (int) 0x84dc ), Texture29 = ( (int) 0x84dd ), Texture30 = ( (int) 0x84de ), Texture31 = ( (int) 0x84df ), }
Added as TextureUnit instead of ActiveTextureTarget, as the functions were already expecting that.
Comments
Proofreading pays
Proofreading pays off:
Source: http://wiki.delphigl.com/index.php/glActiveTexture
Affected Functions:
old: GL.ActiveTexture( Version13 texture );
new: GL.ActiveTexture( ActiveTextureTarget texture );
old: GL.ClientActiveTexture( Version13 texture );
new: GL.ClientActiveTexture( ActiveTextureTarget texture );
The new Enum is:
Added as TextureUnit instead
Added as TextureUnit instead of ActiveTextureTarget, as the functions were already expecting that.