Merged es20 branch back into trunk.

This commit is contained in:
the_fiddler 2009-10-28 23:09:25 +00:00
commit 81311ba037
30 changed files with 2992 additions and 1309 deletions

View file

@ -131,7 +131,8 @@ namespace Bind.ES
{
Constant c = new Constant(param.GetAttribute("name", String.Empty), param.GetAttribute("value", String.Empty));
Utilities.Merge(all, c);
e.ConstantCollection.Add(c.Name, c);
try { e.ConstantCollection.Add(c.Name, c); }
catch (ArgumentException ex) { Console.WriteLine("[Warning] Failed to add constant {0} to enum {1}: {2}", c.Name, e.Name, ex.Message); }
}
Utilities.Merge(enums, e);

View file

@ -8,6 +8,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml.XPath;
using Bind.Structures;
@ -349,8 +350,8 @@ namespace Bind.GL2
// The typematching logic cannot handle pointers to pointers, e.g. CharPointer* -> char** -> string* -> string[].
// Hence we give it a push.
// Note: When both CurrentType == "String" and Pointer == true, the typematching is hardcoded to use
// System.String[] or System.StringBuilder[].
GLTypes.Add(words[0], "System.String");
// String[] or StringBuilder[].
GLTypes.Add(words[0], "String");
}
/*else if (words[0].Contains("Pointer"))
{
@ -501,6 +502,7 @@ namespace Bind.GL2
sw.Indent();
sw.WriteLine("using System;");
sw.WriteLine("using System.Text;");
sw.WriteLine("using System.Runtime.InteropServices;");
sw.WriteLine("#pragma warning disable 0649");
@ -519,6 +521,7 @@ namespace Bind.GL2
sw.Indent();
//specWriter.WriteTypes(sw, Bind.Structures.Type.CSTypes);
sw.WriteLine("using System;");
sw.WriteLine("using System.Text;");
sw.WriteLine("using System.Runtime.InteropServices;");
WriteImports(sw, Delegate.Delegates);
@ -536,6 +539,7 @@ namespace Bind.GL2
sw.Indent();
sw.WriteLine("using System;");
sw.WriteLine("using System.Text;");
sw.WriteLine("using System.Runtime.InteropServices;");
WriteWrappers(sw, Function.Wrappers, Type.CSTypes);
@ -678,38 +682,7 @@ namespace Bind.GL2
wrappers[key].Sort();
foreach (Function f in wrappers[key])
{
if ((Settings.Compatibility & Settings.Legacy.NoDocumentation) == 0)
{
Console.WriteLine("Creating docs for #{0} ({1})", current++, f.Name);
try
{
string path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix + f.WrappedDelegate.Name + ".xml");
if (!File.Exists(path))
path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix +
f.TrimmedName + ".xml");
if (!File.Exists(path))
path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix + f.TrimmedName.TrimEnd(numbers) + ".xml");
if (File.Exists(path))
{
DocProcessor doc_processor = new DocProcessor(Path.Combine(Settings.DocPath, Settings.DocFile));
sw.WriteLine(doc_processor.ProcessFile(path));
}
}
catch (FileNotFoundException)
{ }
}
if (!f.CLSCompliant)
{
sw.WriteLine("[System.CLSCompliant(false)]");
}
sw.WriteLine("[AutoGenerated(Category = \"{0}\", Version = \"{1}\", EntryPoint = \"{2}\")]",
f.Category, f.Version, Settings.FunctionPrefix + f.WrappedDelegate.Name);
sw.WriteLine("public static ");
sw.Write(f);
sw.WriteLine();
current = WriteWrapper(sw, current, f);
}
if (((Settings.Compatibility & Settings.Legacy.NoSeparateFunctionNamespaces) == Settings.Legacy.None) && key != "Core")
@ -723,13 +696,58 @@ namespace Bind.GL2
sw.WriteLine("}");
}
private static int WriteWrapper(BindStreamWriter sw, int current, Function f)
{
if ((Settings.Compatibility & Settings.Legacy.NoDocumentation) == 0)
{
Console.WriteLine("Creating docs for #{0} ({1})", current++, f.Name);
WriteDocumentation(sw, f);
}
WriteMethod(sw, f);
return current;
}
private static void WriteMethod(BindStreamWriter sw, Function f)
{
if (!f.CLSCompliant)
{
sw.WriteLine("[System.CLSCompliant(false)]");
}
sw.WriteLine("[AutoGenerated(Category = \"{0}\", Version = \"{1}\", EntryPoint = \"{2}\")]",
f.Category, f.Version, Settings.FunctionPrefix + f.WrappedDelegate.Name);
sw.WriteLine("public static ");
sw.Write(f);
sw.WriteLine();
}
private static void WriteDocumentation(BindStreamWriter sw, Function f)
{
try
{
string path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix + f.WrappedDelegate.Name + ".xml");
if (!File.Exists(path))
path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix +
f.TrimmedName + ".xml");
if (!File.Exists(path))
path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix + f.TrimmedName.TrimEnd(numbers) + ".xml");
if (File.Exists(path))
{
DocProcessor doc_processor = new DocProcessor(Path.Combine(Settings.DocPath, Settings.DocFile));
sw.WriteLine(doc_processor.ProcessFile(path));
}
}
catch (FileNotFoundException)
{ }
}
#endregion
#region void WriteTypes
public void WriteTypes(BindStreamWriter sw, Dictionary<string, string> CSTypes)
{
sw.WriteLine("using System;");
sw.WriteLine();
foreach (string s in CSTypes.Keys)
{

View file

@ -48,7 +48,6 @@ namespace Bind
Console.WriteLine("OpenGL binding generator {0} for OpenTK.",
Assembly.GetExecutingAssembly().GetName().Version.ToString());
Console.WriteLine("For comments, bugs and suggestions visit http://opentk.sourceforge.net");
//Console.WriteLine(" - the OpenTK team ;-)");
Console.WriteLine();
string dirName = null;
@ -104,13 +103,14 @@ namespace Bind
case "legacy":
case "o":
case "option":
Settings.Compatibility |= b[1].ToLower().Contains("tao") ? Settings.Legacy.Tao : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower().Contains("enums") ? Settings.Legacy.NoAdvancedEnumProcessing : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower().Contains("safe") ? Settings.Legacy.NoPublicUnsafeFunctions : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower() == "tao" ? Settings.Legacy.Tao : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower() == "simple_enums" ? Settings.Legacy.NoAdvancedEnumProcessing : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower() == "safe" ? Settings.Legacy.NoPublicUnsafeFunctions : Settings.Legacy.None;
//Settings.Compatibility |= b[1].ToLower().Contains("novoid") ? Settings.Legacy.TurnVoidPointersToIntPtr : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower().Contains("permutations") ? Settings.Legacy.GenerateAllPermutations : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower().Contains("enums_in_class") ? Settings.Legacy.NestedEnums : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower().Contains("nodocs") ? Settings.Legacy.NoDocumentation : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower() == "permutations" ? Settings.Legacy.GenerateAllPermutations : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower() == "enums_in_class" ? Settings.Legacy.NestedEnums : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower() == "nodocs" ? Settings.Legacy.NoDocumentation : Settings.Legacy.None;
Settings.Compatibility |= b[1].ToLower() == "keep_untyped_enums" ? Settings.Legacy.KeepUntypedEnums : Settings.Legacy.None;
break;
default:
throw new ArgumentException(

View file

@ -125,6 +125,8 @@ namespace Bind
NoDocumentation = 0x400,
/// <summary>Disables ErrorHelper generation.</summary>
NoDebugHelpers = 0x800,
/// <summary>Generate both typed and untyped ("All") signatures for enum parameters.</summary>
KeepUntypedEnums = 0x1000,
Tao = ConstIntEnums |
NoAdvancedEnumProcessing |
NoPublicUnsafeFunctions |

View file

@ -1,17 +1,808 @@
<?xml version="1.0" encoding="utf-8" ?>
<overrides>
<replace>
<function name="GetString" extension="Core">
<returns>String</returns>
</function>
<function name="ShaderSource" extension="Core">
<param name="string"><type>String*</type></param>
</function>
<function name="GetShaderSource" extension="Core">
<param name="source"><flow>out</flow></param>
</function>
<function name="GetProgramInfoLog" extension="Core">
<param name="infolog"><flow>out</flow></param>
</function>
</replace>
</overrides>
<?xml version="1.0" encoding="utf-8" ?>
<overrides>
<replace>
<function name="GetString" extension="Core">
<returns>String</returns>
<param name="name"><type>StringName</type></param>
</function>
<function name="ShaderBinary" extension="Core">
<param name="binaryformat"><type>ShaderBinaryFormat</type></param>
</function>
<function name="ShaderSource" extension="Core">
<param name="string"><type>String*</type></param>
</function>
<function name="BlendEquation" extension="Core" version="2.0">
<param name="mode"><type>BlendEquationMode</type></param>
</function>
<function name="BlendEquationSeparate" extension="Core" version="2.0">
<param name="modeRGB"><type>BlendEquationMode</type></param>
<param name="modeAlpha"><type>BlendEquationMode</type></param>
</function>
<function name="BlendFunc" extension="Core" version="2.0">
<param name="sfactor"><type>BlendingFactorSrc</type></param>
<param name="dfactor"><type>BlendingFactorDest</type></param>
</function>
<function name="BlendFuncSeparate" extension="Core" version="2.0">
<param name="srcRGB"><type>BlendingFactorSrc</type></param>
<param name="dstRGB"><type>BlendingFactorDest</type></param>
<param name="srcAlpha"><type>BlendingFactorSrc</type></param>
<param name="dstAlpha"><type>BlendingFactorDest</type></param>
</function>
<function name="BindBuffer" extension="Core" version="2.0">
<param name="target"><type>BufferTarget</type></param>
</function>
<function name="BufferData" extension="Core" version="2.0">
<param name="target"><type>BufferTarget</type></param>
<param name="usage"><type>BufferUsage</type></param>
</function>
<function name="BufferSubData" extension="Core" version="2.0">
<param name="target"><type>BufferTarget</type></param>
</function>
<function name="VertexAttribPointer" extension="Core" version="2.0">
<param name="type"><type>VertexAttribPointerType</type></param>
</function>
<function name="Hint" extension="Core" version="2.0">
<param name="target"><type>HintTarget</type></param>
<param name="mode"><type>HintMode</type></param>
</function>
<function name="StencilFunc" extension="Core" version="2.0">
<param name="func"><type>StencilFunction</type></param>
</function>
<function name="StencilFuncSeparate" extension="Core" version="2.0">
<param name="face"><type>CullFaceMode</type></param>
<param name="func"><type>StencilFunction</type></param>
</function>
<function name="StencilMaskSeparate" extension="Core" version="2.0">
<param name="face"><type>CullFaceMode</type></param>
</function>
<function name="StencilOp" extension="Core" version="2.0">
<param name="fail"><type>StencilOp</type></param>
<param name="zfail"><type>StencilOp</type></param>
<param name="zpass"><type>StencilOp</type></param>
</function>
<function name="StencilOpSeparate" extension="Core" version="2.0">
<param name="face"><type>CullFaceMode</type></param>
<param name="fail"><type>StencilOp</type></param>
<param name="zfail"><type>StencilOp</type></param>
<param name="zpass"><type>StencilOp</type></param>
</function>
<function name="GetBufferParameter" extension="Core" version="2.0">
<param name="target"><type>BufferTarget</type></param>
<param name="pname"><type>BufferParameterName</type></param>
</function>
<function name="Clear" extension="Core" version="2.0">
<param name="mask"><type>ClearBufferMask</type></param>
</function>
<function name="CreateShader" extension="Core" version="2.0">
<param name="type"><type>ShaderType</type></param>
</function>
<function name="GetShaderPrecisionFormat" extension="Core" version="2.0">
<param name="shadertype"><type>ShaderType</type></param>
<param name="precisiontype"><type>ShaderPrecision</type></param>
</function>
<function name="CullFace" extension="Core" version="2.0">
<param name="mode"><type>CullFaceMode</type></param>
</function>
<function name="DepthFunc" extension="Core" version="2.0">
<param name="func"><type>DepthFunction</type></param>
</function>
<function name="DrawArrays" extension="Core" version="2.0">
<param name="mode"><type>BeginMode</type></param>
</function>
<function name="DrawElements" extension="Core" version="2.0">
<param name="mode"><type>BeginMode</type></param>
<param name="type"><type>DrawElementsType</type></param>
</function>
<function name="Enable" extension="Core" version="2.0">
<param name="cap"><type>EnableCap</type></param>
</function>
<function name="Disable" extension="Core" version="2.0">
<param name="cap"><type>EnableCap</type></param>
</function>
<function name="IsEnabled" extension="Core" version="2.0">
<param name="cap"><type>EnableCap</type></param>
</function>
<function name="FrontFace" extension="Core" version="2.0">
<param name="mode"><type>FrontFaceDirection</type></param>
</function>
<function name="GetActiveAttrib" extension="Core" version="2.0">
<param name="type"><type>ActiveAttribType</type></param>
</function>
<function name="GetActiveUniform" extension="Core" version="2.0">
<param name="type"><type>ActiveUniformType</type></param>
</function>
<function name="GetError" extension="Core" version="2.0">
<returns>ErrorCode</returns>
</function>
<function name="GetProgram" extension="Core" version="2.0">
<param name="pname"><type>ProgramParameter</type></param>
</function>
<function name="GetShader" extension="Core" version="2.0">
<param name="pname"><type>ShaderParameter</type></param>
</function>
<function name="GetString" extension="Core" version="2.0">
<param name="name"><type>StringName</type></param>
</function>
<function name="GetVertexAttrib" extension="Core" version="2.0">
<param name="pname"><type>VertexAttribParameter</type></param>
</function>
<function name="GetVertexAttribPointer" extension="Core" version="2.0">
<param name="pname"><type>VertexAttribPointerParameter</type></param>
</function>
<function name="ActiveTexture" extension="Core" version="2.0">
<param name="texture"><type>TextureUnit</type></param>
</function>
<function name="BindTexture" extension="Core" version="2.0">
<param name="target"><type>TextureTarget</type></param>
</function>
<function name="GenerateMipmap" extension="Core" version="2.0">
<param name="target"><type>TextureTarget</type></param>
</function>
<function name="GetTexParameter" extension="Core" version="2.0">
<param name="target"><type>TextureTarget</type></param>
<param name="pname"><type>GetTextureParameter</type></param>
</function>
<function name="TexParameter" extension="Core" version="2.0">
<param name="target"><type>TextureTarget</type></param>
<param name="pname"><type>TextureParameterName</type></param>
</function>
<function name="TexImage2D" extension="Core" version="2.0">
<param name="target"><type>TextureTarget</type></param>
<param name="internalformat"><type>PixelInternalFormat</type></param>
<param name="format"><type>PixelFormat</type></param>
<param name="type"><type>PixelType</type></param>
</function>
<function name="TexSubImage2D" extension="Core" version="2.0">
<param name="target"><type>TextureTarget</type></param>
<param name="format"><type>PixelFormat</type></param>
<param name="type"><type>PixelType</type></param>
</function>
<function name="CopyTexImage2D" extension="Core" version="2.0">
<param name="target"><type>TextureTarget</type></param>
<param name="internalformat"><type>PixelInternalFormat</type></param>
</function>
<function name="CopyTexSubImage2D" extension="Core" version="2.0">
<param name="target"><type>TextureTarget</type></param>
</function>
<function name="CompressedTexImage2D" extension="Core" version="2.0">
<param name="target"><type>TextureTarget</type></param>
<param name="internalformat"><type>PixelInternalFormat</type></param>
</function>
<function name="CompressedTexSubImage2D" extension="Core" version="2.0">
<param name="target"><type>TextureTarget</type></param>
<param name="format"><type>PixelFormat</type></param>
</function>
<function name="ReadPixels" extension="Core" version="2.0">
<param name="format"><type>PixelFormat</type></param>
<param name="type"><type>PixelType</type></param>
</function>
<function name="CheckFramebufferStatus" extension="Core" version="2.0">
<returns>FramebufferErrorCode</returns>
<param name="target"><type>FramebufferTarget</type></param>
</function>
<function name="BindFramebuffer" extension="Core" version="2.0">
<param name="target"><type>FramebufferTarget</type></param>
</function>
<function name="BindRenderbuffer" extension="Core" version="2.0">
<param name="target"><type>RenderbufferTarget</type></param>
</function>
<function name="RenderbufferStorage" extension="Core" version="2.0">
<param name="target"><type>RenderbufferTarget</type></param>
<param name="internalformat"><type>RenderbufferInternalFormat</type></param>
</function>
<function name="GetRenderbufferParameter" extension="Core" version="2.0">
<param name="target"><type>RenderbufferTarget</type></param>
<param name="pname"><type>RenderbufferParameterName</type></param>
</function>
<function name="FramebufferRenderbuffer" extension="Core" version="2.0">
<param name="target"><type>FramebufferTarget</type></param>
<param name="attachment"><type>FramebufferSlot</type></param>
<param name="renderbuffertarget"><type>RenderbufferTarget</type></param>
</function>
<function name="FramebufferTexture2D" extension="Core" version="2.0">
<param name="target"><type>FramebufferTarget</type></param>
<param name="attachment"><type>FramebufferSlot</type></param>
<param name="textarget"><type>TextureTarget</type></param>
</function>
<function name="GetFramebufferAttachmentParameter" extension="Core" version="2.0">
<param name="target"><type>FramebufferTarget</type></param>
<param name="attachment"><type>FramebufferSlot</type></param>
<param name="pname"><type>FramebufferParameterName</type></param>
</function>
<function name="PixelStore" extension="Core" version="2.0">
<param name="pname"><type>PixelStoreParameter</type></param>
</function>
<function name="GetBoolean" extension="Core">
<param name="pname"><type>GetPName</type></param>
</function>
<function name="GetFloat" extension="Core">
<param name="pname"><type>GetPName</type></param>
</function>
<function name="GetInteger" extension="Core">
<param name="pname"><type>GetPName</type></param>
</function>
<function name="GetError" extension="Core">
<returns>ErrorCode</returns>
</function>
<function name="GetAttribLocation" extension="Core">
<param name="name"><flow>in</flow></param>
</function>
<function name="GetUniformLocation" extension="Core">
<param name="name"><flow>in</flow></param>
</function>
</replace>
<add>
<enum name="BlendEquationMode">
<token name="FuncAdd" value="0X8006" />
<token name="FuncSubtract" value="0X800a" />
<token name="FuncReverseSubtract" value="0X800b" />
</enum>
<enum name="BlendingFactorSrc">
<token name="Zero" value="0" />
<token name="One" value="1" />
<token name="SrcColor" value="0X0300" />
<token name="OneMinusSrcColor" value="0X0301" />
<token name="DstColor" value="0X0306" />
<token name="OneMinusDstColor" value="0X0307" />
<token name="SrcAlpha" value="0X0302" />
<token name="OneMinusSrcAlpha" value="0X0303" />
<token name="DstAlpha" value="0X0304" />
<token name="OneMinusDstAlpha" value="0X0305" />
<token name="ConstantColor" value="0X8001" />
<token name="OneMinusConstantColor" value="0X8002" />
<token name="ConstantAlpha" value="0X8003" />
<token name="OneMinusConstantAlpha" value="0X8004" />
<token name="SrcAlphaSaturate" value="0X0308" remark="only valid for source RGB/Alpha" />
</enum>
<enum name="BlendingFactorDest">
<token name="Zero" value="0" />
<token name="One" value="1" />
<token name="SrcColor" value="0X0300" />
<token name="OneMinusSrcColor" value="0X0301" />
<token name="DstColor" value="0X0306" />
<token name="OneMinusDstColor" value="0X0307" />
<token name="SrcAlpha" value="0X0302" />
<token name="OneMinusSrcAlpha" value="0X0303" />
<token name="DstAlpha" value="0X0304" />
<token name="OneMinusDstAlpha" value="0X0305" />
<token name="ConstantColor" value="0X8001" />
<token name="OneMinusConstantColor" value="0X8002" />
<token name="ConstantAlpha" value="0X8003" />
<token name="OneMinusConstantAlpha" value="0X8004" />
<token name="SrcAlphaSaturate" value="0X0308" remark="only valid for source RGB/Alpha" />
</enum>
<enum name="BufferTarget">
<token name="ArrayBuffer" value="0X8892" />
<token name="ElementArrayBuffer" value="0X8893" />
</enum>
<enum name="BufferUsage">
<token name="DynamicDraw" value="0X88e8" />
<token name="StaticDraw" value="0X88e4" />
<token name="StreamDraw" value="0X88e0" />
</enum>
<enum name="BufferParameterName">
<token name="BufferSize" value="0X8764" />
<token name="BufferUsage" value="0X8765" />
</enum>
<enum name="VertexAttribPointerType">
<token name="Byte" value="0X1400" />
<token name="UnsignedByte" value="0X1401" />
<token name="Short" value="0X1402" />
<token name="UnsignedShort" value="0X1403" />
<token name="Fixed" value="0X140c" />
<token name="Float" value="0X1406" />
</enum>
<enum name="ClearBufferMask">
<token name="DepthBufferBit" value="0X0100" />
<token name="StencilBufferBit" value="0X0400" />
<token name="ColorBufferBit" value="0X4000" />
</enum>
<enum name="ShaderType">
<token name="VertexShader" value="0X8b31" />
<token name="FragmentShader" value="0X8b30" />
</enum>
<enum name="ShaderPrecision">
<token name="LowFloat" value="0X8df0" />
<token name="MediumFloat" value="0X8df1" />
<token name="HighFloat" value="0X8df2" />
<token name="LowInt" value="0X8df3" />
<token name="MediumInt" value="0X8df4" />
<token name="HighInt" value="0X8df5" />
</enum>
<enum name="CullFaceMode">
<token name="Front" value="0X0404" />
<token name="Back" value="0X0405" />
<token name="FrontAndBack" value="0X0408" />
</enum>
<enum name="DepthFunction">
<token name="Never" value="0X0200" />
<token name="Less" value="0X0201" />
<token name="Equal" value="0X0202" />
<token name="Lequal" value="0X0203" />
<token name="Greater" value="0X0204" />
<token name="Notequal" value="0X0205" />
<token name="Gequal" value="0X0206" />
<token name="Always" value="0X0207" />
</enum>
<enum name="BeginMode">
<token name="Points" value="0X0000" />
<token name="Lines" value="0X0001" />
<token name="LineLoop" value="0X0002" />
<token name="LineStrip" value="0X0003" />
<token name="Triangles" value="0X0004" />
<token name="TriangleStrip" value="0X0005" />
<token name="TriangleFan" value="0X0006" />
</enum>
<enum name="DrawElementsType">
<token name="UnsignedByte" value="0X1401" />
<token name="UnsignedShort" value="0X1403" />
</enum>
<enum name="EnableCap">
<token name="CullFace" value="0X0b44" />
<token name="DepthTest" value="0X0b71" />
<token name="StencilTest" value="0X0b90" />
<token name="Dither" value="0X0bd0" />
<token name="Blend" value="0X0be2" />
<token name="ScissorTest" value="0X0c11" />
<token name="Texture2D" value="0X0de1" />
<token name="PolygonOffsetFill" value="0X8037" />
<token name="SampleAlphaToCoverage" value="0X809e" />
<token name="SampleCoverage" value="0X80a0" />
</enum>
<enum name="FrontFaceDirection">
<token name="Cw" value="0X0900" />
<token name="Ccw" value="0X0901" />
</enum>
<enum name="ActiveAttribType">
<token name="Float" value="0X1406" />
<token name="FloatVec2" value="0X8b50" />
<token name="FloatVec3" value="0X8b51" />
<token name="FloatVec4" value="0X8b52" />
<token name="FloatMat2" value="0X8b5a" />
<token name="FloatMat3" value="0X8b5b" />
<token name="FloatMat4" value="0X8b5c" />
</enum>
<enum name="ActiveUniformType">
<token name="Float" value="0X1406" />
<token name="FloatVec2" value="0X8b50" />
<token name="FloatVec3" value="0X8b51" />
<token name="FloatVec4" value="0X8b52" />
<token name="Int" value="0X1404" />
<token name="IntVec2" value="0X8b53" />
<token name="IntVec3" value="0X8b54" />
<token name="IntVec4" value="0X8b55" />
<token name="Bool" value="0X8b56" />
<token name="BoolVec2" value="0X8b57" />
<token name="BoolVec3" value="0X8b58" />
<token name="BoolVec4" value="0X8b59" />
<token name="FloatMat2" value="0X8b5a" />
<token name="FloatMat3" value="0X8b5b" />
<token name="FloatMat4" value="0X8b5c" />
<token name="Sampler2D" value="0X8b5e" />
<token name="SamplerCube" value="0X8b60" />
</enum>
<enum name="ErrorCode">
<token name="NoError" value="0" />
<token name="InvalidEnum" value="0X0500" />
<token name="InvalidValue" value="0X0501" />
<token name="InvalidOperation" value="0X0502" />
<token name="OutOfMemory" value="0X0505" />
<token name="InvalidFramebufferOperation " value="0X0506" />
</enum>
<enum name="ProgramParameter">
<token name="DeleteStatus" value="0X8b80" />
<token name="LinkStatus" value="0X8b82" />
<token name="ValidateStatus" value="0X8b83" />
<token name="InfoLogLength" value="0X8b84" />
<token name="AttachedShaders" value="0X8b85" />
<token name="ActiveAttributes" value="0X8b89" />
<token name="ActiveAttributeMaxLength" value="0X8b8a" />
<token name="ActiveUniforms" value="0X8b86" />
<token name="ActiveUniformMaxLength" value="0X8b87" />
</enum>
<enum name="ShaderParameter">
<token name="ShaderType" value="0X8b4f" remark="This output may be cast to the ShaderType enum." />
<token name="DeleteStatus" value="0X8b80" />
<token name="CompileStatus" value="0X8b81" />
<token name="InfoLogLength" value="0X8b84" />
<token name="ShaderSourceLength" value="0X8b88" />
</enum>
<enum name="StringName">
<token name="Vendor" value="0X1f00" />
<token name="Renderer" value="0X1f01" />
<token name="Version" value="0X1f02" />
<token name="Extensions" value="0X1f03" />
<token name="ShadingLanguageVersion" value="0X8b8c" />
</enum>
<enum name="VertexAttribParameter">
<token name="VertexAttribArrayEnabled" value="0X8622" />
<token name="VertexAttribArraySize" value="0X8623" />
<token name="VertexAttribArrayStride" value="0X8624" />
<token name="VertexAttribArrayType" value="0X8625" />
<token name="VertexAttribArrayNormalized" value="0X886a" />
<token name="VertexAttribArrayBufferBinding" value="0X889f" />
<token name="CurrentVertexAttrib" value="0X8626" />
</enum>
<enum name="VertexAttribPointerParameter">
<token name="VertexAttribArrayPointer" value="0X8645" />
</enum>
<enum name="HintTarget">
<token name="GenerateMipmapHint" value="0X8192" />
</enum>
<enum name="HintMode">
<token name="DontCare" value="0X1100" />
<token name="Fastest" value="0X1101" />
<token name="Nicest" value="0X1102" />
</enum>
<enum name="StencilFunction">
<token name="Never" value="0X0200" />
<token name="Less" value="0X0201" />
<token name="Equal" value="0X0202" />
<token name="Lequal" value="0X0203" />
<token name="Greater" value="0X0204" />
<token name="Notequal" value="0X0205" />
<token name="Gequal" value="0X0206" />
<token name="Always" value="0X0207" />
</enum>
<enum name="StencilOp">
<token name="Invert" value="0X150a" />
<token name="Keep" value="0X1e00" />
<token name="Replace" value="0X1e01" />
<token name="Incr" value="0X1e02" />
<token name="Decr" value="0X1e03" />
<token name="IncrWrap" value="0X8507" />
<token name="DecrWrap" value="0X8508" />
<token name="Zero" value="0X0000" />
</enum>
<enum name="TextureUnit">
<token name="Texture0" value="0X84c0" />
<token name="Texture1" value="0X84c1" />
<token name="Texture2" value="0X84c2" />
<token name="Texture3" value="0X84c3" />
<token name="Texture4" value="0X84c4" />
<token name="Texture5" value="0X84c5" />
<token name="Texture6" value="0X84c6" />
<token name="Texture7" value="0X84c7" />
<token name="Texture8" value="0X84c8" />
<token name="Texture9" value="0X84c9" />
<token name="Texture10" value="0X84ca" />
<token name="Texture11" value="0X84cb" />
<token name="Texture12" value="0X84cc" />
<token name="Texture13" value="0X84cd" />
<token name="Texture14" value="0X84ce" />
<token name="Texture15" value="0X84cf" />
<token name="Texture16" value="0X84d0" />
<token name="Texture17" value="0X84d1" />
<token name="Texture18" value="0X84d2" />
<token name="Texture19" value="0X84d3" />
<token name="Texture20" value="0X84d4" />
<token name="Texture21" value="0X84d5" />
<token name="Texture22" value="0X84d6" />
<token name="Texture23" value="0X84d7" />
<token name="Texture24" value="0X84d8" />
<token name="Texture25" value="0X84d9" />
<token name="Texture26" value="0X84da" />
<token name="Texture27" value="0X84db" />
<token name="Texture28" value="0X84dc" />
<token name="Texture29" value="0X84dd" />
<token name="Texture30" value="0X84de" />
<token name="Texture31" value="0X84df" />
</enum>
<enum name="TextureTarget">
<token name="Texture2D" value="0X0de1" />
<token name="TextureCubeMap" value="0X8513" />
</enum>
<enum name="TextureMinFilter">
<token name="NearestMipmapNearest" value="0X2700" />
<token name="LinearMipmapNearest" value="0X2701" />
<token name="NearestMipmapLinear" value="0X2702" />
<token name="LinearMipmapLinear" value="0X2703" />
<token name="Nearest" value="0X2600" />
<token name="Linear" value="0X2601" />
</enum>
<enum name="TextureMagFilter">
<token name="Nearest" value="0X2600" />
<token name="Linear" value="0X2601" />
</enum>
<enum name="TextureParameterName">
<token name="TextureMagFilter" value="0X2800" />
<token name="TextureMinFilter" value="0X2801" />
<token name="TextureWrapS" value="0X2802" />
<token name="TextureWrapT" value="0X2803" />
</enum>
<enum name="GetTextureParameter">
<token name="TextureMagFilter" value="0X2800" />
<token name="TextureMinFilter" value="0X2801" />
<token name="TextureWrapS" value="0X2802" />
<token name="TextureWrapT" value="0X2803" />
</enum>
<enum name="TextureTarget">
<token name="Texture2D" value="0X0de1" />
<token name="TextureCubeMapPositiveX" value="0X8515" />
<token name="TextureCubeMapNegativeX" value="0X8516" />
<token name="TextureCubeMapPositiveY" value="0X8517" />
<token name="TextureCubeMapNegativeY" value="0X8518" />
<token name="TextureCubeMapPositiveZ" value="0X8519" />
<token name="TextureCubeMapNegativeZ" value="0X851a" />
</enum>
<enum name="PixelType">
<token name="UnsignedShort4444" value="0X8033" />
<token name="UnsignedShort5551" value="0X8034" />
<token name="UnsignedShort565" value="0X8363" />
<token name="UnsignedByte" value="0X1401" />
</enum>
<enum name="PixelFormat">
<token name="Alpha" value="0X1906" />
<token name="Rgb" value="0X1907" />
<token name="Rgba" value="0X1908" />
<token name="Luminance" value="0X1909" />
<token name="LuminanceAlpha" value="0X190a" />
</enum>
<enum name="PixelInternalFormat">
<token name="Alpha" value="0X1906" />
<token name="Rgb" value="0X1907" />
<token name="Rgba" value="0X1908" />
<token name="Luminance" value="0X1909" />
<token name="LuminanceAlpha" value="0X190a" />
</enum>
<enum name="FramebufferTarget">
<token name="Framebuffer" value="0X8d40" />
</enum>
<enum name="FramebufferErrorCode">
<token name="FramebufferComplete" value="0X8cd5" />
<token name="FramebufferIncompleteAttachment" value="0X8cd6" />
<token name="FramebufferIncompleteMissingAttachment" value="0X8cd7" />
<token name="FramebufferIncompleteDimensions" value="0X8cd9" />
<token name="FramebufferUnsupported" value="0X8cdd" />
</enum>
<enum name="RenderbufferTarget">
<token name="Renderbuffer" value="0X8d41" />
</enum>
<enum name="RenderbufferInternalFormat">
<token name="DepthComponent16" value="0X81a5" />
<token name="Rgba4" value="0X8056" />
<token name="Rgb5A1" value="0X8057" />
<token name="Rgb565" value="0X8d62" />
<token name="StencilIndex8" value="0X8d48" />
</enum>
<enum name="RenderbufferParameterName">
<token name="RenderbufferWidth" value="0X8d42" />
<token name="RenderbufferHeight" value="0X8d43" />
<token name="RenderbufferInternalFormat" value="0X8d44" />
<token name="RenderbufferRedSize" value="0X8d50" />
<token name="RenderbufferGreenSize" value="0X8d51" />
<token name="RenderbufferBlueSize" value="0X8d52" />
<token name="RenderbufferAlphaSize" value="0X8d53" />
<token name="RenderbufferDepthSize" value="0X8d54" />
<token name="RenderbufferStencilSize" value="0X8d55" />
</enum>
<enum name="FramebufferSlot">
<token name="ColorAttachment0" value="0X8ce0" />
<token name="DepthAttachment" value="0X8d00" />
<token name="StencilAttachment" value="0X8d20" />
</enum>
<enum name="FramebufferParameterName">
<token name="FramebufferAttachmentObjectType" value="0X8cd0" />
<token name="FramebufferAttachmentObjectName" value="0X8cd1" />
<token name="FramebufferAttachmentTextureLevel" value="0X8cd2" />
<token name="FramebufferAttachmentTextureCubeMapFace" value="0X8cd3" />
</enum>
<enum name="PixelStoreParameter">
<token name="PackAlignment" value="0X0d05" />
<token name="UnpackAlignment" value="0X0cf5" />
</enum>
<enum name="GetPName">
<token name="ShaderCompiler" value="0X8dfa" />
<token name="SampleCoverageInvert" value="0X80ab" />
<token name="ColorWritemask" value="0X0c23" />
<token name="DepthWritemask" value="0X0b72" />
<token name="BlendColor" value="0X8005" />
<token name="DepthRange" value="0X0b70" />
<token name="LineWidth" value="0X0b21" />
<token name="PolygonOffsetUnits" value="0X2a00" />
<token name="PolygonOffsetFactor" value="0X8038" />
<token name="AliasedPointSizeRange" value="0X846d" />
<token name="AliasedLineWidthRange" value="0X846e" />
<token name="SampleCoverageValue" value="0X80aa" />
<token name="ColorClearValue" value="0X0c22" />
<token name="BlendEquation" value="0X8009" />
<token name="BlendEquationRgb" value="0X8009" />
<token name="BlendEquationAlpha" value="0X883d" />
<token name="ImplementationColorReadType" value="0X8b9a" />
<token name="ImplementationColorReadFormat" value="0X8b9b" />
<token name="FramebufferBinding" value="0X8ca6" />
<token name="RenderbufferBinding" value="0X8ca7" />
<token name="ArrayBufferBinding" value="0X8894" />
<token name="ElementArrayBufferBinding" value="0X8895" />
<token name="ScissorBox" value="0X0c10" />
<token name="Viewport" value="0X0ba2" />
<token name="TextureBinding2D" value="0X8069" />
<token name="TextureBindingCubeMap" value="0X8514" />
<token name="ActiveTexture" value="0X84e0" />
<token name="FrontFace" value="0X0b46" />
<token name="CullFaceMode" value="0X0b45" />
<token name="BlendDstRgb" value="0X80c8" />
<token name="BlendSrcRgb" value="0X80c9" />
<token name="BlendDstAlpha" value="0X80ca" />
<token name="BlendSrcAlpha" value="0X80cb" />
<token name="StencilFunc" value="0X0b92" />
<token name="StencilValueMask" value="0X0b93" />
<token name="StencilFail" value="0X0b94" />
<token name="StencilPassDepthFail" value="0X0b95" />
<token name="StencilPassDepthPass" value="0X0b96" />
<token name="StencilRef" value="0X0b97" />
<token name="StencilBackFunc" value="0X8800" />
<token name="StencilBackFail" value="0X8801" />
<token name="StencilBackPassDepthFail" value="0X8802" />
<token name="StencilBackPassDepthPass" value="0X8803" />
<token name="StencilBackRef" value="0X8ca3" />
<token name="StencilBackValueMask" value="0X8ca4" />
<token name="StencilWritemask" value="0X0b98" />
<token name="StencilBackWritemask" value="0X8ca5" />
<token name="DepthFunc" value="0X0b74" />
<token name="DepthClearValue" value="0X0b73" />
<token name="StencilClearValue" value="0X0b91" />
<token name="UnpackAlignment" value="0X0cf5" />
<token name="PackAlignment" value="0X0d05" />
<token name="CurrentProgram" value="0X8b8d" />
<token name="GenerateMipmapHint" value="0X8192" />
<token name="MaxTextureSize" value="0X0d33" />
<token name="MaxViewportDims" value="0X0d3a" />
<token name="SubpixelBits" value="0X0d50" />
<token name="MaxCubeMapTextureSize" value="0X851c" />
<token name="SampleBuffers" value="0X80a8" />
<token name="Samples" value="0X80a9" />
<token name="NumCompressedTextureFormats" value="0X86a2" />
<token name="CompressedTextureFormats" value="0X86a3" />
<token name="ShaderBinaryFormats" value="0X8df8" />
<token name="NumShaderBinaryFormats" value="0X8df9" />
<token name="MaxVertexAttribs" value="0X8869" />
<token name="MaxTextureImageUnits" value="0X8872" />
<token name="MaxVertexTextureImageUnits" value="0X8b4c" />
<token name="MaxCombinedTextureImageUnits" value="0X8b4d" />
<token name="MaxRenderbufferSize" value="0X84e8" />
<token name="MaxVertexUniformVectors" value="0X8dfb" />
<token name="MaxVaryingVectors" value="0X8dfc" />
<token name="MaxFragmentUniformVectors" value="0X8dfd" />
<token name="RedBits" value="0X0d52" />
<token name="GreenBits" value="0X0d53" />
<token name="BlueBits" value="0X0d54" />
<token name="AlphaBits" value="0X0d55" />
<token name="DepthBits" value="0X0d56" />
<token name="StencilBits" value="0X0d57" />
<!-- From EnableCap -->
<token name="CullFace" value="0X0b44" />
<token name="DepthTest" value="0X0b71" />
<token name="StencilTest" value="0X0b90" />
<token name="Dither" value="0X0bd0" />
<token name="Blend" value="0X0be2" />
<token name="ScissorTest" value="0X0c11" />
<token name="Texture2D" value="0X0de1" />
<token name="PolygonOffsetFill" value="0X8037" />
<token name="SampleAlphaToCoverage" value="0X809e" />
<token name="SampleCoverage" value="0X80a0" />
</enum>
<enum name="ShaderBinaryFormat">
<!-- Note: ShaderBinaryFormat must be queried at runtime, using
GetInteger(GetPName.ShaderBinaryFormats) -->
</enum>
</add>
</overrides>

View file

@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<signatures>
<enum name="AMDCompressed3DCTexture">
<enum name="AMDCompressed3DCTexture" type="int">
<token name="3DC_X_AMD" value="0x87F9" />
<token name="3DC_XY_AMD" value="0x87FA" />
<token name="AMD_compressed_3DC_texture" value="1" />
</enum>
<enum name="AMDCompressedATCTexture">
<enum name="AMDCompressedATCTexture" type="int">
<token name="AMD_compressed_ATC_texture" value="1" />
<token name="ATC_RGB_AMD" value="0x8C92" />
<token name="ATC_RGBA_EXPLICIT_ALPHA_AMD" value="0x8C93" />
<token name="ATC_RGBA_INTERPOLATED_ALPHA_AMD" value="0x87EE" />
</enum>
<enum name="AMDPerformanceMonitor">
<enum name="AMDPerformanceMonitor" type="int">
<token name="AMD_performance_monitor" value="1" />
<token name="COUNTER_RANGE_AMD" value="0x8BC1" />
<token name="COUNTER_TYPE_AMD" value="0x8BC0" />
@ -21,11 +21,11 @@
<token name="PERFMON_RESULT_SIZE_AMD" value="0x8BC5" />
<token name="UNSIGNED_INT64_AMD" value="0x8BC2" />
</enum>
<enum name="AMDProgramBinaryZ400">
<enum name="AMDProgramBinaryZ400" type="int">
<token name="AMD_program_binary_Z400" value="1" />
<token name="Z400_BINARY_AMD" value="0x8740" />
</enum>
<enum name="BeginMode">
<enum name="BeginMode" type="int">
<token name="LINE_LOOP" value="0x0002" />
<token name="LINE_STRIP" value="0x0003" />
<token name="LINES" value="0x0001" />
@ -34,12 +34,12 @@
<token name="TRIANGLE_STRIP" value="0x0005" />
<token name="TRIANGLES" value="0x0004" />
</enum>
<enum name="BlendEquationSeparate">
<enum name="BlendEquationSeparate" type="int">
<token name="BLEND_EQUATION" value="0x8009" />
<token name="BLEND_EQUATION_ALPHA" value="0x883D" />
<token name="FUNC_ADD" value="0x8006" />
</enum>
<enum name="BlendingFactorDest">
<enum name="BlendingFactorDest" type="int">
<token name="DST_ALPHA" value="0x0304" />
<token name="ONE" value="1" />
<token name="ONE_MINUS_DST_ALPHA" value="0x0305" />
@ -49,20 +49,20 @@
<token name="SRC_COLOR" value="0x0300" />
<token name="ZERO" value="0" />
</enum>
<enum name="BlendingFactorSrc">
<enum name="BlendingFactorSrc" type="int">
<token name="DST_COLOR" value="0x0306" />
<token name="ONE_MINUS_DST_COLOR" value="0x0307" />
<token name="SRC_ALPHA_SATURATE" value="0x0308" />
</enum>
<enum name="BlendSubtract">
<enum name="BlendSubtract" type="int">
<token name="FUNC_REVERSE_SUBTRACT" value="0x800B" />
<token name="FUNC_SUBTRACT" value="0x800A" />
</enum>
<enum name="Boolean">
<enum name="Boolean" type="int">
<token name="FALSE" value="0" />
<token name="TRUE" value="1" />
</enum>
<enum name="BufferObjects">
<enum name="BufferObjects" type="int">
<token name="ARRAY_BUFFER" value="0x8892" />
<token name="ARRAY_BUFFER_BINDING" value="0x8894" />
<token name="BUFFER_SIZE" value="0x8764" />
@ -74,17 +74,17 @@
<token name="STATIC_DRAW" value="0x88E4" />
<token name="STREAM_DRAW" value="0x88E0" />
</enum>
<enum name="ClearBufferMask">
<enum name="ClearBufferMask" type="int">
<token name="COLOR_BUFFER_BIT" value="0x00004000" />
<token name="DEPTH_BUFFER_BIT" value="0x00000100" />
<token name="STENCIL_BUFFER_BIT" value="0x00000400" />
</enum>
<enum name="CullFaceMode">
<enum name="CullFaceMode" type="int">
<token name="BACK" value="0x0405" />
<token name="FRONT" value="0x0404" />
<token name="FRONT_AND_BACK" value="0x0408" />
</enum>
<enum name="DataType">
<enum name="DataType" type="int">
<token name="BYTE" value="0x1400" />
<token name="FIXED" value="0x140C" />
<token name="FLOAT" value="0x1406" />
@ -94,7 +94,7 @@
<token name="UNSIGNED_INT" value="0x1405" />
<token name="UNSIGNED_SHORT" value="0x1403" />
</enum>
<enum name="EnableCap">
<enum name="EnableCap" type="int">
<token name="BLEND" value="0x0BE2" />
<token name="CULL_FACE" value="0x0B44" />
<token name="DEPTH_TEST" value="0x0B71" />
@ -106,27 +106,27 @@
<token name="STENCIL_TEST" value="0x0B90" />
<token name="TEXTURE_2D" value="0x0DE1" />
</enum>
<enum name="ErrorCode">
<enum name="ErrorCode" type="int">
<token name="INVALID_ENUM" value="0x0500" />
<token name="INVALID_OPERATION" value="0x0502" />
<token name="INVALID_VALUE" value="0x0501" />
<token name="NO_ERROR" value="0" />
<token name="OUT_OF_MEMORY" value="0x0505" />
</enum>
<enum name="EXTTextureFilterAnisotropic">
<enum name="EXTTextureFilterAnisotropic" type="int">
<token name="EXT_texture_filter_anisotropic" value="1" />
<token name="MAX_TEXTURE_MAX_ANISOTROPY_EXT" value="0x84FF" />
<token name="TEXTURE_MAX_ANISOTROPY_EXT" value="0x84FE" />
</enum>
<enum name="EXTTextureFormatBGRA8888">
<enum name="EXTTextureFormatBGRA8888" type="int">
<token name="BGRA" value="0x80E1" />
<token name="EXT_texture_format_BGRA8888" value="1" />
</enum>
<enum name="EXTTextureType2101010REV">
<enum name="EXTTextureType2101010REV" type="int">
<token name="EXT_texture_type_2_10_10_10_REV" value="1" />
<token name="UNSIGNED_INT_2_10_10_10_REV_EXT" value="0x8368" />
</enum>
<enum name="FramebufferObject">
<enum name="FramebufferObject" type="int">
<token name="COLOR_ATTACHMENT0" value="0x8CE0" />
<token name="DEPTH_ATTACHMENT" value="0x8D00" />
<token name="DEPTH_COMPONENT16" value="0x81A5" />
@ -162,11 +162,11 @@
<token name="STENCIL_INDEX" value="0x1901" />
<token name="STENCIL_INDEX8" value="0x8D48" />
</enum>
<enum name="FrontFaceDirection">
<enum name="FrontFaceDirection" type="int">
<token name="CCW" value="0x0901" />
<token name="CW" value="0x0900" />
</enum>
<enum name="GetPName">
<enum name="GetPName" type="int">
<token name="ALIASED_LINE_WIDTH_RANGE" value="0x846E" />
<token name="ALIASED_POINT_SIZE_RANGE" value="0x846D" />
<token name="ALPHA_BITS" value="0x0D55" />
@ -214,42 +214,42 @@
<token name="UNPACK_ALIGNMENT" value="0x0CF5" />
<token name="VIEWPORT" value="0x0BA2" />
</enum>
<enum name="GetTextureParameter">
<enum name="GetTextureParameter" type="int">
<token name="COMPRESSED_TEXTURE_FORMATS" value="0x86A3" />
<token name="NUM_COMPRESSED_TEXTURE_FORMATS" value="0x86A2" />
</enum>
<enum name="HintMode">
<enum name="HintMode" type="int">
<token name="DONT_CARE" value="0x1100" />
<token name="FASTEST" value="0x1101" />
<token name="NICEST" value="0x1102" />
</enum>
<enum name="HintTarget">
<enum name="HintTarget" type="int">
<token name="GENERATE_MIPMAP_HINT" value="0x8192" />
</enum>
<enum name="IMGReadFormat">
<enum name="IMGReadFormat" type="int">
<token name="BGRA" value="0x80E1" />
<token name="IMG_read_format" value="1" />
<token name="UNSIGNED_SHORT_1_5_5_5_REV" value="0x8366" />
<token name="UNSIGNED_SHORT_4_4_4_4_REV" value="0x8365" />
</enum>
<enum name="IMGTextureCompressionPvrtc">
<enum name="IMGTextureCompressionPvrtc" type="int">
<token name="COMPRESSED_RGB_PVRTC_2BPPV1_IMG" value="0x8C01" />
<token name="COMPRESSED_RGB_PVRTC_4BPPV1_IMG" value="0x8C00" />
<token name="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG" value="0x8C03" />
<token name="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG" value="0x8C02" />
<token name="IMG_texture_compression_pvrtc" value="1" />
</enum>
<enum name="NVFence">
<enum name="NVFence" type="int">
<token name="ALL_COMPLETED_NV" value="0x84F2" />
<token name="FENCE_CONDITION_NV" value="0x84F4" />
<token name="FENCE_STATUS_NV" value="0x84F3" />
<token name="NV_fence" value="1" />
</enum>
<enum name="OESCompressedETC1RGB8Texture">
<enum name="OESCompressedETC1RGB8Texture" type="int">
<token name="ETC1_RGB8_OES" value="0x8D64" />
<token name="OES_compressed_ETC1_RGB8_texture" value="1" />
</enum>
<enum name="OESCompressedPalettedTexture">
<enum name="OESCompressedPalettedTexture" type="int">
<token name="OES_compressed_paletted_texture" value="1" />
<token name="PALETTE4_R5_G6_B5_OES" value="0x8B92" />
<token name="PALETTE4_RGB5_A1_OES" value="0x8B94" />
@ -262,66 +262,66 @@
<token name="PALETTE8_RGBA4_OES" value="0x8B98" />
<token name="PALETTE8_RGBA8_OES" value="0x8B96" />
</enum>
<enum name="OESDepth24">
<enum name="OESDepth24" type="int">
<token name="DEPTH_COMPONENT24_OES" value="0x81A6" />
<token name="OES_depth24" value="1" />
</enum>
<enum name="OESDepth32">
<enum name="OESDepth32" type="int">
<token name="DEPTH_COMPONENT32_OES" value="0x81A7" />
<token name="OES_depth32" value="1" />
</enum>
<enum name="OESDepthTexture">
<enum name="OESDepthTexture" type="int">
<token name="OES_depth_texture" value="1" />
</enum>
<enum name="OESEGLImage">
<enum name="OESEGLImage" type="int">
<token name="OES_EGL_image" value="1" />
</enum>
<enum name="OESElementIndexUint">
<enum name="OESElementIndexUint" type="int">
<token name="OES_element_index_uint" value="1" />
</enum>
<enum name="OESFboRenderMipmap">
<enum name="OESFboRenderMipmap" type="int">
<token name="OES_fbo_render_mipmap" value="1" />
</enum>
<enum name="OESFragmentPrecisionHigh">
<enum name="OESFragmentPrecisionHigh" type="int">
<token name="OES_fragment_precision_high" value="1" />
</enum>
<enum name="OESGetProgramBinary">
<enum name="OESGetProgramBinary" type="int">
<token name="NUM_PROGRAM_BINARY_FORMATS_OES" value="0x87FE" />
<token name="OES_get_program_binary" value="1" />
<token name="PROGRAM_BINARY_FORMATS_OES" value="0x87FF" />
<token name="PROGRAM_BINARY_LENGTH_OES" value="0x8741" />
</enum>
<enum name="OESMapbuffer">
<enum name="OESMapbuffer" type="int">
<token name="BUFFER_ACCESS_OES" value="0x88BB" />
<token name="BUFFER_MAP_POINTER_OES" value="0x88BD" />
<token name="BUFFER_MAPPED_OES" value="0x88BC" />
<token name="OES_mapbuffer" value="1" />
<token name="WRITE_ONLY_OES" value="0x88B9" />
</enum>
<enum name="OESPackedDepthStencil">
<enum name="OESPackedDepthStencil" type="int">
<token name="DEPTH_STENCIL_OES" value="0x84F9" />
<token name="DEPTH24_STENCIL8_OES" value="0x88F0" />
<token name="OES_packed_depth_stencil" value="1" />
<token name="UNSIGNED_INT_24_8_OES" value="0x84FA" />
</enum>
<enum name="OESRgb8Rgba8">
<enum name="OESRgb8Rgba8" type="int">
<token name="OES_rgb8_rgba8" value="1" />
<token name="RGB8_OES" value="0x8051" />
<token name="RGBA8_OES" value="0x8058" />
</enum>
<enum name="OESStandardDerivatives">
<enum name="OESStandardDerivatives" type="int">
<token name="FRAGMENT_SHADER_DERIVATIVE_HINT_OES" value="0x8B8B" />
<token name="OES_standard_derivatives" value="1" />
</enum>
<enum name="OESStencil1">
<enum name="OESStencil1" type="int">
<token name="OES_stencil1" value="1" />
<token name="STENCIL_INDEX1_OES" value="0x8D46" />
</enum>
<enum name="OESStencil4">
<enum name="OESStencil4" type="int">
<token name="OES_stencil4" value="1" />
<token name="STENCIL_INDEX4_OES" value="0x8D47" />
</enum>
<enum name="OESTexture3D">
<enum name="OESTexture3D" type="int">
<token name="FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES" value="0x8CD4" />
<token name="MAX_3D_TEXTURE_SIZE_OES" value="0x8073" />
<token name="OES_texture_3D" value="1" />
@ -330,34 +330,34 @@
<token name="TEXTURE_BINDING_3D_OES" value="0x806A" />
<token name="TEXTURE_WRAP_R_OES" value="0x8072" />
</enum>
<enum name="OESTextureFloat">
<enum name="OESTextureFloat" type="int">
<token name="OES_texture_float" value="1" />
</enum>
<enum name="OESTextureFloatLinear">
<enum name="OESTextureFloatLinear" type="int">
<token name="OES_texture_float_linear" value="1" />
</enum>
<enum name="OESTextureHalfFloat">
<enum name="OESTextureHalfFloat" type="int">
<token name="HALF_FLOAT_OES" value="0x8D61" />
<token name="OES_texture_half_float" value="1" />
</enum>
<enum name="OESTextureHalfFloatLinear">
<enum name="OESTextureHalfFloatLinear" type="int">
<token name="OES_texture_half_float_linear" value="1" />
</enum>
<enum name="OESTextureNpot">
<enum name="OESTextureNpot" type="int">
<token name="OES_texture_npot" value="1" />
</enum>
<enum name="OESVertexHalfFloat">
<enum name="OESVertexHalfFloat" type="int">
<token name="OES_vertex_half_float" value="1" />
</enum>
<enum name="OESVertexType1010102">
<enum name="OESVertexType1010102" type="int">
<token name="INT_10_10_10_2_OES" value="0x8DF7" />
<token name="OES_vertex_type_10_10_10_2" value="1" />
<token name="UNSIGNED_INT_10_10_10_2_OES" value="0x8DF6" />
</enum>
<enum name="OpenGLESCoreVersions">
<enum name="OpenGLESCoreVersions" type="int">
<token name="ES_VERSION_2_0" value="1" />
</enum>
<enum name="PixelFormat">
<enum name="PixelFormat" type="int">
<token name="ALPHA" value="0x1906" />
<token name="DEPTH_COMPONENT" value="0x1902" />
<token name="LUMINANCE" value="0x1909" />
@ -365,23 +365,23 @@
<token name="RGB" value="0x1907" />
<token name="RGBA" value="0x1908" />
</enum>
<enum name="PixelType">
<enum name="PixelType" type="int">
<token name="UNSIGNED_SHORT_4_4_4_4" value="0x8033" />
<token name="UNSIGNED_SHORT_5_5_5_1" value="0x8034" />
<token name="UNSIGNED_SHORT_5_6_5" value="0x8363" />
</enum>
<enum name="QCOMDriverControl">
<enum name="QCOMDriverControl" type="int">
<token name="QCOM_driver_control" value="1" />
</enum>
<enum name="QCOMPerfmonGlobalMode">
<enum name="QCOMPerfmonGlobalMode" type="int">
<token name="PERFMON_GLOBAL_MODE_QCOM" value="0x8FA0" />
<token name="QCOM_perfmon_global_mode" value="1" />
</enum>
<enum name="ReadFormat">
<enum name="ReadFormat" type="int">
<token name="IMPLEMENTATION_COLOR_READ_FORMAT" value="0x8B9B" />
<token name="IMPLEMENTATION_COLOR_READ_TYPE" value="0x8B9A" />
</enum>
<enum name="SeparateBlendFunctions">
<enum name="SeparateBlendFunctions" type="int">
<token name="BLEND_COLOR" value="0x8005" />
<token name="BLEND_DST_ALPHA" value="0x80CA" />
<token name="BLEND_DST_RGB" value="0x80C8" />
@ -392,11 +392,11 @@
<token name="ONE_MINUS_CONSTANT_ALPHA" value="0x8004" />
<token name="ONE_MINUS_CONSTANT_COLOR" value="0x8002" />
</enum>
<enum name="ShaderBinary">
<enum name="ShaderBinary" type="int">
<token name="NUM_SHADER_BINARY_FORMATS" value="0x8DF9" />
<token name="SHADER_BINARY_FORMATS" value="0x8DF8" />
</enum>
<enum name="ShaderPrecisionSpecifiedTypes">
<enum name="ShaderPrecisionSpecifiedTypes" type="int">
<token name="HIGH_FLOAT" value="0x8DF2" />
<token name="HIGH_INT" value="0x8DF5" />
<token name="LOW_FLOAT" value="0x8DF0" />
@ -404,7 +404,7 @@
<token name="MEDIUM_FLOAT" value="0x8DF1" />
<token name="MEDIUM_INT" value="0x8DF4" />
</enum>
<enum name="Shaders">
<enum name="Shaders" type="int">
<token name="ACTIVE_ATTRIBUTE_MAX_LENGTH" value="0x8B8A" />
<token name="ACTIVE_ATTRIBUTES" value="0x8B89" />
<token name="ACTIVE_UNIFORM_MAX_LENGTH" value="0x8B87" />
@ -426,13 +426,13 @@
<token name="VALIDATE_STATUS" value="0x8B83" />
<token name="VERTEX_SHADER" value="0x8B31" />
</enum>
<enum name="ShaderSource">
<enum name="ShaderSource" type="int">
<token name="COMPILE_STATUS" value="0x8B81" />
<token name="INFO_LOG_LENGTH" value="0x8B84" />
<token name="SHADER_COMPILER" value="0x8DFA" />
<token name="SHADER_SOURCE_LENGTH" value="0x8B88" />
</enum>
<enum name="StencilFunction">
<enum name="StencilFunction" type="int">
<token name="ALWAYS" value="0x0207" />
<token name="EQUAL" value="0x0202" />
<token name="GEQUAL" value="0x0206" />
@ -442,7 +442,7 @@
<token name="NEVER" value="0x0200" />
<token name="NOTEQUAL" value="0x0205" />
</enum>
<enum name="StencilOp">
<enum name="StencilOp" type="int">
<token name="DECR" value="0x1E03" />
<token name="DECR_WRAP" value="0x8508" />
<token name="INCR" value="0x1E02" />
@ -451,29 +451,29 @@
<token name="KEEP" value="0x1E00" />
<token name="REPLACE" value="0x1E01" />
</enum>
<enum name="StringName">
<enum name="StringName" type="int">
<token name="EXTENSIONS" value="0x1F03" />
<token name="RENDERER" value="0x1F01" />
<token name="VENDOR" value="0x1F00" />
<token name="VERSION" value="0x1F02" />
</enum>
<enum name="TextureMagFilter">
<enum name="TextureMagFilter" type="int">
<token name="LINEAR" value="0x2601" />
<token name="NEAREST" value="0x2600" />
</enum>
<enum name="TextureMinFilter">
<enum name="TextureMinFilter" type="int">
<token name="LINEAR_MIPMAP_LINEAR" value="0x2703" />
<token name="LINEAR_MIPMAP_NEAREST" value="0x2701" />
<token name="NEAREST_MIPMAP_LINEAR" value="0x2702" />
<token name="NEAREST_MIPMAP_NEAREST" value="0x2700" />
</enum>
<enum name="TextureParameterName">
<enum name="TextureParameterName" type="int">
<token name="TEXTURE_MAG_FILTER" value="0x2800" />
<token name="TEXTURE_MIN_FILTER" value="0x2801" />
<token name="TEXTURE_WRAP_S" value="0x2802" />
<token name="TEXTURE_WRAP_T" value="0x2803" />
</enum>
<enum name="TextureTarget">
<enum name="TextureTarget" type="int">
<token name="MAX_CUBE_MAP_TEXTURE_SIZE" value="0x851C" />
<token name="TEXTURE" value="0x1702" />
<token name="TEXTURE_BINDING_CUBE_MAP" value="0x8514" />
@ -485,7 +485,7 @@
<token name="TEXTURE_CUBE_MAP_POSITIVE_Y" value="0x8517" />
<token name="TEXTURE_CUBE_MAP_POSITIVE_Z" value="0x8519" />
</enum>
<enum name="TextureUnit">
<enum name="TextureUnit" type="int">
<token name="ACTIVE_TEXTURE" value="0x84E0" />
<token name="TEXTURE0" value="0x84C0" />
<token name="TEXTURE1" value="0x84C1" />
@ -520,12 +520,12 @@
<token name="TEXTURE8" value="0x84C8" />
<token name="TEXTURE9" value="0x84C9" />
</enum>
<enum name="TextureWrapMode">
<enum name="TextureWrapMode" type="int">
<token name="CLAMP_TO_EDGE" value="0x812F" />
<token name="MIRRORED_REPEAT" value="0x8370" />
<token name="REPEAT" value="0x2901" />
</enum>
<enum name="UniformTypes">
<enum name="UniformTypes" type="int">
<token name="BOOL" value="0x8B56" />
<token name="BOOL_VEC2" value="0x8B57" />
<token name="BOOL_VEC3" value="0x8B58" />
@ -542,7 +542,7 @@
<token name="SAMPLER_2D" value="0x8B5E" />
<token name="SAMPLER_CUBE" value="0x8B60" />
</enum>
<enum name="VertexArrays">
<enum name="VertexArrays" type="int">
<token name="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING" value="0x889F" />
<token name="VERTEX_ATTRIB_ARRAY_ENABLED" value="0x8622" />
<token name="VERTEX_ATTRIB_ARRAY_NORMALIZED" value="0x886A" />
@ -567,51 +567,51 @@
<function name="GenPerfMonitorsAMD" extension="AMD" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLsizei" name="n" flow="in" />
<param type="GLuint*" name="monitors" flow="in" />
<param type="GLuint*" name="monitors" flow="out" />
</function>
<function name="GetPerfMonitorCounterDataAMD" extension="AMD" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="monitor" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLsizei" name="dataSize" flow="in" />
<param type="GLuint*" name="data" flow="in" />
<param type="GLint*" name="bytesWritten" flow="in" />
<param type="GLuint*" name="data" flow="out" />
<param type="GLint*" name="bytesWritten" flow="out" />
</function>
<function name="GetPerfMonitorCounterInfoAMD" extension="AMD" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="group" flow="in" />
<param type="GLuint" name="counter" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="void*" name="data" flow="in" />
<param type="void*" name="data" flow="out" />
</function>
<function name="GetPerfMonitorCountersAMD" extension="AMD" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="group" flow="in" />
<param type="GLint*" name="numCounters" flow="in" />
<param type="GLint*" name="maxActiveCounters" flow="in" />
<param type="GLint*" name="numCounters" flow="out" />
<param type="GLint*" name="maxActiveCounters" flow="out" />
<param type="GLsizei" name="counterSize" flow="in" />
<param type="GLuint*" name="counters" flow="in" />
<param type="GLuint*" name="counters" flow="out" />
</function>
<function name="GetPerfMonitorCounterStringAMD" extension="AMD" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="group" flow="in" />
<param type="GLuint" name="counter" flow="in" />
<param type="GLsizei" name="bufSize" flow="in" />
<param type="GLsizei*" name="length" flow="in" />
<param type="char*" name="counterString" flow="in" />
<param type="GLsizei*" name="length" flow="out" />
<param type="char*" name="counterString" flow="out" />
</function>
<function name="GetPerfMonitorGroupsAMD" extension="AMD" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLint*" name="numGroups" flow="in" />
<param type="GLint*" name="numGroups" flow="out" />
<param type="GLsizei" name="groupsSize" flow="in" />
<param type="GLuint*" name="groups" flow="in" />
<param type="GLuint*" name="groups" flow="out" />
</function>
<function name="GetPerfMonitorGroupStringAMD" extension="AMD" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="group" flow="in" />
<param type="GLsizei" name="bufSize" flow="in" />
<param type="GLsizei*" name="length" flow="in" />
<param type="char*" name="groupString" flow="in" />
<param type="GLsizei*" name="length" flow="out" />
<param type="char*" name="groupString" flow="out" />
</function>
<function name="SelectPerfMonitorCountersAMD" extension="AMD" profile="" category="2.0" version="2.0">
<returns type="void" />
@ -891,7 +891,7 @@
<function name="GenBuffers" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLsizei" name="n" flow="in" />
<param type="GLuint*" name="buffers" flow="in" />
<param type="GLuint*" name="buffers" flow="out" />
</function>
<function name="GenerateMipmap" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
@ -900,60 +900,60 @@
<function name="GenFramebuffers" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLsizei" name="n" flow="in" />
<param type="GLuint*" name="framebuffers" flow="in" />
<param type="GLuint*" name="framebuffers" flow="out" />
</function>
<function name="GenRenderbuffers" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLsizei" name="n" flow="in" />
<param type="GLuint*" name="renderbuffers" flow="in" />
<param type="GLuint*" name="renderbuffers" flow="out" />
</function>
<function name="GenTextures" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLsizei" name="n" flow="in" />
<param type="GLuint*" name="textures" flow="in" />
<param type="GLuint*" name="textures" flow="out" />
</function>
<function name="GetActiveAttrib" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="program" flow="in" />
<param type="GLuint" name="index" flow="in" />
<param type="GLsizei" name="bufsize" flow="in" />
<param type="GLsizei*" name="length" flow="in" />
<param type="GLint*" name="size" flow="in" />
<param type="GLenum*" name="type" flow="in" />
<param type="char*" name="name" flow="in" />
<param type="GLsizei*" name="length" flow="out" />
<param type="GLint*" name="size" flow="out" />
<param type="GLenum*" name="type" flow="out" />
<param type="char*" name="name" flow="out" />
</function>
<function name="GetActiveUniform" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="program" flow="in" />
<param type="GLuint" name="index" flow="in" />
<param type="GLsizei" name="bufsize" flow="in" />
<param type="GLsizei*" name="length" flow="in" />
<param type="GLint*" name="size" flow="in" />
<param type="GLenum*" name="type" flow="in" />
<param type="char*" name="name" flow="in" />
<param type="GLsizei*" name="length" flow="out" />
<param type="GLint*" name="size" flow="out" />
<param type="GLenum*" name="type" flow="out" />
<param type="char*" name="name" flow="out" />
</function>
<function name="GetAttachedShaders" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="program" flow="in" />
<param type="GLsizei" name="maxcount" flow="in" />
<param type="GLsizei*" name="count" flow="in" />
<param type="GLuint*" name="shaders" flow="in" />
<param type="GLsizei*" name="count" flow="out" />
<param type="GLuint*" name="shaders" flow="out" />
</function>
<function name="GetAttribLocation" extension="Core" profile="" category="2.0" version="2.0">
<returns type="int" />
<param type="GLuint" name="program" flow="in" />
<param type="char*" name="name" flow="in" />
<param type="char*" name="name" flow="out" />
</function>
<function name="GetBooleanv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLboolean*" name="params" flow="in" />
<param type="GLboolean*" name="params" flow="out" />
</function>
<function name="GetBufferParameteriv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLenum" name="target" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLint*" name="params" flow="in" />
<param type="GLint*" name="params" flow="out" />
</function>
<function name="GetError" extension="Core" profile="" category="2.0" version="2.0">
<returns type="GLenum" />
@ -961,65 +961,65 @@
<function name="GetFloatv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLfloat*" name="params" flow="in" />
<param type="GLfloat*" name="params" flow="out" />
</function>
<function name="GetFramebufferAttachmentParameteriv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLenum" name="target" flow="in" />
<param type="GLenum" name="attachment" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLint*" name="params" flow="in" />
<param type="GLint*" name="params" flow="out" />
</function>
<function name="GetIntegerv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLint*" name="params" flow="in" />
<param type="GLint*" name="params" flow="out" />
</function>
<function name="GetProgramInfoLog" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="program" flow="in" />
<param type="GLsizei" name="bufsize" flow="in" />
<param type="GLsizei*" name="length" flow="in" />
<param type="char*" name="infolog" flow="in" />
<param type="GLsizei*" name="length" flow="out" />
<param type="char*" name="infolog" flow="out" />
</function>
<function name="GetProgramiv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="program" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLint*" name="params" flow="in" />
<param type="GLint*" name="params" flow="out" />
</function>
<function name="GetRenderbufferParameteriv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLenum" name="target" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLint*" name="params" flow="in" />
<param type="GLint*" name="params" flow="out" />
</function>
<function name="GetShaderInfoLog" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="shader" flow="in" />
<param type="GLsizei" name="bufsize" flow="in" />
<param type="GLsizei*" name="length" flow="in" />
<param type="char*" name="infolog" flow="in" />
<param type="GLsizei*" name="length" flow="out" />
<param type="char*" name="infolog" flow="out" />
</function>
<function name="GetShaderiv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="shader" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLint*" name="params" flow="in" />
<param type="GLint*" name="params" flow="out" />
</function>
<function name="GetShaderPrecisionFormat" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLenum" name="shadertype" flow="in" />
<param type="GLenum" name="precisiontype" flow="in" />
<param type="GLint*" name="range" flow="in" />
<param type="GLint*" name="precision" flow="in" />
<param type="GLint*" name="range" flow="out" />
<param type="GLint*" name="precision" flow="out" />
</function>
<function name="GetShaderSource" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="shader" flow="in" />
<param type="GLsizei" name="bufsize" flow="in" />
<param type="GLsizei*" name="length" flow="in" />
<param type="char*" name="source" flow="in" />
<param type="GLsizei*" name="length" flow="out" />
<param type="char*" name="source" flow="out" />
</function>
<function name="GetString" extension="Core" profile="" category="2.0" version="2.0">
<returns type="GLubyte*" />
@ -1029,48 +1029,48 @@
<returns type="void" />
<param type="GLenum" name="target" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLfloat*" name="params" flow="in" />
<param type="GLfloat*" name="params" flow="out" />
</function>
<function name="GetTexParameteriv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLenum" name="target" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLint*" name="params" flow="in" />
<param type="GLint*" name="params" flow="out" />
</function>
<function name="GetUniformfv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="program" flow="in" />
<param type="GLint" name="location" flow="in" />
<param type="GLfloat*" name="params" flow="in" />
<param type="GLfloat*" name="params" flow="out" />
</function>
<function name="GetUniformiv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="program" flow="in" />
<param type="GLint" name="location" flow="in" />
<param type="GLint*" name="params" flow="in" />
<param type="GLint*" name="params" flow="out" />
</function>
<function name="GetUniformLocation" extension="Core" profile="" category="2.0" version="2.0">
<returns type="int" />
<param type="GLuint" name="program" flow="in" />
<param type="char*" name="name" flow="in" />
<param type="char*" name="name" flow="out" />
</function>
<function name="GetVertexAttribfv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="index" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLfloat*" name="params" flow="in" />
<param type="GLfloat*" name="params" flow="out" />
</function>
<function name="GetVertexAttribiv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="index" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="GLint*" name="params" flow="in" />
<param type="GLint*" name="params" flow="out" />
</function>
<function name="GetVertexAttribPointerv" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="index" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="void**" name="pointer" flow="in" />
<param type="void**" name="pointer" flow="out" />
</function>
<function name="Hint" extension="Core" profile="" category="2.0" version="2.0">
<returns type="void" />
@ -1456,12 +1456,12 @@
<function name="GenFencesNV" extension="NV" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLsizei" name="n" flow="in" />
<param type="GLuint*" name="fences" flow="in" />
<param type="GLuint*" name="fences" flow="out" />
</function>
<function name="GetFenceivNV" extension="NV" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="fence" flow="in" />
<param type="GLint*" name="params" flow="in" />
<param type="GLint*" name="params" flow="out" />
</function>
<function name="IsFenceNV" extension="NV" profile="" category="2.0" version="2.0">
<returns type="GLboolean" />
@ -1537,15 +1537,15 @@
<returns type="void" />
<param type="GLenum" name="target" flow="in" />
<param type="GLenum" name="pname" flow="in" />
<param type="void**" name="params" flow="in" />
<param type="void**" name="params" flow="out" />
</function>
<function name="GetProgramBinaryOES" extension="OES" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="program" flow="in" />
<param type="GLsizei" name="bufSize" flow="in" />
<param type="GLsizei*" name="length" flow="in" />
<param type="GLenum*" name="binaryFormat" flow="in" />
<param type="void*" name="binary" flow="in" />
<param type="GLsizei*" name="length" flow="out" />
<param type="GLenum*" name="binaryFormat" flow="out" />
<param type="void*" name="binary" flow="out" />
</function>
<function name="MapBufferOES" extension="OES" profile="" category="2.0" version="2.0">
<returns type="void*" />
@ -1600,15 +1600,15 @@
</function>
<function name="GetDriverControlsQCOM" extension="QCOM" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLint*" name="num" flow="in" />
<param type="GLint*" name="num" flow="out" />
<param type="GLsizei" name="size" flow="in" />
<param type="GLuint*" name="driverControls" flow="in" />
<param type="GLuint*" name="driverControls" flow="out" />
</function>
<function name="GetDriverControlStringQCOM" extension="QCOM" profile="" category="2.0" version="2.0">
<returns type="void" />
<param type="GLuint" name="driverControl" flow="in" />
<param type="GLsizei" name="bufSize" flow="in" />
<param type="GLsizei*" name="length" flow="in" />
<param type="char*" name="driverControlString" flow="in" />
<param type="GLsizei*" name="length" flow="out" />
<param type="char*" name="driverControlString" flow="out" />
</function>
</signatures>

View file

@ -142,7 +142,7 @@
</function>
<function name="GetVertexAttribPointer" extension="Core">
<param name="pname"><type>VertexAttribPointerType</type></param>
<param name="pname"><type>VertexAttribPointerParameter</type></param>
</function>
<!-- Version 3.0 -->

View file

@ -8,6 +8,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml.XPath;
@ -132,15 +133,12 @@ namespace Bind.Structures
#region public bool NeedsWrapper
/// <summary>
/// Indicates whether this function needs to be wrapped with a Marshaling function.
/// Gets a value that indicates whether this function needs to be wrapped with a Marshaling function.
/// This flag is set if a function contains an Array parameter, or returns
/// an Array or string.
/// </summary>
public bool NeedsWrapper
{
//get { return _needs_wrapper; }
//set { _needs_wrapper = value; }
get
{
// TODO: Add special cases for (Get)ShaderSource.
@ -235,7 +233,7 @@ namespace Bind.Structures
public ParameterCollection Parameters
{
get { return _parameters; }
protected set { _parameters = value; }
set { _parameters = value; }
}
#endregion
@ -415,21 +413,20 @@ namespace Bind.Structures
void CreateWrappers()
{
List<Function> wrappers = new List<Function>();
if (!NeedsWrapper)
{
// No special wrapper needed - just call this delegate:
Function f = new Function(this);
f.CreateBody(false);
CreateNormalWrappers(wrappers);
wrappers.Add(f);
}
else
// Generate wrappers using the untyped enum parameters, if necessary.
if ((Settings.Compatibility & Settings.Legacy.KeepUntypedEnums) != 0)
{
Function f = new Function(this);
f.WrapReturnType();
f.WrapParameters(wrappers);
CreateUntypedEnumWrappers(wrappers);
}
// Add CLS-compliant overloads for non-CLS compliant wrappers.
CreateCLSCompliantWrappers(wrappers);
}
private static void CreateCLSCompliantWrappers(List<Function> wrappers)
{
// If the function is not CLS-compliant (e.g. it contains unsigned parameters)
// we need to create a CLS-Compliant overload. However, we should only do this
// iff the opengl function does not contain unsigned/signed overloads itself
@ -445,20 +442,47 @@ namespace Bind.Structures
cls.Body.Clear();
cls.CreateBody(true);
bool somethingChanged = false;
bool modified = false;
for (int i = 0; i < f.Parameters.Count; i++)
{
cls.Parameters[i].CurrentType = cls.Parameters[i].GetCLSCompliantType();
if (cls.Parameters[i].CurrentType != f.Parameters[i].CurrentType)
somethingChanged = true;
modified = true;
}
if (somethingChanged)
if (modified)
Function.Wrappers.AddChecked(cls);
}
}
}
private void CreateUntypedEnumWrappers(List<Function> wrappers)
{
Function f = new Function(this);
var modified = false;
f.Parameters = new ParameterCollection(f.Parameters.Select(p =>
{
if (p.IsEnum && p.CurrentType != Settings.CompleteEnumName)
{
p.CurrentType = Settings.CompleteEnumName;
modified = true;
}
return p;
}));
if (modified)
{
f.WrapReturnType();
f.WrapParameters(wrappers);
}
}
void CreateNormalWrappers(List<Function> wrappers)
{
Function f = new Function(this);
f.WrapReturnType();
f.WrapParameters(wrappers);
}
#endregion
#region TrimName
@ -529,28 +553,28 @@ namespace Bind.Structures
if (ReturnType.CurrentType.ToLower().Contains("void") && ReturnType.Pointer != 0)
{
ReturnType.CurrentType = "IntPtr";
ReturnType.QualifiedType = "System.IntPtr";
ReturnType.WrapperType = WrapperTypes.GenericReturnType;
}
if (ReturnType.CurrentType.ToLower().Contains("string"))
{
ReturnType.CurrentType = "IntPtr";
ReturnType.QualifiedType = "System.IntPtr";
ReturnType.WrapperType = WrapperTypes.StringReturnType;
}
if (ReturnType.CurrentType.ToLower().Contains("object"))
{
ReturnType.CurrentType = "IntPtr";
ReturnType.QualifiedType = "System.IntPtr";
ReturnType.WrapperType |= WrapperTypes.GenericReturnType;
}
if (ReturnType.CurrentType.Contains("GLenum"))
{
if ((Settings.Compatibility & Settings.Legacy.ConstIntEnums) == Settings.Legacy.None)
ReturnType.CurrentType = String.Format("{0}.{1}", Settings.EnumsOutput, Settings.CompleteEnumName);
ReturnType.QualifiedType = String.Format("{0}.{1}", Settings.EnumsOutput, Settings.CompleteEnumName);
else
ReturnType.CurrentType = "int";
ReturnType.QualifiedType = "int";
}
ReturnType.CurrentType = ReturnType.GetCLSCompliantType();

View file

@ -52,9 +52,11 @@ namespace Bind.Structures
}
public Function(Function f)
: this((Delegate)f)
: this(f.WrappedDelegate)
{
Body = new FunctionBody(f.Body);
Parameters = new ParameterCollection(f.Parameters);
ReturnType = new Type(f.ReturnType);
Body.AddRange(f.Body);
}
#endregion
@ -297,7 +299,6 @@ namespace Bind.Structures
}
else
{
//wrappers.Add(DefaultWrapper(new Function(this)));
f = new Function(this);
f.CreateBody(false);
wrappers.Add(f);
@ -379,7 +380,7 @@ namespace Bind.Structures
switch (ReturnType.WrapperType)
{
case WrapperTypes.StringReturnType:
ReturnType.CurrentType = "string";
ReturnType.QualifiedType = "String";
break;
}
}
@ -388,10 +389,10 @@ namespace Bind.Structures
#region public void CreateBody(bool wantCLSCompliance)
readonly List<string> handle_statements = new List<string>();
readonly List<string> handle_release_statements = new List<string>();
readonly List<string> fixed_statements = new List<string>();
readonly List<string> assign_statements = new List<string>();
readonly static List<string> handle_statements = new List<string>();
readonly static List<string> handle_release_statements = new List<string>();
readonly static List<string> fixed_statements = new List<string>();
readonly static List<string> assign_statements = new List<string>();
// For example, if parameter foo has indirection level = 1, then it
// is consumed as 'foo*' in the fixed_statements and the call string.
@ -428,7 +429,7 @@ namespace Bind.Structures
{
assign_statements.Add(String.Format(
"{0} = ({1}){0}_ptr.Target;",
p.Name, p.CurrentType));
p.Name, p.QualifiedType));
}
// Note! The following line modifies f.Parameters, *not* this.Parameters
@ -441,7 +442,7 @@ namespace Bind.Structures
// A fixed statement is issued for all non-generic pointers, arrays and references.
fixed_statements.Add(String.Format(
"fixed ({0}{3} {1} = {2})",
wantCLSCompliance && !p.CLSCompliant ? p.GetCLSCompliantType() : p.CurrentType,
wantCLSCompliance && !p.CLSCompliant ? p.GetCLSCompliantType() : p.QualifiedType,
p.Name + "_ptr",
p.Array > 0 ? p.Name : "&" + p.Name,
indirection_levels[p.IndirectionLevel]));
@ -504,16 +505,36 @@ namespace Bind.Structures
f.Body.Indent();
}
// Hack: When creating untyped enum wrappers, it is possible that the wrapper uses an "All"
// enum, while the delegate uses a specific enum (e.g. "TextureUnit"). For this reason, we need
// to modify the parameters before generating the call string.
// Note: We cannot generate a callstring using WrappedDelegate directly, as its parameters will
// typically be different than the parameters of the wrapper. We need to modify the parameters
// of the wrapper directly.
if ((Settings.Compatibility & Settings.Legacy.KeepUntypedEnums) != 0)
{
int parameter_index = -1; // Used for comparing wrapper parameters with delegate parameters
foreach (Parameter p in f.Parameters)
{
parameter_index++;
if (p.IsEnum && p.QualifiedType != f.WrappedDelegate.Parameters[parameter_index].QualifiedType)
{
p.QualifiedType = f.WrappedDelegate.Parameters[parameter_index].QualifiedType;
}
}
}
if (assign_statements.Count > 0)
{
// Call function
string method_call = f.CallString();
if (f.ReturnType.CurrentType.ToLower().Contains("void"))
f.Body.Add(String.Format("{0};", f.CallString()));
f.Body.Add(String.Format("{0};", method_call));
else if (ReturnType.CurrentType.ToLower().Contains("string"))
f.Body.Add(String.Format("{0} {1} = Marshal.PtrToStringAnsi({2});",
ReturnType.CurrentType, "retval", CallString()));
ReturnType.QualifiedType, "retval", method_call));
else
f.Body.Add(String.Format("{0} {1} = {2};", f.ReturnType.CurrentType, "retval", f.CallString()));
f.Body.Add(String.Format("{0} {1} = {2};", f.ReturnType.QualifiedType, "retval", method_call));
// Assign out parameters
f.Body.AddRange(assign_statements);
@ -526,14 +547,12 @@ namespace Bind.Structures
}
else
{
//if (Name == "EnqueueCopyBufferToImage")
// Debugger.Break();
// Call function and return
if (f.ReturnType.CurrentType.ToLower().Contains("void"))
f.Body.Add(String.Format("{0};", f.CallString()));
else if (ReturnType.CurrentType.ToLower().Contains("string"))
f.Body.Add(String.Format("return System.Runtime.InteropServices.Marshal.PtrToStringAnsi({0});",
CallString()));
f.CallString()));
else
f.Body.Add(String.Format("return {0};", f.CallString()));
}

View file

@ -244,7 +244,7 @@ namespace Bind.Structures
}
else
{
sb.Append(CurrentType);
sb.Append(base.ToString());
if (Array > 0)
{
sb.Append("[");
@ -256,7 +256,7 @@ namespace Bind.Structures
}
else
{
sb.Append(CurrentType);
sb.Append(base.ToString());
for (int i = 0; i < Pointer; i++)
sb.Append("*");
if (Array > 0)
@ -293,9 +293,9 @@ namespace Bind.Structures
if (CurrentType.ToLower().Contains("string"))
{
// string* -> [In] String[] or [Out] StringBuilder[]
CurrentType =
QualifiedType =
Flow == FlowDirection.Out ?
"System.Text.StringBuilder[]" :
"StringBuilder[]" :
"String[]";
Pointer = 0;
@ -304,9 +304,9 @@ namespace Bind.Structures
else if (CurrentType.ToLower().Contains("char"))
{
// char* -> [In] String or [Out] StringBuilder
CurrentType =
QualifiedType =
Flow == FlowDirection.Out ?
"System.Text.StringBuilder" :
"StringBuilder" :
"String";
Pointer = 0;
@ -385,6 +385,12 @@ namespace Bind.Structures
}
}
public ParameterCollection(IEnumerable<Parameter> parameters)
{
foreach (Parameter p in parameters)
Add(new Parameter(p));
}
#endregion
#region void BuildCache()
@ -581,24 +587,24 @@ namespace Bind.Structures
foreach (Parameter p in this)
{
if (p.Unchecked)
sb.Append("unchecked((" + p.CurrentType + ")");
sb.Append("unchecked((" + p.QualifiedType + ")");
if (!p.Generic && p.CurrentType != "object")
{
if (p.CurrentType.ToLower().Contains("string"))
{
sb.Append(String.Format("({0}{1})",
p.CurrentType, (p.Array > 0) ? "[]" : ""));
p.QualifiedType, (p.Array > 0) ? "[]" : ""));
}
else if (p.IndirectionLevel != 0)
{
if (((Settings.Compatibility & Settings.Legacy.TurnVoidPointersToIntPtr) != Settings.Legacy.None) &&
p.Pointer != 0 && p.CurrentType.Contains("void"))
sb.Append("(IntPtr)");
sb.Append("(System.IntPtr)");
else
{
sb.Append("(");
sb.Append(p.CurrentType);
sb.Append(p.QualifiedType);
for (int i = 0; i < p.IndirectionLevel; i++)
sb.Append("*");
sb.Append(")");
@ -606,7 +612,7 @@ namespace Bind.Structures
}
else
{
sb.Append(String.Format("({0})", p.CurrentType));
sb.Append(String.Format("({0})", p.QualifiedType));
}
}

View file

@ -18,6 +18,8 @@ namespace Bind.Structures
private static bool typesLoaded;
string current_qualifier = "", previous_qualifier = "";
#region internal static void Initialize(string glTypes, string csTypes)
internal static void Initialize(string glTypes, string csTypes)
@ -54,8 +56,9 @@ namespace Bind.Structures
{
if (t != null)
{
CurrentType = t.CurrentType;
QualifiedType = t.QualifiedType; // Covers current type and qualifier
PreviousType = t.PreviousType;
PreviousQualifier = t.PreviousQualifier;
WrapperType = t.WrapperType;
Array = t.Array;
Pointer = t.Pointer;
@ -66,6 +69,44 @@ namespace Bind.Structures
#endregion
public string CurrentQualifier
{
get { return current_qualifier; }
set { PreviousQualifier = CurrentQualifier; current_qualifier = value; }
}
public string PreviousQualifier
{
get { return previous_qualifier; }
private set { previous_qualifier = value; }
}
public string QualifiedType {
get
{
if (!String.IsNullOrEmpty(CurrentQualifier))
return String.Format("{0}.{1}", CurrentQualifier, CurrentType);
else
return CurrentType;
}
set
{
if (String.IsNullOrEmpty(value))
throw new ArgumentException();
int qualifier_end = value.LastIndexOf('.');
if (qualifier_end > -1)
{
CurrentQualifier = value.Substring(0, qualifier_end);
CurrentType = value.Substring(qualifier_end + 1);
}
else
{
CurrentType = value;
}
}
}
#region public string CurrentType
string type;
@ -84,6 +125,9 @@ namespace Bind.Structures
}
set
{
if (String.IsNullOrEmpty(value))
throw new ArgumentException();
if (!String.IsNullOrEmpty(type))
PreviousType = type;
if (!String.IsNullOrEmpty(value))
@ -106,10 +150,9 @@ namespace Bind.Structures
public string PreviousType
{
get { return _previous_type; }
set { _previous_type = value; }
private set { _previous_type = value; }
}
#endregion
#region public bool Reference
@ -161,6 +204,16 @@ namespace Bind.Structures
#endregion
// Returns true if parameter is an enum.
public bool IsEnum
{
get
{
return Enum.GLEnums.ContainsKey(CurrentType) ||
Enum.AuxEnums.ContainsKey(CurrentType);
}
}
#region IndirectionLevel
// Gets the the level of indirection for this type. For example,
@ -291,7 +344,7 @@ namespace Bind.Structures
public override string ToString()
{
return CurrentType;
return QualifiedType;
}
#endregion
@ -316,13 +369,14 @@ namespace Bind.Structures
if ((normal || aux) && @enum.Name != "GLenum" && @enum.Name != "Boolean")
{
if ((Settings.Compatibility & Settings.Legacy.ConstIntEnums) != Settings.Legacy.None)
CurrentType = "int";
QualifiedType = "int";
else
{
#warning "Unecessary code"
if (normal)
CurrentType = CurrentType.Insert(0, String.Format("{0}.", Settings.EnumsOutput));
QualifiedType = CurrentType.Insert(0, String.Format("{0}.", Settings.EnumsOutput));
else if (aux)
CurrentType = CurrentType.Insert(0, String.Format("{0}.", Settings.EnumsAuxOutput));
QualifiedType = CurrentType.Insert(0, String.Format("{0}.", Settings.EnumsAuxOutput));
}
}
else if (GLTypes.TryGetValue(CurrentType, out s))
@ -333,23 +387,30 @@ namespace Bind.Structures
{
if ((Settings.Compatibility & Settings.Legacy.ConstIntEnums) != Settings.Legacy.None)
{
CurrentType = "int";
QualifiedType = "int";
}
else
{
// Better match: enum.Name == function.Category (e.g. GL_VERSION_1_1 etc)
if (Enum.GLEnums.ContainsKey(category))
{
CurrentType = String.Format("{0}.{1}", Settings.EnumsOutput, Enum.TranslateName(category));
QualifiedType = String.Format("{0}.{1}", Settings.EnumsOutput, Enum.TranslateName(category));
}
else
{
CurrentType = String.Format("{0}.{1}", Settings.EnumsOutput, Settings.CompleteEnumName);
QualifiedType = String.Format("{0}.{1}", Settings.EnumsOutput, Settings.CompleteEnumName);
}
}
}
else
{
// A few translations for consistency
switch (CurrentType.ToLower())
{
case "string": QualifiedType = "String"; break;
}
#warning "Stale code"
// This is not enum, default translation:
if (CurrentType == "PIXELFORMATDESCRIPTOR" || CurrentType == "LAYERPLANEDESCRIPTOR" ||
CurrentType == "GLYPHMETRICSFLOAT")
@ -370,10 +431,9 @@ namespace Bind.Structures
{
//p.Pointer = false;
//p.Reference = true;
}
else
CurrentType = s;
QualifiedType = s;
}
}
@ -386,7 +446,15 @@ namespace Bind.Structures
// of type ErrorCodes should also be overriden to ErrorCode.
XPathNavigator enum_override = overrides.SelectSingleNode(String.Format("/overrides/replace/enum[@name='{0}']/name", CurrentType));
if (enum_override != null)
CurrentType = enum_override.Value;
{
// For consistency - many overrides use string instead of String.
if (enum_override.Value == "string")
QualifiedType = "String";
else if (enum_override.Value == "StringBuilder")
QualifiedType = "StringBuilder";
else
CurrentType = enum_override.Value;
}
if (CurrentType == "IntPtr" && String.IsNullOrEmpty(PreviousType))
Pointer = 0;

View file

@ -255,7 +255,10 @@ namespace CHeaderToXML
(tokens.Contains("unsigned") && !param_type.StartsWith("byte") ? "u" : "") + // Make sure we don't ignore the unsigned part of unsigned parameters (e.g. unsigned int -> uint)
param_type.Replace("*", "") + String.Join("", pointers, 0, indirection_level), // Normalize pointer indirection level (place as many asterisks as in indirection_level variable)
Count = has_array_size ? Int32.Parse(array_size.Match(param_name).Value.Trim('[', ']')) : 0,
Flow = param_name.EndsWith("ret") ? "out" : "in"
Flow =
param_name.EndsWith("ret") ||
((funcname.StartsWith("Get") || funcname.StartsWith("Gen")) && indirection_level > 0) ?
"out" : "in"
}
};

View file

@ -60,7 +60,7 @@ namespace Examples.Tutorial
Color color = Color.MidnightBlue;
GL.ClearColor(color.R, color.G, color.B, color.A);
GL.Enable((All)EnableCap.DepthTest);
GL.Enable(EnableCap.DepthTest);
}
#endregion
@ -108,7 +108,7 @@ namespace Examples.Tutorial
/// </summary>
protected override void OnRenderFrame(FrameEventArgs e)
{
GL.Clear((uint)(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit));
GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
this.SwapBuffers();
}

View file

@ -28,6 +28,7 @@
namespace OpenTK.Compute.CL10
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 3019
#pragma warning disable 1591
@ -3107,7 +3108,7 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")]
public static
unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret)
unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret)
{
return Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret);
}
@ -3115,7 +3116,7 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")]
public static
unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret)
unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret)
{
fixed (IntPtr* event_wait_list_ptr = event_wait_list)
fixed (IntPtr* @event_ptr = @event)
@ -3128,13 +3129,13 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")]
public static
unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret)
unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret)
{
fixed (IntPtr* event_wait_list_ptr = &event_wait_list)
fixed (IntPtr* @event_ptr = &@event)
fixed (int* errcode_ret_ptr = &errcode_ret)
{
IntPtr retval = Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr);
System.IntPtr retval = Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr);
errcode_ret = *errcode_ret_ptr;
return retval;
}
@ -3143,7 +3144,7 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")]
public static
unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret)
unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret)
{
return Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret);
}
@ -3151,7 +3152,7 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")]
public static
unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret)
unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret)
{
fixed (IntPtr* event_wait_list_ptr = event_wait_list)
fixed (IntPtr* @event_ptr = @event)
@ -3164,13 +3165,13 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")]
public static
unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret)
unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret)
{
fixed (IntPtr* event_wait_list_ptr = &event_wait_list)
fixed (IntPtr* @event_ptr = &@event)
fixed (int* errcode_ret_ptr = &errcode_ret)
{
IntPtr retval = Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr);
System.IntPtr retval = Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr);
errcode_ret = *errcode_ret_ptr;
return retval;
}
@ -3179,7 +3180,7 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")]
public static
unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret)
unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret)
{
return Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin, (IntPtr**)region, (IntPtr*)image_row_pitch, (IntPtr*)image_slice_pitch, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret);
}
@ -3187,7 +3188,7 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")]
public static
unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret)
unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret)
{
return Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin, (IntPtr**)region, (IntPtr*)image_row_pitch, (IntPtr*)image_slice_pitch, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret);
}
@ -3195,7 +3196,7 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")]
public static
unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr*[] origin, IntPtr*[] region, IntPtr[] image_row_pitch, IntPtr[] image_slice_pitch, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret)
unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr*[] origin, IntPtr*[] region, IntPtr[] image_row_pitch, IntPtr[] image_slice_pitch, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret)
{
fixed (IntPtr** origin_ptr = origin)
fixed (IntPtr** region_ptr = region)
@ -3212,7 +3213,7 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")]
public static
unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr*[] origin, IntPtr*[] region, IntPtr[] image_row_pitch, IntPtr[] image_slice_pitch, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret)
unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr*[] origin, IntPtr*[] region, IntPtr[] image_row_pitch, IntPtr[] image_slice_pitch, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret)
{
fixed (IntPtr** origin_ptr = origin)
fixed (IntPtr** region_ptr = region)
@ -3229,7 +3230,7 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")]
public static
unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, ref IntPtr* origin, ref IntPtr* region, ref IntPtr image_row_pitch, ref IntPtr image_slice_pitch, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret)
unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, ref IntPtr* origin, ref IntPtr* region, ref IntPtr image_row_pitch, ref IntPtr image_slice_pitch, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret)
{
fixed (IntPtr** origin_ptr = &origin)
fixed (IntPtr** region_ptr = &region)
@ -3239,7 +3240,7 @@ namespace OpenTK.Compute.CL10
fixed (IntPtr* @event_ptr = &@event)
fixed (int* errcode_ret_ptr = &errcode_ret)
{
IntPtr retval = Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr);
System.IntPtr retval = Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr);
errcode_ret = *errcode_ret_ptr;
return retval;
}
@ -3248,7 +3249,7 @@ namespace OpenTK.Compute.CL10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")]
public static
unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, ref IntPtr* origin, ref IntPtr* region, ref IntPtr image_row_pitch, ref IntPtr image_slice_pitch, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret)
unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, ref IntPtr* origin, ref IntPtr* region, ref IntPtr image_row_pitch, ref IntPtr image_slice_pitch, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret)
{
fixed (IntPtr** origin_ptr = &origin)
fixed (IntPtr** region_ptr = &region)
@ -3258,7 +3259,7 @@ namespace OpenTK.Compute.CL10
fixed (IntPtr* @event_ptr = &@event)
fixed (int* errcode_ret_ptr = &errcode_ret)
{
IntPtr retval = Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr);
System.IntPtr retval = Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr);
errcode_ret = *errcode_ret_ptr;
return retval;
}

View file

@ -28,6 +28,7 @@
namespace OpenTK.Compute.CL10
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 3019
#pragma warning disable 1591
@ -91,10 +92,10 @@ namespace OpenTK.Compute.CL10
internal extern static unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr** src_origin, IntPtr** region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMapBuffer", ExactSpelling = true)]
internal extern static unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret);
internal extern static unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMapImage", ExactSpelling = true)]
internal extern static unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret);
internal extern static unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMarker", ExactSpelling = true)]
internal extern static unsafe int EnqueueMarker(IntPtr command_queue, IntPtr* @event);

View file

@ -28,6 +28,7 @@
namespace OpenTK.Compute.CL10
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 0649
#pragma warning disable 3019
@ -89,10 +90,10 @@ namespace OpenTK.Compute.CL10
internal unsafe delegate int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr** src_origin, IntPtr** region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event);
internal unsafe static EnqueueCopyImageToBuffer clEnqueueCopyImageToBuffer;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret);
internal unsafe delegate System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret);
internal unsafe static EnqueueMapBuffer clEnqueueMapBuffer;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret);
internal unsafe delegate System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret);
internal unsafe static EnqueueMapImage clEnqueueMapImage;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate int EnqueueMarker(IntPtr command_queue, IntPtr* @event);

View file

@ -28,6 +28,7 @@
namespace OpenTK.Graphics.ES10
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 3019
#pragma warning disable 1591
@ -172,7 +173,7 @@ namespace OpenTK.Graphics.ES10
internal extern static unsafe void GetIntegerv(OpenTK.Graphics.ES10.All pname, Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)]
internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES10.All name);
internal extern static unsafe System.IntPtr GetString(OpenTK.Graphics.ES10.All name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glHint", ExactSpelling = true)]
internal extern static void Hint(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All mode);

View file

@ -28,6 +28,7 @@
namespace OpenTK.Graphics.ES10
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 0649
#pragma warning disable 3019
@ -170,7 +171,7 @@ namespace OpenTK.Graphics.ES10
internal unsafe delegate void GetIntegerv(OpenTK.Graphics.ES10.All pname, Int32* @params);
internal unsafe static GetIntegerv glGetIntegerv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES10.All name);
internal unsafe delegate System.IntPtr GetString(OpenTK.Graphics.ES10.All name);
internal unsafe static GetString glGetString;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Hint(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All mode);

View file

@ -28,6 +28,7 @@
namespace OpenTK.Graphics.ES10
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 3019
#pragma warning disable 1591
@ -2592,7 +2593,7 @@ namespace OpenTK.Graphics.ES10
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetString")]
public static
unsafe string GetString(OpenTK.Graphics.ES10.All name)
unsafe System.String GetString(OpenTK.Graphics.ES10.All name)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))

View file

@ -28,6 +28,7 @@
namespace OpenTK.Graphics.ES11
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 3019
#pragma warning disable 1591
@ -394,7 +395,7 @@ namespace OpenTK.Graphics.ES11
internal extern static unsafe void GetRenderbufferParameterivOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)]
internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES11.All name);
internal extern static unsafe System.IntPtr GetString(OpenTK.Graphics.ES11.All name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexEnvfv", ExactSpelling = true)]
internal extern static unsafe void GetTexEnvfv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Single* @params);
@ -514,7 +515,7 @@ namespace OpenTK.Graphics.ES11
internal extern static void LogicOp(OpenTK.Graphics.ES11.All opcode);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferOES", ExactSpelling = true)]
internal extern static unsafe IntPtr MapBufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access);
internal extern static unsafe System.IntPtr MapBufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialf", ExactSpelling = true)]
internal extern static void Materialf(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single param);

View file

@ -28,6 +28,7 @@
namespace OpenTK.Graphics.ES11
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 0649
#pragma warning disable 3019
@ -392,7 +393,7 @@ namespace OpenTK.Graphics.ES11
internal unsafe delegate void GetRenderbufferParameterivOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params);
internal unsafe static GetRenderbufferParameterivOES glGetRenderbufferParameterivOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES11.All name);
internal unsafe delegate System.IntPtr GetString(OpenTK.Graphics.ES11.All name);
internal unsafe static GetString glGetString;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetTexEnvfv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Single* @params);
@ -512,7 +513,7 @@ namespace OpenTK.Graphics.ES11
internal delegate void LogicOp(OpenTK.Graphics.ES11.All opcode);
internal static LogicOp glLogicOp;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr MapBufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access);
internal unsafe delegate System.IntPtr MapBufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access);
internal unsafe static MapBufferOES glMapBufferOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Materialf(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single param);

View file

@ -28,6 +28,7 @@
namespace OpenTK.Graphics.ES11
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 3019
#pragma warning disable 1591
@ -5011,7 +5012,7 @@ namespace OpenTK.Graphics.ES11
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetString")]
public static
unsafe string GetString(OpenTK.Graphics.ES11.All name)
unsafe System.String GetString(OpenTK.Graphics.ES11.All name)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -12497,7 +12498,7 @@ namespace OpenTK.Graphics.ES11
[System.CLSCompliant(false)]
[AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMapBufferOES")]
public static
unsafe IntPtr MapBuffer(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access)
unsafe System.IntPtr MapBuffer(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))

View file

@ -28,6 +28,7 @@
namespace OpenTK.Graphics.ES20
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 3019
#pragma warning disable 1591
@ -40,7 +41,7 @@ namespace OpenTK.Graphics.ES20
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glActiveTexture", ExactSpelling = true)]
internal extern static void ActiveTexture(OpenTK.Graphics.ES20.All texture);
internal extern static void ActiveTexture(OpenTK.Graphics.ES20.TextureUnit texture);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glAttachShader", ExactSpelling = true)]
internal extern static void AttachShader(UInt32 program, UInt32 shader);
@ -52,43 +53,43 @@ namespace OpenTK.Graphics.ES20
internal extern static void BindAttribLocation(UInt32 program, UInt32 index, String name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindBuffer", ExactSpelling = true)]
internal extern static void BindBuffer(OpenTK.Graphics.ES20.All target, UInt32 buffer);
internal extern static void BindBuffer(OpenTK.Graphics.ES20.BufferTarget target, UInt32 buffer);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindFramebuffer", ExactSpelling = true)]
internal extern static void BindFramebuffer(OpenTK.Graphics.ES20.All target, UInt32 framebuffer);
internal extern static void BindFramebuffer(OpenTK.Graphics.ES20.FramebufferTarget target, UInt32 framebuffer);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindRenderbuffer", ExactSpelling = true)]
internal extern static void BindRenderbuffer(OpenTK.Graphics.ES20.All target, UInt32 renderbuffer);
internal extern static void BindRenderbuffer(OpenTK.Graphics.ES20.RenderbufferTarget target, UInt32 renderbuffer);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindTexture", ExactSpelling = true)]
internal extern static void BindTexture(OpenTK.Graphics.ES20.All target, UInt32 texture);
internal extern static void BindTexture(OpenTK.Graphics.ES20.TextureTarget target, UInt32 texture);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendColor", ExactSpelling = true)]
internal extern static void BlendColor(Single red, Single green, Single blue, Single alpha);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquation", ExactSpelling = true)]
internal extern static void BlendEquation(OpenTK.Graphics.ES20.All mode);
internal extern static void BlendEquation(OpenTK.Graphics.ES20.BlendEquationMode mode);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquationSeparate", ExactSpelling = true)]
internal extern static void BlendEquationSeparate(OpenTK.Graphics.ES20.All modeRGB, OpenTK.Graphics.ES20.All modeAlpha);
internal extern static void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendEquationMode modeRGB, OpenTK.Graphics.ES20.BlendEquationMode modeAlpha);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFunc", ExactSpelling = true)]
internal extern static void BlendFunc(OpenTK.Graphics.ES20.All sfactor, OpenTK.Graphics.ES20.All dfactor);
internal extern static void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDest dfactor);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFuncSeparate", ExactSpelling = true)]
internal extern static void BlendFuncSeparate(OpenTK.Graphics.ES20.All srcRGB, OpenTK.Graphics.ES20.All dstRGB, OpenTK.Graphics.ES20.All srcAlpha, OpenTK.Graphics.ES20.All dstAlpha);
internal extern static void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDest dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDest dstAlpha);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBufferData", ExactSpelling = true)]
internal extern static void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.All usage);
internal extern static void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBufferSubData", ExactSpelling = true)]
internal extern static void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, IntPtr data);
internal extern static void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, IntPtr data);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCheckFramebufferStatus", ExactSpelling = true)]
internal extern static OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.All target);
internal extern static OpenTK.Graphics.ES20.FramebufferErrorCode CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClear", ExactSpelling = true)]
internal extern static void Clear(UInt32 mask);
internal extern static void Clear(OpenTK.Graphics.ES20.ClearBufferMask mask);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearColor", ExactSpelling = true)]
internal extern static void ClearColor(Single red, Single green, Single blue, Single alpha);
@ -106,22 +107,22 @@ namespace OpenTK.Graphics.ES20
internal extern static void CompileShader(UInt32 shader);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexImage2D", ExactSpelling = true)]
internal extern static void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data);
internal extern static void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexImage3DOES", ExactSpelling = true)]
internal extern static void CompressedTexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexSubImage2D", ExactSpelling = true)]
internal extern static void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data);
internal extern static void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, IntPtr data);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexSubImage3DOES", ExactSpelling = true)]
internal extern static void CompressedTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexImage2D", ExactSpelling = true)]
internal extern static void CopyTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border);
internal extern static void CopyTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexSubImage2D", ExactSpelling = true)]
internal extern static void CopyTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height);
internal extern static void CopyTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexSubImage3DOES", ExactSpelling = true)]
internal extern static void CopyTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 x, Int32 y, Int32 width, Int32 height);
@ -130,10 +131,10 @@ namespace OpenTK.Graphics.ES20
internal extern static Int32 CreateProgram();
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCreateShader", ExactSpelling = true)]
internal extern static Int32 CreateShader(OpenTK.Graphics.ES20.All type);
internal extern static Int32 CreateShader(OpenTK.Graphics.ES20.ShaderType type);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCullFace", ExactSpelling = true)]
internal extern static void CullFace(OpenTK.Graphics.ES20.All mode);
internal extern static void CullFace(OpenTK.Graphics.ES20.CullFaceMode mode);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteBuffers", ExactSpelling = true)]
internal extern static unsafe void DeleteBuffers(Int32 n, UInt32* buffers);
@ -160,7 +161,7 @@ namespace OpenTK.Graphics.ES20
internal extern static unsafe void DeleteTextures(Int32 n, UInt32* textures);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthFunc", ExactSpelling = true)]
internal extern static void DepthFunc(OpenTK.Graphics.ES20.All func);
internal extern static void DepthFunc(OpenTK.Graphics.ES20.DepthFunction func);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthMask", ExactSpelling = true)]
internal extern static void DepthMask(bool flag);
@ -172,7 +173,7 @@ namespace OpenTK.Graphics.ES20
internal extern static void DetachShader(UInt32 program, UInt32 shader);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisable", ExactSpelling = true)]
internal extern static void Disable(OpenTK.Graphics.ES20.All cap);
internal extern static void Disable(OpenTK.Graphics.ES20.EnableCap cap);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisableDriverControlQCOM", ExactSpelling = true)]
internal extern static void DisableDriverControlQCOM(UInt32 driverControl);
@ -181,10 +182,10 @@ namespace OpenTK.Graphics.ES20
internal extern static void DisableVertexAttribArray(UInt32 index);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawArrays", ExactSpelling = true)]
internal extern static void DrawArrays(OpenTK.Graphics.ES20.All mode, Int32 first, Int32 count);
internal extern static void DrawArrays(OpenTK.Graphics.ES20.BeginMode mode, Int32 first, Int32 count);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawElements", ExactSpelling = true)]
internal extern static void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices);
internal extern static void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetRenderbufferStorageOES", ExactSpelling = true)]
internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, IntPtr image);
@ -193,7 +194,7 @@ namespace OpenTK.Graphics.ES20
internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, IntPtr image);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnable", ExactSpelling = true)]
internal extern static void Enable(OpenTK.Graphics.ES20.All cap);
internal extern static void Enable(OpenTK.Graphics.ES20.EnableCap cap);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnableDriverControlQCOM", ExactSpelling = true)]
internal extern static void EnableDriverControlQCOM(UInt32 driverControl);
@ -214,157 +215,157 @@ namespace OpenTK.Graphics.ES20
internal extern static void Flush();
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferRenderbuffer", ExactSpelling = true)]
internal extern static void FramebufferRenderbuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All renderbuffertarget, UInt32 renderbuffer);
internal extern static void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTexture2D", ExactSpelling = true)]
internal extern static void FramebufferTexture2D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level);
internal extern static void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.TextureTarget textarget, UInt32 texture, Int32 level);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTexture3DOES", ExactSpelling = true)]
internal extern static void FramebufferTexture3DOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level, Int32 zoffset);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrontFace", ExactSpelling = true)]
internal extern static void FrontFace(OpenTK.Graphics.ES20.All mode);
internal extern static void FrontFace(OpenTK.Graphics.ES20.FrontFaceDirection mode);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenBuffers", ExactSpelling = true)]
internal extern static unsafe void GenBuffers(Int32 n, UInt32* buffers);
internal extern static unsafe void GenBuffers(Int32 n, [OutAttribute] UInt32* buffers);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenerateMipmap", ExactSpelling = true)]
internal extern static void GenerateMipmap(OpenTK.Graphics.ES20.All target);
internal extern static void GenerateMipmap(OpenTK.Graphics.ES20.TextureTarget target);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFencesNV", ExactSpelling = true)]
internal extern static unsafe void GenFencesNV(Int32 n, UInt32* fences);
internal extern static unsafe void GenFencesNV(Int32 n, [OutAttribute] UInt32* fences);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFramebuffers", ExactSpelling = true)]
internal extern static unsafe void GenFramebuffers(Int32 n, UInt32* framebuffers);
internal extern static unsafe void GenFramebuffers(Int32 n, [OutAttribute] UInt32* framebuffers);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenPerfMonitorsAMD", ExactSpelling = true)]
internal extern static unsafe void GenPerfMonitorsAMD(Int32 n, UInt32* monitors);
internal extern static unsafe void GenPerfMonitorsAMD(Int32 n, [OutAttribute] UInt32* monitors);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenRenderbuffers", ExactSpelling = true)]
internal extern static unsafe void GenRenderbuffers(Int32 n, UInt32* renderbuffers);
internal extern static unsafe void GenRenderbuffers(Int32 n, [OutAttribute] UInt32* renderbuffers);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenTextures", ExactSpelling = true)]
internal extern static unsafe void GenTextures(Int32 n, UInt32* textures);
internal extern static unsafe void GenTextures(Int32 n, [OutAttribute] UInt32* textures);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveAttrib", ExactSpelling = true)]
internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name);
internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] StringBuilder name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniform", ExactSpelling = true)]
internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name);
internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] StringBuilder name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetAttachedShaders", ExactSpelling = true)]
internal extern static unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, UInt32* shaders);
internal extern static unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetAttribLocation", ExactSpelling = true)]
internal extern static int GetAttribLocation(UInt32 program, String name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBooleanv", ExactSpelling = true)]
internal extern static unsafe void GetBooleanv(OpenTK.Graphics.ES20.All pname, bool* @params);
internal extern static unsafe void GetBooleanv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferParameteriv", ExactSpelling = true)]
internal extern static unsafe void GetBufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal extern static unsafe void GetBufferParameteriv(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferPointervOES", ExactSpelling = true)]
internal extern static void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, IntPtr @params);
internal extern static void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetDriverControlsQCOM", ExactSpelling = true)]
internal extern static unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls);
internal extern static unsafe void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] UInt32* driverControls);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetDriverControlStringQCOM", ExactSpelling = true)]
internal extern static unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString);
internal extern static unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder driverControlString);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetError", ExactSpelling = true)]
internal extern static OpenTK.Graphics.ES20.All GetError();
internal extern static OpenTK.Graphics.ES20.ErrorCode GetError();
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFenceivNV", ExactSpelling = true)]
internal extern static unsafe void GetFenceivNV(UInt32 fence, Int32* @params);
internal extern static unsafe void GetFenceivNV(UInt32 fence, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFloatv", ExactSpelling = true)]
internal extern static unsafe void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params);
internal extern static unsafe void GetFloatv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Single* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFramebufferAttachmentParameteriv", ExactSpelling = true)]
internal extern static unsafe void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal extern static unsafe void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferParameterName pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetIntegerv", ExactSpelling = true)]
internal extern static unsafe void GetIntegerv(OpenTK.Graphics.ES20.All pname, Int32* @params);
internal extern static unsafe void GetIntegerv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterDataAMD", ExactSpelling = true)]
internal extern static unsafe void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32* data, Int32* bytesWritten);
internal extern static unsafe void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] UInt32* data, [OutAttribute] Int32* bytesWritten);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterInfoAMD", ExactSpelling = true)]
internal extern static void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, IntPtr data);
internal extern static void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr data);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCountersAMD", ExactSpelling = true)]
internal extern static unsafe void GetPerfMonitorCountersAMD(UInt32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, UInt32* counters);
internal extern static unsafe void GetPerfMonitorCountersAMD(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterStringAMD", ExactSpelling = true)]
internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, Int32* length, String counterString);
internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupsAMD", ExactSpelling = true)]
internal extern static unsafe void GetPerfMonitorGroupsAMD(Int32* numGroups, Int32 groupsSize, UInt32* groups);
internal extern static unsafe void GetPerfMonitorGroupsAMD([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupStringAMD", ExactSpelling = true)]
internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, Int32* length, String groupString);
internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramBinaryOES", ExactSpelling = true)]
internal extern static unsafe void GetProgramBinaryOES(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, IntPtr binary);
internal extern static unsafe void GetProgramBinaryOES(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [OutAttribute] IntPtr binary);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramInfoLog", ExactSpelling = true)]
internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder infolog);
internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramiv", ExactSpelling = true)]
internal extern static unsafe void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal extern static unsafe void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetRenderbufferParameteriv", ExactSpelling = true)]
internal extern static unsafe void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal extern static unsafe void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderInfoLog", ExactSpelling = true)]
internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32* length, String infolog);
internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderiv", ExactSpelling = true)]
internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderPrecisionFormat", ExactSpelling = true)]
internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32* range, Int32* precision);
internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderSource", ExactSpelling = true)]
internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source);
internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)]
internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES20.All name);
internal extern static unsafe System.IntPtr GetString(OpenTK.Graphics.ES20.StringName name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameterfv", ExactSpelling = true)]
internal extern static unsafe void GetTexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params);
internal extern static unsafe void GetTexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameteriv", ExactSpelling = true)]
internal extern static unsafe void GetTexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal extern static unsafe void GetTexParameteriv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformfv", ExactSpelling = true)]
internal extern static unsafe void GetUniformfv(UInt32 program, Int32 location, Single* @params);
internal extern static unsafe void GetUniformfv(UInt32 program, Int32 location, [OutAttribute] Single* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformiv", ExactSpelling = true)]
internal extern static unsafe void GetUniformiv(UInt32 program, Int32 location, Int32* @params);
internal extern static unsafe void GetUniformiv(UInt32 program, Int32 location, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformLocation", ExactSpelling = true)]
internal extern static int GetUniformLocation(UInt32 program, String name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribfv", ExactSpelling = true)]
internal extern static unsafe void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.All pname, Single* @params);
internal extern static unsafe void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribiv", ExactSpelling = true)]
internal extern static unsafe void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal extern static unsafe void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribPointerv", ExactSpelling = true)]
internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.All pname, IntPtr pointer);
internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glHint", ExactSpelling = true)]
internal extern static void Hint(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All mode);
internal extern static void Hint(OpenTK.Graphics.ES20.HintTarget target, OpenTK.Graphics.ES20.HintMode mode);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsBuffer", ExactSpelling = true)]
internal extern static bool IsBuffer(UInt32 buffer);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsEnabled", ExactSpelling = true)]
internal extern static bool IsEnabled(OpenTK.Graphics.ES20.All cap);
internal extern static bool IsEnabled(OpenTK.Graphics.ES20.EnableCap cap);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFenceNV", ExactSpelling = true)]
internal extern static bool IsFenceNV(UInt32 fence);
@ -391,10 +392,10 @@ namespace OpenTK.Graphics.ES20
internal extern static void LinkProgram(UInt32 program);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferOES", ExactSpelling = true)]
internal extern static unsafe IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access);
internal extern static unsafe System.IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPixelStorei", ExactSpelling = true)]
internal extern static void PixelStorei(OpenTK.Graphics.ES20.All pname, Int32 param);
internal extern static void PixelStorei(OpenTK.Graphics.ES20.PixelStoreParameter pname, Int32 param);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPolygonOffset", ExactSpelling = true)]
internal extern static void PolygonOffset(Single factor, Single units);
@ -403,13 +404,13 @@ namespace OpenTK.Graphics.ES20
internal extern static void ProgramBinaryOES(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glReadPixels", ExactSpelling = true)]
internal extern static void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);
internal extern static void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glReleaseShaderCompiler", ExactSpelling = true)]
internal extern static void ReleaseShaderCompiler();
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glRenderbufferStorage", ExactSpelling = true)]
internal extern static void RenderbufferStorage(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height);
internal extern static void RenderbufferStorage(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferInternalFormat internalformat, Int32 width, Int32 height);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSampleCoverage", ExactSpelling = true)]
internal extern static void SampleCoverage(Single value, bool invert);
@ -424,52 +425,52 @@ namespace OpenTK.Graphics.ES20
internal extern static void SetFenceNV(UInt32 fence, OpenTK.Graphics.ES20.All condition);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glShaderBinary", ExactSpelling = true)]
internal extern static unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length);
internal extern static unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glShaderSource", ExactSpelling = true)]
internal extern static unsafe void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilFunc", ExactSpelling = true)]
internal extern static void StencilFunc(OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask);
internal extern static void StencilFunc(OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilFuncSeparate", ExactSpelling = true)]
internal extern static void StencilFuncSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask);
internal extern static void StencilFuncSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMask", ExactSpelling = true)]
internal extern static void StencilMask(UInt32 mask);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMaskSeparate", ExactSpelling = true)]
internal extern static void StencilMaskSeparate(OpenTK.Graphics.ES20.All face, UInt32 mask);
internal extern static void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, UInt32 mask);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOp", ExactSpelling = true)]
internal extern static void StencilOp(OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass);
internal extern static void StencilOp(OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOpSeparate", ExactSpelling = true)]
internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass);
internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTestFenceNV", ExactSpelling = true)]
internal extern static bool TestFenceNV(UInt32 fence);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage2D", ExactSpelling = true)]
internal extern static void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);
internal extern static void TexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage3DOES", ExactSpelling = true)]
internal extern static void TexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterf", ExactSpelling = true)]
internal extern static void TexParameterf(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single param);
internal extern static void TexParameterf(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single param);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterfv", ExactSpelling = true)]
internal extern static unsafe void TexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params);
internal extern static unsafe void TexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameteri", ExactSpelling = true)]
internal extern static void TexParameteri(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32 param);
internal extern static void TexParameteri(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32 param);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameteriv", ExactSpelling = true)]
internal extern static unsafe void TexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal extern static unsafe void TexParameteriv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexSubImage2D", ExactSpelling = true)]
internal extern static void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);
internal extern static void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexSubImage3DOES", ExactSpelling = true)]
internal extern static void TexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);
@ -565,7 +566,7 @@ namespace OpenTK.Graphics.ES20
internal extern static unsafe void VertexAttrib4fv(UInt32 indx, Single* values);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttribPointer", ExactSpelling = true)]
internal extern static void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, IntPtr ptr);
internal extern static void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr ptr);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glViewport", ExactSpelling = true)]
internal extern static void Viewport(Int32 x, Int32 y, Int32 width, Int32 height);

View file

@ -28,6 +28,7 @@
namespace OpenTK.Graphics.ES20
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 0649
#pragma warning disable 3019
@ -38,7 +39,7 @@ namespace OpenTK.Graphics.ES20
internal static partial class Delegates
{
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void ActiveTexture(OpenTK.Graphics.ES20.All texture);
internal delegate void ActiveTexture(OpenTK.Graphics.ES20.TextureUnit texture);
internal static ActiveTexture glActiveTexture;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void AttachShader(UInt32 program, UInt32 shader);
@ -50,43 +51,43 @@ namespace OpenTK.Graphics.ES20
internal delegate void BindAttribLocation(UInt32 program, UInt32 index, String name);
internal static BindAttribLocation glBindAttribLocation;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BindBuffer(OpenTK.Graphics.ES20.All target, UInt32 buffer);
internal delegate void BindBuffer(OpenTK.Graphics.ES20.BufferTarget target, UInt32 buffer);
internal static BindBuffer glBindBuffer;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BindFramebuffer(OpenTK.Graphics.ES20.All target, UInt32 framebuffer);
internal delegate void BindFramebuffer(OpenTK.Graphics.ES20.FramebufferTarget target, UInt32 framebuffer);
internal static BindFramebuffer glBindFramebuffer;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BindRenderbuffer(OpenTK.Graphics.ES20.All target, UInt32 renderbuffer);
internal delegate void BindRenderbuffer(OpenTK.Graphics.ES20.RenderbufferTarget target, UInt32 renderbuffer);
internal static BindRenderbuffer glBindRenderbuffer;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BindTexture(OpenTK.Graphics.ES20.All target, UInt32 texture);
internal delegate void BindTexture(OpenTK.Graphics.ES20.TextureTarget target, UInt32 texture);
internal static BindTexture glBindTexture;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BlendColor(Single red, Single green, Single blue, Single alpha);
internal static BlendColor glBlendColor;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BlendEquation(OpenTK.Graphics.ES20.All mode);
internal delegate void BlendEquation(OpenTK.Graphics.ES20.BlendEquationMode mode);
internal static BlendEquation glBlendEquation;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BlendEquationSeparate(OpenTK.Graphics.ES20.All modeRGB, OpenTK.Graphics.ES20.All modeAlpha);
internal delegate void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendEquationMode modeRGB, OpenTK.Graphics.ES20.BlendEquationMode modeAlpha);
internal static BlendEquationSeparate glBlendEquationSeparate;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BlendFunc(OpenTK.Graphics.ES20.All sfactor, OpenTK.Graphics.ES20.All dfactor);
internal delegate void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDest dfactor);
internal static BlendFunc glBlendFunc;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BlendFuncSeparate(OpenTK.Graphics.ES20.All srcRGB, OpenTK.Graphics.ES20.All dstRGB, OpenTK.Graphics.ES20.All srcAlpha, OpenTK.Graphics.ES20.All dstAlpha);
internal delegate void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDest dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDest dstAlpha);
internal static BlendFuncSeparate glBlendFuncSeparate;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.All usage);
internal delegate void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage);
internal static BufferData glBufferData;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, IntPtr data);
internal delegate void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, IntPtr data);
internal static BufferSubData glBufferSubData;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.All target);
internal delegate OpenTK.Graphics.ES20.FramebufferErrorCode CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target);
internal static CheckFramebufferStatus glCheckFramebufferStatus;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Clear(UInt32 mask);
internal delegate void Clear(OpenTK.Graphics.ES20.ClearBufferMask mask);
internal static Clear glClear;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void ClearColor(Single red, Single green, Single blue, Single alpha);
@ -104,22 +105,22 @@ namespace OpenTK.Graphics.ES20
internal delegate void CompileShader(UInt32 shader);
internal static CompileShader glCompileShader;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data);
internal delegate void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data);
internal static CompressedTexImage2D glCompressedTexImage2D;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void CompressedTexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data);
internal static CompressedTexImage3DOES glCompressedTexImage3DOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data);
internal delegate void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, IntPtr data);
internal static CompressedTexSubImage2D glCompressedTexSubImage2D;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void CompressedTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data);
internal static CompressedTexSubImage3DOES glCompressedTexSubImage3DOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void CopyTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border);
internal delegate void CopyTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border);
internal static CopyTexImage2D glCopyTexImage2D;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void CopyTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height);
internal delegate void CopyTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height);
internal static CopyTexSubImage2D glCopyTexSubImage2D;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void CopyTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 x, Int32 y, Int32 width, Int32 height);
@ -128,10 +129,10 @@ namespace OpenTK.Graphics.ES20
internal delegate Int32 CreateProgram();
internal static CreateProgram glCreateProgram;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate Int32 CreateShader(OpenTK.Graphics.ES20.All type);
internal delegate Int32 CreateShader(OpenTK.Graphics.ES20.ShaderType type);
internal static CreateShader glCreateShader;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void CullFace(OpenTK.Graphics.ES20.All mode);
internal delegate void CullFace(OpenTK.Graphics.ES20.CullFaceMode mode);
internal static CullFace glCullFace;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DeleteBuffers(Int32 n, UInt32* buffers);
@ -158,7 +159,7 @@ namespace OpenTK.Graphics.ES20
internal unsafe delegate void DeleteTextures(Int32 n, UInt32* textures);
internal unsafe static DeleteTextures glDeleteTextures;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void DepthFunc(OpenTK.Graphics.ES20.All func);
internal delegate void DepthFunc(OpenTK.Graphics.ES20.DepthFunction func);
internal static DepthFunc glDepthFunc;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void DepthMask(bool flag);
@ -170,7 +171,7 @@ namespace OpenTK.Graphics.ES20
internal delegate void DetachShader(UInt32 program, UInt32 shader);
internal static DetachShader glDetachShader;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Disable(OpenTK.Graphics.ES20.All cap);
internal delegate void Disable(OpenTK.Graphics.ES20.EnableCap cap);
internal static Disable glDisable;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void DisableDriverControlQCOM(UInt32 driverControl);
@ -179,10 +180,10 @@ namespace OpenTK.Graphics.ES20
internal delegate void DisableVertexAttribArray(UInt32 index);
internal static DisableVertexAttribArray glDisableVertexAttribArray;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void DrawArrays(OpenTK.Graphics.ES20.All mode, Int32 first, Int32 count);
internal delegate void DrawArrays(OpenTK.Graphics.ES20.BeginMode mode, Int32 first, Int32 count);
internal static DrawArrays glDrawArrays;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices);
internal delegate void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices);
internal static DrawElements glDrawElements;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, IntPtr image);
@ -191,7 +192,7 @@ namespace OpenTK.Graphics.ES20
internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, IntPtr image);
internal static EGLImageTargetTexture2DOES glEGLImageTargetTexture2DOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Enable(OpenTK.Graphics.ES20.All cap);
internal delegate void Enable(OpenTK.Graphics.ES20.EnableCap cap);
internal static Enable glEnable;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void EnableDriverControlQCOM(UInt32 driverControl);
@ -212,157 +213,157 @@ namespace OpenTK.Graphics.ES20
internal delegate void Flush();
internal static Flush glFlush;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void FramebufferRenderbuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All renderbuffertarget, UInt32 renderbuffer);
internal delegate void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer);
internal static FramebufferRenderbuffer glFramebufferRenderbuffer;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void FramebufferTexture2D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level);
internal delegate void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.TextureTarget textarget, UInt32 texture, Int32 level);
internal static FramebufferTexture2D glFramebufferTexture2D;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void FramebufferTexture3DOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level, Int32 zoffset);
internal static FramebufferTexture3DOES glFramebufferTexture3DOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void FrontFace(OpenTK.Graphics.ES20.All mode);
internal delegate void FrontFace(OpenTK.Graphics.ES20.FrontFaceDirection mode);
internal static FrontFace glFrontFace;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GenBuffers(Int32 n, UInt32* buffers);
internal unsafe delegate void GenBuffers(Int32 n, [OutAttribute] UInt32* buffers);
internal unsafe static GenBuffers glGenBuffers;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void GenerateMipmap(OpenTK.Graphics.ES20.All target);
internal delegate void GenerateMipmap(OpenTK.Graphics.ES20.TextureTarget target);
internal static GenerateMipmap glGenerateMipmap;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GenFencesNV(Int32 n, UInt32* fences);
internal unsafe delegate void GenFencesNV(Int32 n, [OutAttribute] UInt32* fences);
internal unsafe static GenFencesNV glGenFencesNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GenFramebuffers(Int32 n, UInt32* framebuffers);
internal unsafe delegate void GenFramebuffers(Int32 n, [OutAttribute] UInt32* framebuffers);
internal unsafe static GenFramebuffers glGenFramebuffers;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GenPerfMonitorsAMD(Int32 n, UInt32* monitors);
internal unsafe delegate void GenPerfMonitorsAMD(Int32 n, [OutAttribute] UInt32* monitors);
internal unsafe static GenPerfMonitorsAMD glGenPerfMonitorsAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GenRenderbuffers(Int32 n, UInt32* renderbuffers);
internal unsafe delegate void GenRenderbuffers(Int32 n, [OutAttribute] UInt32* renderbuffers);
internal unsafe static GenRenderbuffers glGenRenderbuffers;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GenTextures(Int32 n, UInt32* textures);
internal unsafe delegate void GenTextures(Int32 n, [OutAttribute] UInt32* textures);
internal unsafe static GenTextures glGenTextures;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name);
internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] StringBuilder name);
internal unsafe static GetActiveAttrib glGetActiveAttrib;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name);
internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] StringBuilder name);
internal unsafe static GetActiveUniform glGetActiveUniform;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, UInt32* shaders);
internal unsafe delegate void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders);
internal unsafe static GetAttachedShaders glGetAttachedShaders;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate int GetAttribLocation(UInt32 program, String name);
internal static GetAttribLocation glGetAttribLocation;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetBooleanv(OpenTK.Graphics.ES20.All pname, bool* @params);
internal unsafe delegate void GetBooleanv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool* @params);
internal unsafe static GetBooleanv glGetBooleanv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetBufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal unsafe delegate void GetBufferParameteriv(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] Int32* @params);
internal unsafe static GetBufferParameteriv glGetBufferParameteriv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, IntPtr @params);
internal delegate void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr @params);
internal static GetBufferPointervOES glGetBufferPointervOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls);
internal unsafe delegate void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] UInt32* driverControls);
internal unsafe static GetDriverControlsQCOM glGetDriverControlsQCOM;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString);
internal unsafe delegate void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder driverControlString);
internal unsafe static GetDriverControlStringQCOM glGetDriverControlStringQCOM;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate OpenTK.Graphics.ES20.All GetError();
internal delegate OpenTK.Graphics.ES20.ErrorCode GetError();
internal static GetError glGetError;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetFenceivNV(UInt32 fence, Int32* @params);
internal unsafe delegate void GetFenceivNV(UInt32 fence, [OutAttribute] Int32* @params);
internal unsafe static GetFenceivNV glGetFenceivNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params);
internal unsafe delegate void GetFloatv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Single* @params);
internal unsafe static GetFloatv glGetFloatv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal unsafe delegate void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferParameterName pname, [OutAttribute] Int32* @params);
internal unsafe static GetFramebufferAttachmentParameteriv glGetFramebufferAttachmentParameteriv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetIntegerv(OpenTK.Graphics.ES20.All pname, Int32* @params);
internal unsafe delegate void GetIntegerv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Int32* @params);
internal unsafe static GetIntegerv glGetIntegerv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32* data, Int32* bytesWritten);
internal unsafe delegate void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] UInt32* data, [OutAttribute] Int32* bytesWritten);
internal unsafe static GetPerfMonitorCounterDataAMD glGetPerfMonitorCounterDataAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, IntPtr data);
internal delegate void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr data);
internal static GetPerfMonitorCounterInfoAMD glGetPerfMonitorCounterInfoAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetPerfMonitorCountersAMD(UInt32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, UInt32* counters);
internal unsafe delegate void GetPerfMonitorCountersAMD(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters);
internal unsafe static GetPerfMonitorCountersAMD glGetPerfMonitorCountersAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, Int32* length, String counterString);
internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString);
internal unsafe static GetPerfMonitorCounterStringAMD glGetPerfMonitorCounterStringAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetPerfMonitorGroupsAMD(Int32* numGroups, Int32 groupsSize, UInt32* groups);
internal unsafe delegate void GetPerfMonitorGroupsAMD([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups);
internal unsafe static GetPerfMonitorGroupsAMD glGetPerfMonitorGroupsAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, Int32* length, String groupString);
internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString);
internal unsafe static GetPerfMonitorGroupStringAMD glGetPerfMonitorGroupStringAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetProgramBinaryOES(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, IntPtr binary);
internal unsafe delegate void GetProgramBinaryOES(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [OutAttribute] IntPtr binary);
internal unsafe static GetProgramBinaryOES glGetProgramBinaryOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder infolog);
internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog);
internal unsafe static GetProgramInfoLog glGetProgramInfoLog;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal unsafe delegate void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params);
internal unsafe static GetProgramiv glGetProgramiv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal unsafe delegate void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32* @params);
internal unsafe static GetRenderbufferParameteriv glGetRenderbufferParameteriv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32* length, String infolog);
internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog);
internal unsafe static GetShaderInfoLog glGetShaderInfoLog;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params);
internal unsafe static GetShaderiv glGetShaderiv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32* range, Int32* precision);
internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision);
internal unsafe static GetShaderPrecisionFormat glGetShaderPrecisionFormat;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source);
internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source);
internal unsafe static GetShaderSource glGetShaderSource;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES20.All name);
internal unsafe delegate System.IntPtr GetString(OpenTK.Graphics.ES20.StringName name);
internal unsafe static GetString glGetString;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetTexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params);
internal unsafe delegate void GetTexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single* @params);
internal unsafe static GetTexParameterfv glGetTexParameterfv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetTexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal unsafe delegate void GetTexParameteriv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Int32* @params);
internal unsafe static GetTexParameteriv glGetTexParameteriv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetUniformfv(UInt32 program, Int32 location, Single* @params);
internal unsafe delegate void GetUniformfv(UInt32 program, Int32 location, [OutAttribute] Single* @params);
internal unsafe static GetUniformfv glGetUniformfv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetUniformiv(UInt32 program, Int32 location, Int32* @params);
internal unsafe delegate void GetUniformiv(UInt32 program, Int32 location, [OutAttribute] Int32* @params);
internal unsafe static GetUniformiv glGetUniformiv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate int GetUniformLocation(UInt32 program, String name);
internal static GetUniformLocation glGetUniformLocation;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.All pname, Single* @params);
internal unsafe delegate void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single* @params);
internal unsafe static GetVertexAttribfv glGetVertexAttribfv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal unsafe delegate void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params);
internal unsafe static GetVertexAttribiv glGetVertexAttribiv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.All pname, IntPtr pointer);
internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer);
internal static GetVertexAttribPointerv glGetVertexAttribPointerv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Hint(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All mode);
internal delegate void Hint(OpenTK.Graphics.ES20.HintTarget target, OpenTK.Graphics.ES20.HintMode mode);
internal static Hint glHint;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate bool IsBuffer(UInt32 buffer);
internal static IsBuffer glIsBuffer;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate bool IsEnabled(OpenTK.Graphics.ES20.All cap);
internal delegate bool IsEnabled(OpenTK.Graphics.ES20.EnableCap cap);
internal static IsEnabled glIsEnabled;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate bool IsFenceNV(UInt32 fence);
@ -389,10 +390,10 @@ namespace OpenTK.Graphics.ES20
internal delegate void LinkProgram(UInt32 program);
internal static LinkProgram glLinkProgram;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access);
internal unsafe delegate System.IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access);
internal unsafe static MapBufferOES glMapBufferOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void PixelStorei(OpenTK.Graphics.ES20.All pname, Int32 param);
internal delegate void PixelStorei(OpenTK.Graphics.ES20.PixelStoreParameter pname, Int32 param);
internal static PixelStorei glPixelStorei;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void PolygonOffset(Single factor, Single units);
@ -401,13 +402,13 @@ namespace OpenTK.Graphics.ES20
internal delegate void ProgramBinaryOES(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length);
internal static ProgramBinaryOES glProgramBinaryOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);
internal delegate void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
internal static ReadPixels glReadPixels;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void ReleaseShaderCompiler();
internal static ReleaseShaderCompiler glReleaseShaderCompiler;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void RenderbufferStorage(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height);
internal delegate void RenderbufferStorage(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferInternalFormat internalformat, Int32 width, Int32 height);
internal static RenderbufferStorage glRenderbufferStorage;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void SampleCoverage(Single value, bool invert);
@ -422,52 +423,52 @@ namespace OpenTK.Graphics.ES20
internal delegate void SetFenceNV(UInt32 fence, OpenTK.Graphics.ES20.All condition);
internal static SetFenceNV glSetFenceNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length);
internal unsafe delegate void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length);
internal unsafe static ShaderBinary glShaderBinary;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length);
internal unsafe static ShaderSource glShaderSource;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void StencilFunc(OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask);
internal delegate void StencilFunc(OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask);
internal static StencilFunc glStencilFunc;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void StencilFuncSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask);
internal delegate void StencilFuncSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask);
internal static StencilFuncSeparate glStencilFuncSeparate;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void StencilMask(UInt32 mask);
internal static StencilMask glStencilMask;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void StencilMaskSeparate(OpenTK.Graphics.ES20.All face, UInt32 mask);
internal delegate void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, UInt32 mask);
internal static StencilMaskSeparate glStencilMaskSeparate;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void StencilOp(OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass);
internal delegate void StencilOp(OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass);
internal static StencilOp glStencilOp;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass);
internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass);
internal static StencilOpSeparate glStencilOpSeparate;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate bool TestFenceNV(UInt32 fence);
internal static TestFenceNV glTestFenceNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);
internal delegate void TexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
internal static TexImage2D glTexImage2D;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);
internal static TexImage3DOES glTexImage3DOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexParameterf(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single param);
internal delegate void TexParameterf(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single param);
internal static TexParameterf glTexParameterf;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void TexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params);
internal unsafe delegate void TexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single* @params);
internal unsafe static TexParameterfv glTexParameterfv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexParameteri(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32 param);
internal delegate void TexParameteri(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32 param);
internal static TexParameteri glTexParameteri;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void TexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params);
internal unsafe delegate void TexParameteriv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32* @params);
internal unsafe static TexParameteriv glTexParameteriv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);
internal delegate void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
internal static TexSubImage2D glTexSubImage2D;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);
@ -563,7 +564,7 @@ namespace OpenTK.Graphics.ES20
internal unsafe delegate void VertexAttrib4fv(UInt32 indx, Single* values);
internal unsafe static VertexAttrib4fv glVertexAttrib4fv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, IntPtr ptr);
internal delegate void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr ptr);
internal static VertexAttribPointer glVertexAttribPointer;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Viewport(Int32 x, Int32 y, Int32 width, Int32 height);

File diff suppressed because it is too large Load diff

View file

@ -31,6 +31,38 @@ namespace OpenTK.Graphics.ES20
{
#pragma warning disable 1591
public enum ActiveAttribType : int
{
Float = ((int)0X1406),
FloatVec2 = ((int)0X8b50),
FloatVec3 = ((int)0X8b51),
FloatVec4 = ((int)0X8b52),
FloatMat2 = ((int)0X8b5a),
FloatMat3 = ((int)0X8b5b),
FloatMat4 = ((int)0X8b5c),
}
public enum ActiveUniformType : int
{
Int = ((int)0X1404),
Float = ((int)0X1406),
FloatVec2 = ((int)0X8b50),
FloatVec3 = ((int)0X8b51),
FloatVec4 = ((int)0X8b52),
IntVec2 = ((int)0X8b53),
IntVec3 = ((int)0X8b54),
IntVec4 = ((int)0X8b55),
Bool = ((int)0X8b56),
BoolVec2 = ((int)0X8b57),
BoolVec3 = ((int)0X8b58),
BoolVec4 = ((int)0X8b59),
FloatMat2 = ((int)0X8b5a),
FloatMat3 = ((int)0X8b5b),
FloatMat4 = ((int)0X8b5c),
Sampler2D = ((int)0X8b5e),
SamplerCube = ((int)0X8b60),
}
public enum All : int
{
False = ((int)0),
@ -158,6 +190,7 @@ namespace OpenTK.Graphics.ES20
BlendColor = ((int)0x8005),
FuncAdd = ((int)0x8006),
BlendEquation = ((int)0x8009),
BlendEquationRgb = ((int)0X8009),
FuncSubtract = ((int)0x800A),
FuncReverseSubtract = ((int)0x800B),
UnsignedShort4444 = ((int)0x8033),
@ -481,6 +514,13 @@ namespace OpenTK.Graphics.ES20
TriangleFan = ((int)0x0006),
}
public enum BlendEquationMode : int
{
FuncAdd = ((int)0X8006),
FuncSubtract = ((int)0X800a),
FuncReverseSubtract = ((int)0X800b),
}
public enum BlendEquationSeparate : int
{
FuncAdd = ((int)0x8006),
@ -497,14 +537,33 @@ namespace OpenTK.Graphics.ES20
OneMinusSrcAlpha = ((int)0x0303),
DstAlpha = ((int)0x0304),
OneMinusDstAlpha = ((int)0x0305),
DstColor = ((int)0X0306),
OneMinusDstColor = ((int)0X0307),
SrcAlphaSaturate = ((int)0X0308),
ConstantColor = ((int)0X8001),
OneMinusConstantColor = ((int)0X8002),
ConstantAlpha = ((int)0X8003),
OneMinusConstantAlpha = ((int)0X8004),
One = ((int)1),
}
public enum BlendingFactorSrc : int
{
Zero = ((int)0),
SrcColor = ((int)0X0300),
OneMinusSrcColor = ((int)0X0301),
SrcAlpha = ((int)0X0302),
OneMinusSrcAlpha = ((int)0X0303),
DstAlpha = ((int)0X0304),
OneMinusDstAlpha = ((int)0X0305),
DstColor = ((int)0x0306),
OneMinusDstColor = ((int)0x0307),
SrcAlphaSaturate = ((int)0x0308),
ConstantColor = ((int)0X8001),
OneMinusConstantColor = ((int)0X8002),
ConstantAlpha = ((int)0X8003),
OneMinusConstantAlpha = ((int)0X8004),
One = ((int)1),
}
public enum BlendSubtract : int
@ -533,6 +592,25 @@ namespace OpenTK.Graphics.ES20
DynamicDraw = ((int)0x88E8),
}
public enum BufferParameterName : int
{
BufferSize = ((int)0X8764),
BufferUsage = ((int)0X8765),
}
public enum BufferTarget : int
{
ArrayBuffer = ((int)0X8892),
ElementArrayBuffer = ((int)0X8893),
}
public enum BufferUsage : int
{
StreamDraw = ((int)0X88e0),
StaticDraw = ((int)0X88e4),
DynamicDraw = ((int)0X88e8),
}
[Flags]
public enum ClearBufferMask : int
{
@ -560,6 +638,24 @@ namespace OpenTK.Graphics.ES20
Fixed = ((int)0x140C),
}
public enum DepthFunction : int
{
Never = ((int)0X0200),
Less = ((int)0X0201),
Equal = ((int)0X0202),
Lequal = ((int)0X0203),
Greater = ((int)0X0204),
Notequal = ((int)0X0205),
Gequal = ((int)0X0206),
Always = ((int)0X0207),
}
public enum DrawElementsType : int
{
UnsignedByte = ((int)0X1401),
UnsignedShort = ((int)0X1403),
}
public enum EnableCap : int
{
CullFace = ((int)0x0B44),
@ -581,6 +677,7 @@ namespace OpenTK.Graphics.ES20
InvalidValue = ((int)0x0501),
InvalidOperation = ((int)0x0502),
OutOfMemory = ((int)0x0505),
InvalidFramebufferOperation = ((int)0X0506),
}
public enum ExttextureFilterAnisotropic : int
@ -602,6 +699,15 @@ namespace OpenTK.Graphics.ES20
ExtTextureType2101010Rev = ((int)1),
}
public enum FramebufferErrorCode : int
{
FramebufferComplete = ((int)0X8cd5),
FramebufferIncompleteAttachment = ((int)0X8cd6),
FramebufferIncompleteMissingAttachment = ((int)0X8cd7),
FramebufferIncompleteDimensions = ((int)0X8cd9),
FramebufferUnsupported = ((int)0X8cdd),
}
public enum FramebufferObject : int
{
None = ((int)0),
@ -640,6 +746,26 @@ namespace OpenTK.Graphics.ES20
Rgb565 = ((int)0x8D62),
}
public enum FramebufferParameterName : int
{
FramebufferAttachmentObjectType = ((int)0X8cd0),
FramebufferAttachmentObjectName = ((int)0X8cd1),
FramebufferAttachmentTextureLevel = ((int)0X8cd2),
FramebufferAttachmentTextureCubeMapFace = ((int)0X8cd3),
}
public enum FramebufferSlot : int
{
ColorAttachment0 = ((int)0X8ce0),
DepthAttachment = ((int)0X8d00),
StencilAttachment = ((int)0X8d20),
}
public enum FramebufferTarget : int
{
Framebuffer = ((int)0X8d40),
}
public enum FrontFaceDirection : int
{
Cw = ((int)0x0900),
@ -649,12 +775,15 @@ namespace OpenTK.Graphics.ES20
public enum GetPName : int
{
LineWidth = ((int)0x0B21),
CullFace = ((int)0X0b44),
CullFaceMode = ((int)0x0B45),
FrontFace = ((int)0x0B46),
DepthRange = ((int)0x0B70),
DepthTest = ((int)0X0b71),
DepthWritemask = ((int)0x0B72),
DepthClearValue = ((int)0x0B73),
DepthFunc = ((int)0x0B74),
StencilTest = ((int)0X0b90),
StencilClearValue = ((int)0x0B91),
StencilFunc = ((int)0x0B92),
StencilValueMask = ((int)0x0B93),
@ -664,7 +793,10 @@ namespace OpenTK.Graphics.ES20
StencilRef = ((int)0x0B97),
StencilWritemask = ((int)0x0B98),
Viewport = ((int)0x0BA2),
Dither = ((int)0X0bd0),
Blend = ((int)0X0be2),
ScissorBox = ((int)0x0C10),
ScissorTest = ((int)0X0c11),
ColorClearValue = ((int)0x0C22),
ColorWritemask = ((int)0x0C23),
UnpackAlignment = ((int)0x0CF5),
@ -678,26 +810,66 @@ namespace OpenTK.Graphics.ES20
AlphaBits = ((int)0x0D55),
DepthBits = ((int)0x0D56),
StencilBits = ((int)0x0D57),
Texture2D = ((int)0X0de1),
PolygonOffsetUnits = ((int)0x2A00),
BlendColor = ((int)0X8005),
BlendEquation = ((int)0X8009),
BlendEquationRgb = ((int)0X8009),
PolygonOffsetFill = ((int)0X8037),
PolygonOffsetFactor = ((int)0x8038),
TextureBinding2D = ((int)0x8069),
SampleAlphaToCoverage = ((int)0X809e),
SampleCoverage = ((int)0X80a0),
SampleBuffers = ((int)0x80A8),
Samples = ((int)0x80A9),
SampleCoverageValue = ((int)0x80AA),
SampleCoverageInvert = ((int)0x80AB),
BlendDstRgb = ((int)0X80c8),
BlendSrcRgb = ((int)0X80c9),
BlendDstAlpha = ((int)0X80ca),
BlendSrcAlpha = ((int)0X80cb),
GenerateMipmapHint = ((int)0X8192),
AliasedPointSizeRange = ((int)0x846D),
AliasedLineWidthRange = ((int)0x846E),
ActiveTexture = ((int)0X84e0),
MaxRenderbufferSize = ((int)0X84e8),
TextureBindingCubeMap = ((int)0X8514),
MaxCubeMapTextureSize = ((int)0X851c),
NumCompressedTextureFormats = ((int)0X86a2),
CompressedTextureFormats = ((int)0X86a3),
StencilBackFunc = ((int)0x8800),
StencilBackFail = ((int)0x8801),
StencilBackPassDepthFail = ((int)0x8802),
StencilBackPassDepthPass = ((int)0x8803),
BlendEquationAlpha = ((int)0X883d),
MaxVertexAttribs = ((int)0X8869),
MaxTextureImageUnits = ((int)0X8872),
ArrayBufferBinding = ((int)0X8894),
ElementArrayBufferBinding = ((int)0X8895),
MaxVertexTextureImageUnits = ((int)0X8b4c),
MaxCombinedTextureImageUnits = ((int)0X8b4d),
CurrentProgram = ((int)0X8b8d),
ImplementationColorReadType = ((int)0X8b9a),
ImplementationColorReadFormat = ((int)0X8b9b),
StencilBackRef = ((int)0x8CA3),
StencilBackValueMask = ((int)0x8CA4),
StencilBackWritemask = ((int)0x8CA5),
FramebufferBinding = ((int)0X8ca6),
RenderbufferBinding = ((int)0X8ca7),
ShaderBinaryFormats = ((int)0X8df8),
NumShaderBinaryFormats = ((int)0X8df9),
ShaderCompiler = ((int)0X8dfa),
MaxVertexUniformVectors = ((int)0X8dfb),
MaxVaryingVectors = ((int)0X8dfc),
MaxFragmentUniformVectors = ((int)0X8dfd),
}
public enum GetTextureParameter : int
{
TextureMagFilter = ((int)0X2800),
TextureMinFilter = ((int)0X2801),
TextureWrapS = ((int)0X2802),
TextureWrapT = ((int)0X2803),
NumCompressedTextureFormats = ((int)0x86A2),
CompressedTextureFormats = ((int)0x86A3),
}
@ -911,13 +1083,42 @@ namespace OpenTK.Graphics.ES20
LuminanceAlpha = ((int)0x190A),
}
public enum PixelInternalFormat : int
{
Alpha = ((int)0X1906),
Rgb = ((int)0X1907),
Rgba = ((int)0X1908),
Luminance = ((int)0X1909),
LuminanceAlpha = ((int)0X190a),
}
public enum PixelStoreParameter : int
{
UnpackAlignment = ((int)0X0cf5),
PackAlignment = ((int)0X0d05),
}
public enum PixelType : int
{
UnsignedByte = ((int)0X1401),
UnsignedShort4444 = ((int)0x8033),
UnsignedShort5551 = ((int)0x8034),
UnsignedShort565 = ((int)0x8363),
}
public enum ProgramParameter : int
{
DeleteStatus = ((int)0X8b80),
LinkStatus = ((int)0X8b82),
ValidateStatus = ((int)0X8b83),
InfoLogLength = ((int)0X8b84),
AttachedShaders = ((int)0X8b85),
ActiveUniforms = ((int)0X8b86),
ActiveUniformMaxLength = ((int)0X8b87),
ActiveAttributes = ((int)0X8b89),
ActiveAttributeMaxLength = ((int)0X8b8a),
}
public enum QcomdriverControl : int
{
QcomDriverControl = ((int)1),
@ -935,6 +1136,33 @@ namespace OpenTK.Graphics.ES20
ImplementationColorReadFormat = ((int)0x8B9B),
}
public enum RenderbufferInternalFormat : int
{
Rgba4 = ((int)0X8056),
Rgb5A1 = ((int)0X8057),
DepthComponent16 = ((int)0X81a5),
StencilIndex8 = ((int)0X8d48),
Rgb565 = ((int)0X8d62),
}
public enum RenderbufferParameterName : int
{
RenderbufferWidth = ((int)0X8d42),
RenderbufferHeight = ((int)0X8d43),
RenderbufferInternalFormat = ((int)0X8d44),
RenderbufferRedSize = ((int)0X8d50),
RenderbufferGreenSize = ((int)0X8d51),
RenderbufferBlueSize = ((int)0X8d52),
RenderbufferAlphaSize = ((int)0X8d53),
RenderbufferDepthSize = ((int)0X8d54),
RenderbufferStencilSize = ((int)0X8d55),
}
public enum RenderbufferTarget : int
{
Renderbuffer = ((int)0X8d41),
}
public enum SeparateBlendFunctions : int
{
ConstantColor = ((int)0x8001),
@ -954,6 +1182,29 @@ namespace OpenTK.Graphics.ES20
NumShaderBinaryFormats = ((int)0x8DF9),
}
public enum ShaderBinaryFormat : int
{
}
public enum ShaderParameter : int
{
ShaderType = ((int)0X8b4f),
DeleteStatus = ((int)0X8b80),
CompileStatus = ((int)0X8b81),
InfoLogLength = ((int)0X8b84),
ShaderSourceLength = ((int)0X8b88),
}
public enum ShaderPrecision : int
{
LowFloat = ((int)0X8df0),
MediumFloat = ((int)0X8df1),
HighFloat = ((int)0X8df2),
LowInt = ((int)0X8df3),
MediumInt = ((int)0X8df4),
HighInt = ((int)0X8df5),
}
public enum ShaderPrecisionSpecifiedTypes : int
{
LowFloat = ((int)0x8DF0),
@ -996,6 +1247,12 @@ namespace OpenTK.Graphics.ES20
ShaderCompiler = ((int)0x8DFA),
}
public enum ShaderType : int
{
FragmentShader = ((int)0X8b30),
VertexShader = ((int)0X8b31),
}
public enum StencilFunction : int
{
Never = ((int)0x0200),
@ -1010,6 +1267,7 @@ namespace OpenTK.Graphics.ES20
public enum StencilOp : int
{
Zero = ((int)0X0000),
Invert = ((int)0x150A),
Keep = ((int)0x1E00),
Replace = ((int)0x1E01),
@ -1025,6 +1283,7 @@ namespace OpenTK.Graphics.ES20
Renderer = ((int)0x1F01),
Version = ((int)0x1F02),
Extensions = ((int)0x1F03),
ShadingLanguageVersion = ((int)0X8b8c),
}
public enum TextureMagFilter : int
@ -1035,6 +1294,8 @@ namespace OpenTK.Graphics.ES20
public enum TextureMinFilter : int
{
Nearest = ((int)0X2600),
Linear = ((int)0X2601),
NearestMipmapNearest = ((int)0x2700),
LinearMipmapNearest = ((int)0x2701),
NearestMipmapLinear = ((int)0x2702),
@ -1051,6 +1312,7 @@ namespace OpenTK.Graphics.ES20
public enum TextureTarget : int
{
Texture2D = ((int)0X0de1),
Texture = ((int)0x1702),
TextureCubeMap = ((int)0x8513),
TextureBindingCubeMap = ((int)0x8514),
@ -1137,4 +1399,30 @@ namespace OpenTK.Graphics.ES20
VertexAttribArrayBufferBinding = ((int)0x889F),
}
public enum VertexAttribParameter : int
{
VertexAttribArrayEnabled = ((int)0X8622),
VertexAttribArraySize = ((int)0X8623),
VertexAttribArrayStride = ((int)0X8624),
VertexAttribArrayType = ((int)0X8625),
CurrentVertexAttrib = ((int)0X8626),
VertexAttribArrayNormalized = ((int)0X886a),
VertexAttribArrayBufferBinding = ((int)0X889f),
}
public enum VertexAttribPointerParameter : int
{
VertexAttribArrayPointer = ((int)0X8645),
}
public enum VertexAttribPointerType : int
{
Byte = ((int)0X1400),
UnsignedByte = ((int)0X1401),
Short = ((int)0X1402),
UnsignedShort = ((int)0X1403),
Float = ((int)0X1406),
Fixed = ((int)0X140c),
}
}

View file

@ -1,4 +1,31 @@
using System;
#region License
//
// The Open Toolkit Library License
//
// Copyright (c) 2006 - 2009 the Open Toolkit library.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software is furnished to do
// so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
//
#endregion
using System;
using System.Collections.Generic;
using System.Text;
@ -10,5 +37,348 @@ namespace OpenTK.Graphics.ES20
public sealed partial class GL : GraphicsBindingsBase
{
const string Library = "libGLESv2.dll";
#region Helper Overloads
#pragma warning disable 3019
#pragma warning disable 1591
#pragma warning disable 1572
#pragma warning disable 1573
// Note: Mono 1.9.1 truncates StringBuilder results (for 'out string' parameters).
// We work around this issue by doubling the StringBuilder capacity.
#region public static void ClearColor() overloads
public static void ClearColor(System.Drawing.Color color)
{
GL.ClearColor(color.R / 255.0f, color.G / 255.0f, color.B / 255.0f, color.A / 255.0f);
}
public static void ClearColor(Color4 color)
{
GL.ClearColor(color.R, color.G, color.B, color.A);
}
#endregion
#region public static void BlendColor() overloads
public static void BlendColor(System.Drawing.Color color)
{
GL.BlendColor(color.R / 255.0f, color.G / 255.0f, color.B / 255.0f, color.A / 255.0f);
}
#endregion
#region Uniform
[CLSCompliant(false)]
public static void Uniform2(int location, ref Vector2 vector)
{
GL.Uniform2(location, vector.X, vector.Y);
}
[CLSCompliant(false)]
public static void Uniform3(int location, ref Vector3 vector)
{
GL.Uniform3(location, vector.X, vector.Y, vector.Z);
}
[CLSCompliant(false)]
public static void Uniform4(int location, ref Vector4 vector)
{
GL.Uniform4(location, vector.X, vector.Y, vector.Z, vector.W);
}
public static void Uniform2(int location, Vector2 vector)
{
GL.Uniform2(location, vector.X, vector.Y);
}
public static void Uniform3(int location, Vector3 vector)
{
GL.Uniform3(location, vector.X, vector.Y, vector.Z);
}
public static void Uniform4(int location, Vector4 vector)
{
GL.Uniform4(location, vector.X, vector.Y, vector.Z, vector.W);
}
public static void Uniform4(int location, Color4 color)
{
GL.Uniform4(location, color.R, color.G, color.B, color.A);
}
public static void Uniform4(int location, Quaternion quaternion)
{
GL.Uniform4(location, quaternion.X, quaternion.Y, quaternion.Z, quaternion.W);
}
public static void UniformMatrix4(int location, bool transpose, ref Matrix4 matrix)
{
unsafe
{
fixed (float* matrix_ptr = &matrix.Row0.X)
{
GL.UniformMatrix4(location, 1, transpose, matrix_ptr);
}
}
}
#endregion
#region Shaders
#region GetActiveAttrib
public static string GetActiveAttrib(int program, int index, out int size, out ActiveAttribType type)
{
int length;
GetProgram(program, ProgramParameter.ActiveAttributeMaxLength, out length);
StringBuilder sb = new StringBuilder(length == 0 ? 1 : length * 2);
GetActiveAttrib(program, index, sb.Capacity, out length, out size, out type, sb);
return sb.ToString();
}
#endregion
#region GetActiveUniform
public static string GetActiveUniform(int program, int uniformIndex, out int size, out ActiveUniformType type)
{
int length;
GetProgram(program, ProgramParameter.ActiveUniformMaxLength, out length);
StringBuilder sb = new StringBuilder(length == 0 ? 1 : length);
GetActiveUniform(program, uniformIndex, sb.Capacity, out length, out size, out type, sb);
return sb.ToString();
}
#endregion
#region public static void ShaderSource(Int32 shader, System.String @string)
public static void ShaderSource(Int32 shader, System.String @string)
{
unsafe
{
int length = @string.Length;
GL.ShaderSource((UInt32)shader, 1, new string[] { @string }, &length);
}
}
#endregion
#region public static string GetShaderInfoLog(Int32 shader)
public static string GetShaderInfoLog(Int32 shader)
{
string info;
GetShaderInfoLog(shader, out info);
return info;
}
#endregion
#region public static void GetShaderInfoLog(Int32 shader, out string info)
public static void GetShaderInfoLog(Int32 shader, out string info)
{
unsafe
{
int length;
GL.GetShader(shader, ShaderParameter.InfoLogLength, out length);
if (length == 0)
{
info = String.Empty;
return;
}
StringBuilder sb = new StringBuilder(length * 2);
GL.GetShaderInfoLog((UInt32)shader, sb.Capacity, &length, sb);
info = sb.ToString();
}
}
#endregion
#region public static string GetProgramInfoLog(Int32 program)
public static string GetProgramInfoLog(Int32 program)
{
string info;
GetProgramInfoLog(program, out info);
return info;
}
#endregion
#region public static void GetProgramInfoLog(Int32 program, out string info)
public static void GetProgramInfoLog(Int32 program, out string info)
{
unsafe
{
int length;
GL.GetProgram(program, ProgramParameter.InfoLogLength, out length); if (length == 0)
{
info = String.Empty;
return;
}
StringBuilder sb = new StringBuilder(length * 2);
GL.GetProgramInfoLog((UInt32)program, sb.Capacity, &length, sb);
info = sb.ToString();
}
}
#endregion
#endregion
#region public static void VertexAttrib2(Int32 index, ref Vector2 v)
[CLSCompliant(false)]
public static void VertexAttrib2(Int32 index, ref Vector2 v)
{
GL.VertexAttrib2(index, v.X, v.Y);
}
#endregion
#region public static void VertexAttrib3(Int32 index, ref Vector3 v)
[CLSCompliant(false)]
public static void VertexAttrib3(Int32 index, ref Vector3 v)
{
GL.VertexAttrib3(index, v.X, v.Y, v.Z);
}
#endregion
#region public static void VertexAttrib4(Int32 index, ref Vector4 v)
[CLSCompliant(false)]
public static void VertexAttrib4(Int32 index, ref Vector4 v)
{
GL.VertexAttrib4(index, v.X, v.Y, v.Z, v.W);
}
#endregion
#region public static void VertexAttrib2(Int32 index, Vector2 v)
public static void VertexAttrib2(Int32 index, Vector2 v)
{
GL.VertexAttrib2(index, v.X, v.Y);
}
#endregion
#region public static void VertexAttrib3(Int32 index, Vector3 v)
public static void VertexAttrib3(Int32 index, Vector3 v)
{
GL.VertexAttrib3(index, v.X, v.Y, v.Z);
}
#endregion
#region public static void VertexAttrib4(Int32 index, Vector4 v)
public static void VertexAttrib4(Int32 index, Vector4 v)
{
GL.VertexAttrib4(index, v.X, v.Y, v.Z, v.W);
}
#endregion
#region public static int GenTexture()
public static int GenTexture()
{
int id;
GenTextures(1, out id);
return id;
}
#endregion
#region public static void DeleteTexture(int id)
public static void DeleteTexture(int id)
{
DeleteTextures(1, ref id);
}
#endregion
#region Get[Float|Double]
public static void GetFloat(GetPName pname, out Vector2 vector)
{
unsafe
{
fixed (Vector2* ptr = &vector)
GetFloat(pname, (float*)ptr);
}
}
public static void GetFloat(GetPName pname, out Vector3 vector)
{
unsafe
{
fixed (Vector3* ptr = &vector)
GetFloat(pname, (float*)ptr);
}
}
public static void GetFloat(GetPName pname, out Vector4 vector)
{
unsafe
{
fixed (Vector4* ptr = &vector)
GetFloat(pname, (float*)ptr);
}
}
public static void GetFloat(GetPName pname, out Matrix4 matrix)
{
unsafe
{
fixed (Matrix4* ptr = &matrix)
GetFloat(pname, (float*)ptr);
}
}
#endregion
#region Viewport
public static void Viewport(System.Drawing.Size size)
{
GL.Viewport(0, 0, size.Width, size.Height);
}
public static void Viewport(System.Drawing.Point location, System.Drawing.Size size)
{
GL.Viewport(location.X, location.Y, size.Width, size.Height);
}
public static void Viewport(System.Drawing.Rectangle rectangle)
{
GL.Viewport(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height);
}
#endregion
#pragma warning restore 3019
#pragma warning restore 1591
#pragma warning restore 1572
#pragma warning restore 1573
#endregion
}
}

File diff suppressed because it is too large Load diff

View file

@ -28,6 +28,7 @@
namespace OpenTK.Graphics.OpenGL
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 3019
#pragma warning disable 1591
@ -1513,31 +1514,31 @@ namespace OpenTK.Graphics.OpenGL
internal extern static Int32 GenVertexShadersEXT(UInt32 range);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveAttrib", ExactSpelling = true)]
internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name);
internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveAttribARB", ExactSpelling = true)]
internal extern static unsafe void GetActiveAttribARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] System.Text.StringBuilder name);
internal extern static unsafe void GetActiveAttribARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] StringBuilder name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniform", ExactSpelling = true)]
internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name);
internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] StringBuilder name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformARB", ExactSpelling = true)]
internal extern static unsafe void GetActiveUniformARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] System.Text.StringBuilder name);
internal extern static unsafe void GetActiveUniformARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] StringBuilder name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformBlockiv", ExactSpelling = true)]
internal extern static unsafe void GetActiveUniformBlockiv(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.OpenGL.ArbUniformBufferObject pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformBlockName", ExactSpelling = true)]
internal extern static unsafe void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformBlockName);
internal extern static unsafe void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformBlockName);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformName", ExactSpelling = true)]
internal extern static unsafe void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformName);
internal extern static unsafe void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformName);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformsiv", ExactSpelling = true)]
internal extern static unsafe void GetActiveUniformsiv(UInt32 program, Int32 uniformCount, UInt32* uniformIndices, OpenTK.Graphics.OpenGL.ArbUniformBufferObject pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveVaryingNV", ExactSpelling = true)]
internal extern static unsafe void GetActiveVaryingNV(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name);
internal extern static unsafe void GetActiveVaryingNV(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] StringBuilder name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetArrayObjectfvATI", ExactSpelling = true)]
internal extern static unsafe void GetArrayObjectfvATI(OpenTK.Graphics.OpenGL.EnableCap array, OpenTK.Graphics.OpenGL.AtiVertexArrayObject pname, [OutAttribute] Single* @params);
@ -1747,7 +1748,7 @@ namespace OpenTK.Graphics.OpenGL
internal extern static unsafe void GetImageTransformParameterivHP(OpenTK.Graphics.OpenGL.HpImageTransform target, OpenTK.Graphics.OpenGL.HpImageTransform pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetInfoLogARB", ExactSpelling = true)]
internal extern static unsafe void GetInfoLogARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog);
internal extern static unsafe void GetInfoLogARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetInstrumentsSGIX", ExactSpelling = true)]
internal extern static Int32 GetInstrumentsSGIX();
@ -1951,13 +1952,13 @@ namespace OpenTK.Graphics.OpenGL
internal extern static unsafe void GetPerfMonitorCountersAMD(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterStringAMD", ExactSpelling = true)]
internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString);
internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupsAMD", ExactSpelling = true)]
internal extern static unsafe void GetPerfMonitorGroupsAMD([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupStringAMD", ExactSpelling = true)]
internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString);
internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPixelMapfv", ExactSpelling = true)]
internal extern static unsafe void GetPixelMapfv(OpenTK.Graphics.OpenGL.PixelMap map, [OutAttribute] Single* values);
@ -1999,7 +2000,7 @@ namespace OpenTK.Graphics.OpenGL
internal extern static unsafe void GetProgramEnvParameterIuivNV(OpenTK.Graphics.OpenGL.NvGpuProgram4 target, UInt32 index, [OutAttribute] UInt32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramInfoLog", ExactSpelling = true)]
internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog);
internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramiv", ExactSpelling = true)]
internal extern static unsafe void GetProgramiv(UInt32 program, OpenTK.Graphics.OpenGL.ProgramParameter pname, [OutAttribute] Int32* @params);
@ -2077,25 +2078,25 @@ namespace OpenTK.Graphics.OpenGL
internal extern static void GetSeparableFilterEXT(OpenTK.Graphics.OpenGL.ExtConvolution target, OpenTK.Graphics.OpenGL.PixelFormat format, OpenTK.Graphics.OpenGL.PixelType type, [OutAttribute] IntPtr row, [OutAttribute] IntPtr column, [OutAttribute] IntPtr span);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderInfoLog", ExactSpelling = true)]
internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog);
internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderiv", ExactSpelling = true)]
internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.OpenGL.ShaderParameter pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderSource", ExactSpelling = true)]
internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source);
internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderSourceARB", ExactSpelling = true)]
internal extern static unsafe void GetShaderSourceARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source);
internal extern static unsafe void GetShaderSourceARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetSharpenTexFuncSGIS", ExactSpelling = true)]
internal extern static unsafe void GetSharpenTexFuncSGIS(OpenTK.Graphics.OpenGL.TextureTarget target, [OutAttribute] Single* points);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)]
internal extern static IntPtr GetString(OpenTK.Graphics.OpenGL.StringName name);
internal extern static System.IntPtr GetString(OpenTK.Graphics.OpenGL.StringName name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetStringi", ExactSpelling = true)]
internal extern static IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringName name, UInt32 index);
internal extern static System.IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringName name, UInt32 index);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetSynciv", ExactSpelling = true)]
internal extern static unsafe void GetSynciv(IntPtr sync, OpenTK.Graphics.OpenGL.ArbSync pname, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* values);
@ -2179,10 +2180,10 @@ namespace OpenTK.Graphics.OpenGL
internal extern static unsafe void GetTrackMatrixivNV(OpenTK.Graphics.OpenGL.AssemblyProgramTargetArb target, UInt32 address, OpenTK.Graphics.OpenGL.AssemblyProgramParameterArb pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTransformFeedbackVarying", ExactSpelling = true)]
internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name);
internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTransformFeedbackVaryingEXT", ExactSpelling = true)]
internal extern static unsafe void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name);
internal extern static unsafe void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] StringBuilder name);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTransformFeedbackVaryingNV", ExactSpelling = true)]
internal extern static unsafe void GetTransformFeedbackVaryingNV(UInt32 program, UInt32 index, [OutAttribute] Int32* location);
@ -2290,7 +2291,7 @@ namespace OpenTK.Graphics.OpenGL
internal extern static unsafe void GetVertexAttribivNV(UInt32 index, OpenTK.Graphics.OpenGL.NvVertexProgram pname, [OutAttribute] Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribPointerv", ExactSpelling = true)]
internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer);
internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribPointervARB", ExactSpelling = true)]
internal extern static void GetVertexAttribPointervARB(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameterArb pname, [OutAttribute] IntPtr pointer);
@ -2611,13 +2612,13 @@ namespace OpenTK.Graphics.OpenGL
internal extern static unsafe void Map2f(OpenTK.Graphics.OpenGL.MapTarget target, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single* points);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBuffer", ExactSpelling = true)]
internal extern static unsafe IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access);
internal extern static unsafe System.IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferARB", ExactSpelling = true)]
internal extern static unsafe IntPtr MapBufferARB(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access);
internal extern static unsafe System.IntPtr MapBufferARB(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferRange", ExactSpelling = true)]
internal extern static unsafe IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access);
internal extern static unsafe System.IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapControlPointsNV", ExactSpelling = true)]
internal extern static void MapControlPointsNV(OpenTK.Graphics.OpenGL.NvEvaluators target, UInt32 index, OpenTK.Graphics.OpenGL.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, IntPtr points);
@ -2635,10 +2636,10 @@ namespace OpenTK.Graphics.OpenGL
internal extern static void MapGrid2f(Int32 un, Single u1, Single u2, Int32 vn, Single v1, Single v2);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapNamedBufferEXT", ExactSpelling = true)]
internal extern static unsafe IntPtr MapNamedBufferEXT(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access);
internal extern static unsafe System.IntPtr MapNamedBufferEXT(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapObjectBufferATI", ExactSpelling = true)]
internal extern static unsafe IntPtr MapObjectBufferATI(UInt32 buffer);
internal extern static unsafe System.IntPtr MapObjectBufferATI(UInt32 buffer);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapParameterfvNV", ExactSpelling = true)]
internal extern static unsafe void MapParameterfvNV(OpenTK.Graphics.OpenGL.NvEvaluators target, OpenTK.Graphics.OpenGL.NvEvaluators pname, Single* @params);
@ -3250,10 +3251,10 @@ namespace OpenTK.Graphics.OpenGL
internal extern static unsafe void NormalStream3svATI(OpenTK.Graphics.OpenGL.AtiVertexStreams stream, Int16* coords);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glObjectPurgeableAPPLE", ExactSpelling = true)]
internal extern static IntPtr ObjectPurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option);
internal extern static System.IntPtr ObjectPurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glObjectUnpurgeableAPPLE", ExactSpelling = true)]
internal extern static IntPtr ObjectUnpurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option);
internal extern static System.IntPtr ObjectUnpurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glOrtho", ExactSpelling = true)]
internal extern static void Ortho(Double left, Double right, Double bottom, Double top, Double zNear, Double zFar);

View file

@ -28,6 +28,7 @@
namespace OpenTK.Graphics.OpenGL
{
using System;
using System.Text;
using System.Runtime.InteropServices;
#pragma warning disable 0649
#pragma warning disable 3019
@ -1511,31 +1512,31 @@ namespace OpenTK.Graphics.OpenGL
internal delegate Int32 GenVertexShadersEXT(UInt32 range);
internal static GenVertexShadersEXT glGenVertexShadersEXT;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name);
internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name);
internal unsafe static GetActiveAttrib glGetActiveAttrib;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetActiveAttribARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] System.Text.StringBuilder name);
internal unsafe delegate void GetActiveAttribARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] StringBuilder name);
internal unsafe static GetActiveAttribARB glGetActiveAttribARB;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name);
internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] StringBuilder name);
internal unsafe static GetActiveUniform glGetActiveUniform;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetActiveUniformARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] System.Text.StringBuilder name);
internal unsafe delegate void GetActiveUniformARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] StringBuilder name);
internal unsafe static GetActiveUniformARB glGetActiveUniformARB;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetActiveUniformBlockiv(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.OpenGL.ArbUniformBufferObject pname, [OutAttribute] Int32* @params);
internal unsafe static GetActiveUniformBlockiv glGetActiveUniformBlockiv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformBlockName);
internal unsafe delegate void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformBlockName);
internal unsafe static GetActiveUniformBlockName glGetActiveUniformBlockName;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformName);
internal unsafe delegate void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformName);
internal unsafe static GetActiveUniformName glGetActiveUniformName;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetActiveUniformsiv(UInt32 program, Int32 uniformCount, UInt32* uniformIndices, OpenTK.Graphics.OpenGL.ArbUniformBufferObject pname, [OutAttribute] Int32* @params);
internal unsafe static GetActiveUniformsiv glGetActiveUniformsiv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetActiveVaryingNV(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name);
internal unsafe delegate void GetActiveVaryingNV(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] StringBuilder name);
internal unsafe static GetActiveVaryingNV glGetActiveVaryingNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetArrayObjectfvATI(OpenTK.Graphics.OpenGL.EnableCap array, OpenTK.Graphics.OpenGL.AtiVertexArrayObject pname, [OutAttribute] Single* @params);
@ -1745,7 +1746,7 @@ namespace OpenTK.Graphics.OpenGL
internal unsafe delegate void GetImageTransformParameterivHP(OpenTK.Graphics.OpenGL.HpImageTransform target, OpenTK.Graphics.OpenGL.HpImageTransform pname, [OutAttribute] Int32* @params);
internal unsafe static GetImageTransformParameterivHP glGetImageTransformParameterivHP;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetInfoLogARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog);
internal unsafe delegate void GetInfoLogARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog);
internal unsafe static GetInfoLogARB glGetInfoLogARB;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate Int32 GetInstrumentsSGIX();
@ -1949,13 +1950,13 @@ namespace OpenTK.Graphics.OpenGL
internal unsafe delegate void GetPerfMonitorCountersAMD(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters);
internal unsafe static GetPerfMonitorCountersAMD glGetPerfMonitorCountersAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString);
internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString);
internal unsafe static GetPerfMonitorCounterStringAMD glGetPerfMonitorCounterStringAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetPerfMonitorGroupsAMD([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups);
internal unsafe static GetPerfMonitorGroupsAMD glGetPerfMonitorGroupsAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString);
internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString);
internal unsafe static GetPerfMonitorGroupStringAMD glGetPerfMonitorGroupStringAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetPixelMapfv(OpenTK.Graphics.OpenGL.PixelMap map, [OutAttribute] Single* values);
@ -1997,7 +1998,7 @@ namespace OpenTK.Graphics.OpenGL
internal unsafe delegate void GetProgramEnvParameterIuivNV(OpenTK.Graphics.OpenGL.NvGpuProgram4 target, UInt32 index, [OutAttribute] UInt32* @params);
internal unsafe static GetProgramEnvParameterIuivNV glGetProgramEnvParameterIuivNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog);
internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog);
internal unsafe static GetProgramInfoLog glGetProgramInfoLog;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetProgramiv(UInt32 program, OpenTK.Graphics.OpenGL.ProgramParameter pname, [OutAttribute] Int32* @params);
@ -2075,25 +2076,25 @@ namespace OpenTK.Graphics.OpenGL
internal delegate void GetSeparableFilterEXT(OpenTK.Graphics.OpenGL.ExtConvolution target, OpenTK.Graphics.OpenGL.PixelFormat format, OpenTK.Graphics.OpenGL.PixelType type, [OutAttribute] IntPtr row, [OutAttribute] IntPtr column, [OutAttribute] IntPtr span);
internal static GetSeparableFilterEXT glGetSeparableFilterEXT;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog);
internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog);
internal unsafe static GetShaderInfoLog glGetShaderInfoLog;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.OpenGL.ShaderParameter pname, [OutAttribute] Int32* @params);
internal unsafe static GetShaderiv glGetShaderiv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source);
internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source);
internal unsafe static GetShaderSource glGetShaderSource;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetShaderSourceARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source);
internal unsafe delegate void GetShaderSourceARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source);
internal unsafe static GetShaderSourceARB glGetShaderSourceARB;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetSharpenTexFuncSGIS(OpenTK.Graphics.OpenGL.TextureTarget target, [OutAttribute] Single* points);
internal unsafe static GetSharpenTexFuncSGIS glGetSharpenTexFuncSGIS;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate IntPtr GetString(OpenTK.Graphics.OpenGL.StringName name);
internal delegate System.IntPtr GetString(OpenTK.Graphics.OpenGL.StringName name);
internal static GetString glGetString;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringName name, UInt32 index);
internal delegate System.IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringName name, UInt32 index);
internal static GetStringi glGetStringi;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetSynciv(IntPtr sync, OpenTK.Graphics.OpenGL.ArbSync pname, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* values);
@ -2177,10 +2178,10 @@ namespace OpenTK.Graphics.OpenGL
internal unsafe delegate void GetTrackMatrixivNV(OpenTK.Graphics.OpenGL.AssemblyProgramTargetArb target, UInt32 address, OpenTK.Graphics.OpenGL.AssemblyProgramParameterArb pname, [OutAttribute] Int32* @params);
internal unsafe static GetTrackMatrixivNV glGetTrackMatrixivNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name);
internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name);
internal unsafe static GetTransformFeedbackVarying glGetTransformFeedbackVarying;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name);
internal unsafe delegate void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] StringBuilder name);
internal unsafe static GetTransformFeedbackVaryingEXT glGetTransformFeedbackVaryingEXT;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetTransformFeedbackVaryingNV(UInt32 program, UInt32 index, [OutAttribute] Int32* location);
@ -2288,7 +2289,7 @@ namespace OpenTK.Graphics.OpenGL
internal unsafe delegate void GetVertexAttribivNV(UInt32 index, OpenTK.Graphics.OpenGL.NvVertexProgram pname, [OutAttribute] Int32* @params);
internal unsafe static GetVertexAttribivNV glGetVertexAttribivNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer);
internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer);
internal static GetVertexAttribPointerv glGetVertexAttribPointerv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void GetVertexAttribPointervARB(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameterArb pname, [OutAttribute] IntPtr pointer);
@ -2609,13 +2610,13 @@ namespace OpenTK.Graphics.OpenGL
internal unsafe delegate void Map2f(OpenTK.Graphics.OpenGL.MapTarget target, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single* points);
internal unsafe static Map2f glMap2f;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access);
internal unsafe delegate System.IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access);
internal unsafe static MapBuffer glMapBuffer;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr MapBufferARB(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access);
internal unsafe delegate System.IntPtr MapBufferARB(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access);
internal unsafe static MapBufferARB glMapBufferARB;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access);
internal unsafe delegate System.IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access);
internal unsafe static MapBufferRange glMapBufferRange;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void MapControlPointsNV(OpenTK.Graphics.OpenGL.NvEvaluators target, UInt32 index, OpenTK.Graphics.OpenGL.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, IntPtr points);
@ -2633,10 +2634,10 @@ namespace OpenTK.Graphics.OpenGL
internal delegate void MapGrid2f(Int32 un, Single u1, Single u2, Int32 vn, Single v1, Single v2);
internal static MapGrid2f glMapGrid2f;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr MapNamedBufferEXT(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access);
internal unsafe delegate System.IntPtr MapNamedBufferEXT(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access);
internal unsafe static MapNamedBufferEXT glMapNamedBufferEXT;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate IntPtr MapObjectBufferATI(UInt32 buffer);
internal unsafe delegate System.IntPtr MapObjectBufferATI(UInt32 buffer);
internal unsafe static MapObjectBufferATI glMapObjectBufferATI;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void MapParameterfvNV(OpenTK.Graphics.OpenGL.NvEvaluators target, OpenTK.Graphics.OpenGL.NvEvaluators pname, Single* @params);
@ -3248,10 +3249,10 @@ namespace OpenTK.Graphics.OpenGL
internal unsafe delegate void NormalStream3svATI(OpenTK.Graphics.OpenGL.AtiVertexStreams stream, Int16* coords);
internal unsafe static NormalStream3svATI glNormalStream3svATI;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate IntPtr ObjectPurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option);
internal delegate System.IntPtr ObjectPurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option);
internal static ObjectPurgeableAPPLE glObjectPurgeableAPPLE;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate IntPtr ObjectUnpurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option);
internal delegate System.IntPtr ObjectUnpurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option);
internal static ObjectUnpurgeableAPPLE glObjectUnpurgeableAPPLE;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Ortho(Double left, Double right, Double bottom, Double top, Double zNear, Double zFar);