Inertia's picture

[ES 2.0] Cleanup #3

Project:The Open Toolkit library
Version:1.0-beta-1
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

-------------------------------

enum GetBooleanPName
{
 Shadercompiler = ((int)0X8dfa),
 Samplecoverageinvert = ((int)0X80ab),
 Colorwritemask = ((int)0X0c23),
 Depthwritemask = ((int)0X0b72),
}
 
SVN: void GetBoolean( OpenTK.Graphics.GLES20.All pname,  bool* @params)
New: void GetBoolean( GetBooleanPName pname,  bool* @params)
 
 
-------------------------------
 
enum GetFloatPName
{
 Depthrange = ((int)0X0b70),
 Linewidth = ((int)0X0b21),
 Polygonoffsetunits = ((int)0X2a00),
 Polygonoffsetfactor = ((int)0X8038),
 Aliasedpointsizerange = ((int)0X846d),
 Aliasedlinewidthrange = ((int)0X846e),
 Samplecoveragevalue = ((int)0X80aa),
 Colorclearvalue = ((int)0X0c22),
}
 
SVN: void GetFloat( OpenTK.Graphics.GLES20.All pname,  Single* @params)
SVN: void GetFloat( GetFloatPName pname,  Single* @params)
 
-------------------------------
 
enum GetIntegerPName
{
 Blendequation = ((int)0X8009), // alias for BlendEquationRGB, useful if user did not call BlendEquationSeparate()
 Blendequationrgb = ((int)0X8009),
 Blendequationalpha = ((int)0X883d),
 Implementationcolorreadtype = ((int)0X8b9a),
 Implementationcolorreadformat = ((int)0X8b9b),
 Framebufferbinding = ((int)0X8ca6),
 Renderbufferbinding = ((int)0X8ca7),    
 Arraybufferbinding = ((int)0X8894),
 Elementarraybufferbinding = ((int)0X8895),
 Scissorbox = ((int)0X0c10),
 Viewport = ((int)0X0ba2),
 Texturebinding2D = ((int)0X8069),
 Texturebindingcubemap = ((int)0X8514),
 Activetexture = ((int)0X84e0),
 Frontface = ((int)0X0b46),
 Cullfacemode = ((int)0X0b45),
 Blenddstrgb = ((int)0X80c8),
 Blendsrcrgb = ((int)0X80c9),
 Blenddstalpha = ((int)0X80ca),
 Blendsrcalpha = ((int)0X80cb),
 Stencilfunc = ((int)0X0b92),
 Stencilvaluemask = ((int)0X0b93),
 Stencilfail = ((int)0X0b94),
 Stencilpassdepthfail = ((int)0X0b95),
 Stencilpassdepthpass = ((int)0X0b96),
 Stencilref = ((int)0X0b97),
 Stencilbackfunc = ((int)0X8800),
 Stencilbackfail = ((int)0X8801),
 Stencilbackpassdepthfail = ((int)0X8802),
 Stencilbackpassdepthpass = ((int)0X8803),
 Stencilbackref = ((int)0X8ca3),
 Stencilbackvaluemask = ((int)0X8ca4),
 Stencilwritemask = ((int)0X0b98),
 Stencilbackwritemask = ((int)0X8ca5),
 Depthfunc = ((int)0X0b74),
 Depthclearvalue = ((int)0X0b73),
 Stencilclearvalue = ((int)0X0b91),
 Unpackalignment = ((int)0X0cf5),
 Packalignment = ((int)0X0d05),
 Currentprogram = ((int)0X8b8d),
 Generatemipmaphint = ((int)0X8192),
 Maxtexturesize = ((int)0X0d33),
 Maxviewportdims = ((int)0X0d3a),
 Subpixelbits = ((int)0X0d50),
 Maxcubemaptexturesize = ((int)0X851c),
 Samplebuffers = ((int)0X80a8),
 Samples = ((int)0X80a9),
 Numcompressedtextureformats = ((int)0X86a2),
 Compressedtextureformats = ((int)0X86a3),
 Shaderbinaryformats = ((int)0X8df8),
 Numshaderbinaryformats = ((int)0X8df9),
 Maxvertexattribs = ((int)0X8869),
 Maxtextureimageunits = ((int)0X8872),
 Maxvertextextureimageunits = ((int)0X8b4c),
 Maxcombinedtextureimageunits = ((int)0X8b4d),
 Maxrenderbuffersize = ((int)0X84e8),  
 Maxvertexuniformvectors = ((int)0X8dfb),
 Maxvaryingvectors = ((int)0X8dfc),
 Maxfragmentuniformvectors = ((int)0X8dfd),
 Redbits = ((int)0X0d52),
 Greenbits = ((int)0X0d53),
 Bluebits = ((int)0X0d54),
 Alphabits = ((int)0X0d55),
 Depthbits = ((int)0X0d56),
 Stencilbits = ((int)0X0d57),
}
 
SVN: void GetInteger( OpenTK.Graphics.GLES20.All pname,  Int32* @params)
New: void GetInteger( GetIntegerPName pname,  Int32* @params)
 
-------------------------------
 
Homeless tokens:
 
Belongs to OES_texture_env_crossbar extension:
 Texture = ((int)0X1702), // different value than Texture2D. There is TextureBinding2D to query the name/handle
 
abstract base internal formats (invalid parameters to any ***TexImage*** commands):
 Stencilindex = ((int)0X1901), 
 Depthcomponent = ((int)0X1902)

Edit: Moved BlendEquation tokens to GetInteger enum, due to http://www.khronos.org/registry/gles/specs/1.1/opengles_spec_1_1_extensi... (page 12)

Edit2: Found home for BlendColor (GetFloat enum) http://www.khronos.org/opengles/sdk/docs/man/


Comments

Comment viewing options

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

#11

Version:0.9.x-dev» 1.0-beta-1
Status:fixed» closed

Closing issues fixed in 1.0 beta-1.