diff --git a/Source/Bind/ES/ESGenerator.cs b/Source/Bind/ES/ESGenerator.cs index b0143c77..de626bbe 100644 --- a/Source/Bind/ES/ESGenerator.cs +++ b/Source/Bind/ES/ESGenerator.cs @@ -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); diff --git a/Source/Bind/GL2/Generator.cs b/Source/Bind/GL2/Generator.cs index 53342946..485895ee 100644 --- a/Source/Bind/GL2/Generator.cs +++ b/Source/Bind/GL2/Generator.cs @@ -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 CSTypes) { - sw.WriteLine("using System;"); sw.WriteLine(); foreach (string s in CSTypes.Keys) { diff --git a/Source/Bind/Main.cs b/Source/Bind/Main.cs index 1cf57a70..b43aa04e 100644 --- a/Source/Bind/Main.cs +++ b/Source/Bind/Main.cs @@ -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( diff --git a/Source/Bind/Settings.cs b/Source/Bind/Settings.cs index 3ee02d20..99a4e501 100644 --- a/Source/Bind/Settings.cs +++ b/Source/Bind/Settings.cs @@ -125,6 +125,8 @@ namespace Bind NoDocumentation = 0x400, /// Disables ErrorHelper generation. NoDebugHelpers = 0x800, + /// Generate both typed and untyped ("All") signatures for enum parameters. + KeepUntypedEnums = 0x1000, Tao = ConstIntEnums | NoAdvancedEnumProcessing | NoPublicUnsafeFunctions | diff --git a/Source/Bind/Specifications/ES20/overrides.xml b/Source/Bind/Specifications/ES20/overrides.xml index 600cc3e7..4319131c 100644 --- a/Source/Bind/Specifications/ES20/overrides.xml +++ b/Source/Bind/Specifications/ES20/overrides.xml @@ -1,17 +1,808 @@ - - - - - String - - - String* - - - out - - - out - - - + + + + + + + String + StringName + + + + ShaderBinaryFormat + + + + String* + + + + BlendEquationMode + + + + BlendEquationMode + BlendEquationMode + + + + BlendingFactorSrc + BlendingFactorDest + + + + BlendingFactorSrc + BlendingFactorDest + BlendingFactorSrc + BlendingFactorDest + + + + BufferTarget + + + + BufferTarget + BufferUsage + + + + BufferTarget + + + + VertexAttribPointerType + + + + HintTarget + HintMode + + + + StencilFunction + + + + CullFaceMode + StencilFunction + + + + CullFaceMode + + + + StencilOp + StencilOp + StencilOp + + + + CullFaceMode + StencilOp + StencilOp + StencilOp + + + + BufferTarget + BufferParameterName + + + + ClearBufferMask + + + + ShaderType + + + + ShaderType + ShaderPrecision + + + + CullFaceMode + + + + DepthFunction + + + + BeginMode + + + + BeginMode + DrawElementsType + + + + EnableCap + + + + EnableCap + + + + EnableCap + + + + FrontFaceDirection + + + + ActiveAttribType + + + + ActiveUniformType + + + + ErrorCode + + + + ProgramParameter + + + + ShaderParameter + + + + StringName + + + + VertexAttribParameter + + + + VertexAttribPointerParameter + + + + TextureUnit + + + + TextureTarget + + + + TextureTarget + + + + TextureTarget + GetTextureParameter + + + + TextureTarget + TextureParameterName + + + + TextureTarget + PixelInternalFormat + PixelFormat + PixelType + + + + TextureTarget + PixelFormat + PixelType + + + + TextureTarget + PixelInternalFormat + + + + TextureTarget + + + + TextureTarget + PixelInternalFormat + + + + TextureTarget + PixelFormat + + + + PixelFormat + PixelType + + + + FramebufferErrorCode + FramebufferTarget + + + + FramebufferTarget + + + + RenderbufferTarget + + + + RenderbufferTarget + RenderbufferInternalFormat + + + + RenderbufferTarget + RenderbufferParameterName + + + + FramebufferTarget + FramebufferSlot + RenderbufferTarget + + + + FramebufferTarget + FramebufferSlot + TextureTarget + + + + FramebufferTarget + FramebufferSlot + FramebufferParameterName + + + + PixelStoreParameter + + + + GetPName + + + + GetPName + + + + GetPName + + + + ErrorCode + + + + in + + + + in + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Source/Bind/Specifications/ES20/signatures.xml b/Source/Bind/Specifications/ES20/signatures.xml index fabc1dca..31f8908c 100644 --- a/Source/Bind/Specifications/ES20/signatures.xml +++ b/Source/Bind/Specifications/ES20/signatures.xml @@ -1,17 +1,17 @@ - + - + - + @@ -21,11 +21,11 @@ - + - + @@ -34,12 +34,12 @@ - + - + @@ -49,20 +49,20 @@ - + - + - + - + @@ -74,17 +74,17 @@ - + - + - + @@ -94,7 +94,7 @@ - + @@ -106,27 +106,27 @@ - + - + - + - + - + @@ -162,11 +162,11 @@ - + - + @@ -214,42 +214,42 @@ - + - + - + - + - + - + - + - + @@ -262,66 +262,66 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -330,34 +330,34 @@ - + - + - + - + - + - + - + - + - + @@ -365,23 +365,23 @@ - + - + - + - + - + @@ -392,11 +392,11 @@ - + - + @@ -404,7 +404,7 @@ - + @@ -426,13 +426,13 @@ - + - + @@ -442,7 +442,7 @@ - + @@ -451,29 +451,29 @@ - + - + - + - + - + @@ -485,7 +485,7 @@ - + @@ -520,12 +520,12 @@ - + - + @@ -542,7 +542,7 @@ - + @@ -567,51 +567,51 @@ - + - - + + - + - - + + - + - - + + - + - + - - + + @@ -891,7 +891,7 @@ - + @@ -900,60 +900,60 @@ - + - + - + - - - - + + + + - - - - + + + + - - + + - + - + - + @@ -961,65 +961,65 @@ - + - + - + - - + + - + - + - - + + - + - - + + - - + + @@ -1029,48 +1029,48 @@ - + - + - + - + - + - + - + - + @@ -1456,12 +1456,12 @@ - + - + @@ -1537,15 +1537,15 @@ - + - - - + + + @@ -1600,15 +1600,15 @@ - + - + - - + + \ No newline at end of file diff --git a/Source/Bind/Specifications/GL2/gloverrides.xml b/Source/Bind/Specifications/GL2/gloverrides.xml index bf908b27..decc78d1 100644 --- a/Source/Bind/Specifications/GL2/gloverrides.xml +++ b/Source/Bind/Specifications/GL2/gloverrides.xml @@ -142,7 +142,7 @@ - VertexAttribPointerType + VertexAttribPointerParameter diff --git a/Source/Bind/Structures/Delegate.cs b/Source/Bind/Structures/Delegate.cs index dee39717..bd2f9d2b 100644 --- a/Source/Bind/Structures/Delegate.cs +++ b/Source/Bind/Structures/Delegate.cs @@ -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 /// - /// 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. /// 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 wrappers = new List(); - 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 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 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 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(); diff --git a/Source/Bind/Structures/Function.cs b/Source/Bind/Structures/Function.cs index c0fc66c7..6308bffa 100644 --- a/Source/Bind/Structures/Function.cs +++ b/Source/Bind/Structures/Function.cs @@ -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 handle_statements = new List(); - readonly List handle_release_statements = new List(); - readonly List fixed_statements = new List(); - readonly List assign_statements = new List(); + readonly static List handle_statements = new List(); + readonly static List handle_release_statements = new List(); + readonly static List fixed_statements = new List(); + readonly static List assign_statements = new List(); // 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())); } diff --git a/Source/Bind/Structures/Parameter.cs b/Source/Bind/Structures/Parameter.cs index a5978cc1..f9c09ad1 100644 --- a/Source/Bind/Structures/Parameter.cs +++ b/Source/Bind/Structures/Parameter.cs @@ -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 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)); } } diff --git a/Source/Bind/Structures/Type.cs b/Source/Bind/Structures/Type.cs index be5ed2d8..1b4564da 100644 --- a/Source/Bind/Structures/Type.cs +++ b/Source/Bind/Structures/Type.cs @@ -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; diff --git a/Source/Converter/ESCLParser.cs b/Source/Converter/ESCLParser.cs index c235f5eb..0a54cda7 100644 --- a/Source/Converter/ESCLParser.cs +++ b/Source/Converter/ESCLParser.cs @@ -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" } }; diff --git a/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs b/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs index e328bc5b..e91b888b 100644 --- a/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs +++ b/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs @@ -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 /// protected override void OnRenderFrame(FrameEventArgs e) { - GL.Clear((uint)(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit)); + GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); this.SwapBuffers(); } diff --git a/Source/OpenTK/Compute/CL10/CL.cs b/Source/OpenTK/Compute/CL10/CL.cs index 66d83b42..631cd8fc 100644 --- a/Source/OpenTK/Compute/CL10/CL.cs +++ b/Source/OpenTK/Compute/CL10/CL.cs @@ -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 = ®ion) @@ -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 = ®ion) @@ -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; } diff --git a/Source/OpenTK/Compute/CL10/Core.cs b/Source/OpenTK/Compute/CL10/Core.cs index eda6473a..48bbe6b6 100644 --- a/Source/OpenTK/Compute/CL10/Core.cs +++ b/Source/OpenTK/Compute/CL10/Core.cs @@ -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); diff --git a/Source/OpenTK/Compute/CL10/Delegates.cs b/Source/OpenTK/Compute/CL10/Delegates.cs index c1ec4fbd..447e673a 100644 --- a/Source/OpenTK/Compute/CL10/Delegates.cs +++ b/Source/OpenTK/Compute/CL10/Delegates.cs @@ -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); diff --git a/Source/OpenTK/Graphics/ES10/Core.cs b/Source/OpenTK/Graphics/ES10/Core.cs index f58b059e..a94cf0c9 100644 --- a/Source/OpenTK/Graphics/ES10/Core.cs +++ b/Source/OpenTK/Graphics/ES10/Core.cs @@ -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); diff --git a/Source/OpenTK/Graphics/ES10/Delegates.cs b/Source/OpenTK/Graphics/ES10/Delegates.cs index 8f99f2b5..8a6d11e8 100644 --- a/Source/OpenTK/Graphics/ES10/Delegates.cs +++ b/Source/OpenTK/Graphics/ES10/Delegates.cs @@ -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); diff --git a/Source/OpenTK/Graphics/ES10/ES.cs b/Source/OpenTK/Graphics/ES10/ES.cs index 249f7d92..8ede4550 100644 --- a/Source/OpenTK/Graphics/ES10/ES.cs +++ b/Source/OpenTK/Graphics/ES10/ES.cs @@ -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)) diff --git a/Source/OpenTK/Graphics/ES11/Core.cs b/Source/OpenTK/Graphics/ES11/Core.cs index 9bbc0efc..2df43124 100644 --- a/Source/OpenTK/Graphics/ES11/Core.cs +++ b/Source/OpenTK/Graphics/ES11/Core.cs @@ -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); diff --git a/Source/OpenTK/Graphics/ES11/Delegates.cs b/Source/OpenTK/Graphics/ES11/Delegates.cs index 7050ebfa..25979aea 100644 --- a/Source/OpenTK/Graphics/ES11/Delegates.cs +++ b/Source/OpenTK/Graphics/ES11/Delegates.cs @@ -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); diff --git a/Source/OpenTK/Graphics/ES11/ES.cs b/Source/OpenTK/Graphics/ES11/ES.cs index 76537929..3c0d6bfd 100644 --- a/Source/OpenTK/Graphics/ES11/ES.cs +++ b/Source/OpenTK/Graphics/ES11/ES.cs @@ -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)) diff --git a/Source/OpenTK/Graphics/ES20/Core.cs b/Source/OpenTK/Graphics/ES20/Core.cs index c1fbda1a..e7b43343 100644 --- a/Source/OpenTK/Graphics/ES20/Core.cs +++ b/Source/OpenTK/Graphics/ES20/Core.cs @@ -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); diff --git a/Source/OpenTK/Graphics/ES20/Delegates.cs b/Source/OpenTK/Graphics/ES20/Delegates.cs index 935e895b..7fc4aaa0 100644 --- a/Source/OpenTK/Graphics/ES20/Delegates.cs +++ b/Source/OpenTK/Graphics/ES20/Delegates.cs @@ -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); diff --git a/Source/OpenTK/Graphics/ES20/ES.cs b/Source/OpenTK/Graphics/ES20/ES.cs index 7c062ce5..7ca68d4d 100644 --- a/Source/OpenTK/Graphics/ES20/ES.cs +++ b/Source/OpenTK/Graphics/ES20/ES.cs @@ -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 @@ -212,7 +213,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - unsafe void GenPerfMonitors(Int32 n, Int32* monitors) + unsafe void GenPerfMonitors(Int32 n, [OutAttribute] Int32* monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -226,7 +227,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - void GenPerfMonitors(Int32 n, Int32[] monitors) + void GenPerfMonitors(Int32 n, [OutAttribute] Int32[] monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -246,7 +247,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - void GenPerfMonitors(Int32 n, ref Int32 monitors) + void GenPerfMonitors(Int32 n, [OutAttribute] out Int32 monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -257,6 +258,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* monitors_ptr = &monitors) { Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + monitors = *monitors_ptr; } } #if DEBUG @@ -267,7 +269,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - void GenPerfMonitors(Int32 n, ref UInt32 monitors) + void GenPerfMonitors(Int32 n, [OutAttribute] out UInt32 monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -278,6 +280,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* monitors_ptr = &monitors) { Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + monitors = *monitors_ptr; } } #if DEBUG @@ -288,7 +291,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - unsafe void GenPerfMonitors(Int32 n, UInt32* monitors) + unsafe void GenPerfMonitors(Int32 n, [OutAttribute] UInt32* monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -303,7 +306,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - void GenPerfMonitors(Int32 n, UInt32[] monitors) + void GenPerfMonitors(Int32 n, [OutAttribute] UInt32[] monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -324,7 +327,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - unsafe void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, Int32* data, Int32* bytesWritten) + unsafe void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] Int32* data, [OutAttribute] Int32* bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -338,7 +341,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, Int32[] data, Int32[] bytesWritten) + void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] Int32[] data, [OutAttribute] Int32[] bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -359,7 +362,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, ref Int32 data, ref Int32 bytesWritten) + void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] out Int32 data, [OutAttribute] out Int32 bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -371,6 +374,8 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* bytesWritten_ptr = &bytesWritten) { Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr); + data = *data_ptr; + bytesWritten = *bytesWritten_ptr; } } #if DEBUG @@ -381,7 +386,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, ref UInt32 data, ref Int32 bytesWritten) + void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] out UInt32 data, [OutAttribute] out Int32 bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -393,6 +398,8 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* bytesWritten_ptr = &bytesWritten) { Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr); + data = *data_ptr; + bytesWritten = *bytesWritten_ptr; } } #if DEBUG @@ -403,7 +410,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - unsafe void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32* data, Int32* bytesWritten) + unsafe void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] UInt32* data, [OutAttribute] Int32* bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -418,7 +425,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32[] data, Int32[] bytesWritten) + void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] UInt32[] data, [OutAttribute] Int32[] bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -532,7 +539,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] public static - void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.ES20.All pname, IntPtr data) + void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr data) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -644,7 +651,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] public static - void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, IntPtr data) + void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr data) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -659,7 +666,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - unsafe void GetPerfMonitorCounters(Int32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, Int32* counters) + unsafe void GetPerfMonitorCounters(Int32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] Int32* counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -673,7 +680,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - void GetPerfMonitorCounters(Int32 group, Int32[] numCounters, Int32[] maxActiveCounters, Int32 counterSize, Int32[] counters) + void GetPerfMonitorCounters(Int32 group, [OutAttribute] Int32[] numCounters, [OutAttribute] Int32[] maxActiveCounters, Int32 counterSize, [OutAttribute] Int32[] counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -695,7 +702,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - void GetPerfMonitorCounters(Int32 group, ref Int32 numCounters, ref Int32 maxActiveCounters, Int32 counterSize, ref Int32 counters) + void GetPerfMonitorCounters(Int32 group, [OutAttribute] out Int32 numCounters, [OutAttribute] out Int32 maxActiveCounters, Int32 counterSize, [OutAttribute] out Int32 counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -708,6 +715,9 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* counters_ptr = &counters) { Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters_ptr, (Int32*)maxActiveCounters_ptr, (Int32)counterSize, (UInt32*)counters_ptr); + numCounters = *numCounters_ptr; + maxActiveCounters = *maxActiveCounters_ptr; + counters = *counters_ptr; } } #if DEBUG @@ -718,7 +728,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - unsafe void GetPerfMonitorCounters(UInt32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, UInt32* counters) + unsafe void GetPerfMonitorCounters(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -733,7 +743,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - void GetPerfMonitorCounters(UInt32 group, Int32[] numCounters, Int32[] maxActiveCounters, Int32 counterSize, UInt32[] counters) + void GetPerfMonitorCounters(UInt32 group, [OutAttribute] Int32[] numCounters, [OutAttribute] Int32[] maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32[] counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -756,7 +766,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - void GetPerfMonitorCounters(UInt32 group, ref Int32 numCounters, ref Int32 maxActiveCounters, Int32 counterSize, ref UInt32 counters) + void GetPerfMonitorCounters(UInt32 group, [OutAttribute] out Int32 numCounters, [OutAttribute] out Int32 maxActiveCounters, Int32 counterSize, [OutAttribute] out UInt32 counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -769,6 +779,9 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* counters_ptr = &counters) { Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters_ptr, (Int32*)maxActiveCounters_ptr, (Int32)counterSize, (UInt32*)counters_ptr); + numCounters = *numCounters_ptr; + maxActiveCounters = *maxActiveCounters_ptr; + counters = *counters_ptr; } } #if DEBUG @@ -779,13 +792,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, Int32* length, String counterString) + unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString); #if DEBUG } #endif @@ -793,7 +806,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, Int32[] length, String counterString) + void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -803,7 +816,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); } } #if DEBUG @@ -813,7 +826,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, ref Int32 length, String counterString) + void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -823,7 +836,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); + length = *length_ptr; } } #if DEBUG @@ -834,13 +848,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, Int32* length, String counterString) + unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString); #if DEBUG } #endif @@ -849,7 +863,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, Int32[] length, String counterString) + void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -859,7 +873,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); } } #if DEBUG @@ -870,7 +884,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, ref Int32 length, String counterString) + void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -880,7 +894,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); + length = *length_ptr; } } #if DEBUG @@ -891,7 +906,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - unsafe void GetPerfMonitorGroup(Int32* numGroups, Int32 groupsSize, Int32* groups) + unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] Int32* groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -906,7 +921,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - unsafe void GetPerfMonitorGroup(Int32* numGroups, Int32 groupsSize, UInt32* groups) + unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -920,7 +935,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - void GetPerfMonitorGroup(Int32[] numGroups, Int32 groupsSize, Int32[] groups) + void GetPerfMonitorGroup([OutAttribute] Int32[] numGroups, Int32 groupsSize, [OutAttribute] Int32[] groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -942,7 +957,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - void GetPerfMonitorGroup(Int32[] numGroups, Int32 groupsSize, UInt32[] groups) + void GetPerfMonitorGroup([OutAttribute] Int32[] numGroups, Int32 groupsSize, [OutAttribute] UInt32[] groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -963,7 +978,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - void GetPerfMonitorGroup(ref Int32 numGroups, Int32 groupsSize, ref Int32 groups) + void GetPerfMonitorGroup([OutAttribute] out Int32 numGroups, Int32 groupsSize, [OutAttribute] out Int32 groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -975,6 +990,8 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* groups_ptr = &groups) { Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups_ptr, (Int32)groupsSize, (UInt32*)groups_ptr); + numGroups = *numGroups_ptr; + groups = *groups_ptr; } } #if DEBUG @@ -985,7 +1002,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - void GetPerfMonitorGroup(ref Int32 numGroups, Int32 groupsSize, ref UInt32 groups) + void GetPerfMonitorGroup([OutAttribute] out Int32 numGroups, Int32 groupsSize, [OutAttribute] out UInt32 groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -997,6 +1014,8 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* groups_ptr = &groups) { Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups_ptr, (Int32)groupsSize, (UInt32*)groups_ptr); + numGroups = *numGroups_ptr; + groups = *groups_ptr; } } #if DEBUG @@ -1007,13 +1026,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, Int32* length, String groupString) + unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString); #if DEBUG } #endif @@ -1021,7 +1040,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, Int32[] length, String groupString) + void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1031,7 +1050,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); } } #if DEBUG @@ -1041,7 +1060,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, ref Int32 length, String groupString) + void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1051,7 +1070,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); + length = *length_ptr; } } #if DEBUG @@ -1062,13 +1082,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, Int32* length, String groupString) + unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString); #if DEBUG } #endif @@ -1077,7 +1097,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, Int32[] length, String groupString) + void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1087,7 +1107,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); } } #if DEBUG @@ -1098,7 +1118,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, ref Int32 length, String groupString) + void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1108,7 +1128,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); + length = *length_ptr; } } #if DEBUG @@ -1241,13 +1262,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glActiveTexture")] public static - void ActiveTexture(OpenTK.Graphics.ES20.All texture) + void ActiveTexture(OpenTK.Graphics.ES20.TextureUnit texture) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glActiveTexture((OpenTK.Graphics.ES20.All)texture); + Delegates.glActiveTexture((OpenTK.Graphics.ES20.TextureUnit)texture); #if DEBUG } #endif @@ -1393,13 +1414,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindBuffer")] public static - void BindBuffer(OpenTK.Graphics.ES20.All target, Int32 buffer) + void BindBuffer(OpenTK.Graphics.ES20.BufferTarget target, Int32 buffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindBuffer((OpenTK.Graphics.ES20.All)target, (UInt32)buffer); + Delegates.glBindBuffer((OpenTK.Graphics.ES20.BufferTarget)target, (UInt32)buffer); #if DEBUG } #endif @@ -1422,13 +1443,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindBuffer")] public static - void BindBuffer(OpenTK.Graphics.ES20.All target, UInt32 buffer) + void BindBuffer(OpenTK.Graphics.ES20.BufferTarget target, UInt32 buffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindBuffer((OpenTK.Graphics.ES20.All)target, (UInt32)buffer); + Delegates.glBindBuffer((OpenTK.Graphics.ES20.BufferTarget)target, (UInt32)buffer); #if DEBUG } #endif @@ -1436,13 +1457,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindFramebuffer")] public static - void BindFramebuffer(OpenTK.Graphics.ES20.All target, Int32 framebuffer) + void BindFramebuffer(OpenTK.Graphics.ES20.FramebufferTarget target, Int32 framebuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindFramebuffer((OpenTK.Graphics.ES20.All)target, (UInt32)framebuffer); + Delegates.glBindFramebuffer((OpenTK.Graphics.ES20.FramebufferTarget)target, (UInt32)framebuffer); #if DEBUG } #endif @@ -1451,13 +1472,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindFramebuffer")] public static - void BindFramebuffer(OpenTK.Graphics.ES20.All target, UInt32 framebuffer) + void BindFramebuffer(OpenTK.Graphics.ES20.FramebufferTarget target, UInt32 framebuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindFramebuffer((OpenTK.Graphics.ES20.All)target, (UInt32)framebuffer); + Delegates.glBindFramebuffer((OpenTK.Graphics.ES20.FramebufferTarget)target, (UInt32)framebuffer); #if DEBUG } #endif @@ -1465,13 +1486,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindRenderbuffer")] public static - void BindRenderbuffer(OpenTK.Graphics.ES20.All target, Int32 renderbuffer) + void BindRenderbuffer(OpenTK.Graphics.ES20.RenderbufferTarget target, Int32 renderbuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindRenderbuffer((OpenTK.Graphics.ES20.All)target, (UInt32)renderbuffer); + Delegates.glBindRenderbuffer((OpenTK.Graphics.ES20.RenderbufferTarget)target, (UInt32)renderbuffer); #if DEBUG } #endif @@ -1480,13 +1501,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindRenderbuffer")] public static - void BindRenderbuffer(OpenTK.Graphics.ES20.All target, UInt32 renderbuffer) + void BindRenderbuffer(OpenTK.Graphics.ES20.RenderbufferTarget target, UInt32 renderbuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindRenderbuffer((OpenTK.Graphics.ES20.All)target, (UInt32)renderbuffer); + Delegates.glBindRenderbuffer((OpenTK.Graphics.ES20.RenderbufferTarget)target, (UInt32)renderbuffer); #if DEBUG } #endif @@ -1508,13 +1529,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindTexture")] public static - void BindTexture(OpenTK.Graphics.ES20.All target, Int32 texture) + void BindTexture(OpenTK.Graphics.ES20.TextureTarget target, Int32 texture) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindTexture((OpenTK.Graphics.ES20.All)target, (UInt32)texture); + Delegates.glBindTexture((OpenTK.Graphics.ES20.TextureTarget)target, (UInt32)texture); #if DEBUG } #endif @@ -1537,13 +1558,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindTexture")] public static - void BindTexture(OpenTK.Graphics.ES20.All target, UInt32 texture) + void BindTexture(OpenTK.Graphics.ES20.TextureTarget target, UInt32 texture) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindTexture((OpenTK.Graphics.ES20.All)target, (UInt32)texture); + Delegates.glBindTexture((OpenTK.Graphics.ES20.TextureTarget)target, (UInt32)texture); #if DEBUG } #endif @@ -1583,13 +1604,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendEquation")] public static - void BlendEquation(OpenTK.Graphics.ES20.All mode) + void BlendEquation(OpenTK.Graphics.ES20.BlendEquationMode mode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendEquation((OpenTK.Graphics.ES20.All)mode); + Delegates.glBlendEquation((OpenTK.Graphics.ES20.BlendEquationMode)mode); #if DEBUG } #endif @@ -1611,13 +1632,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendEquationSeparate")] public static - void BlendEquationSeparate(OpenTK.Graphics.ES20.All modeRGB, OpenTK.Graphics.ES20.All modeAlpha) + void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendEquationMode modeRGB, OpenTK.Graphics.ES20.BlendEquationMode modeAlpha) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendEquationSeparate((OpenTK.Graphics.ES20.All)modeRGB, (OpenTK.Graphics.ES20.All)modeAlpha); + Delegates.glBlendEquationSeparate((OpenTK.Graphics.ES20.BlendEquationMode)modeRGB, (OpenTK.Graphics.ES20.BlendEquationMode)modeAlpha); #if DEBUG } #endif @@ -1639,13 +1660,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendFunc")] public static - void BlendFunc(OpenTK.Graphics.ES20.All sfactor, OpenTK.Graphics.ES20.All dfactor) + void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDest dfactor) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendFunc((OpenTK.Graphics.ES20.All)sfactor, (OpenTK.Graphics.ES20.All)dfactor); + Delegates.glBlendFunc((OpenTK.Graphics.ES20.BlendingFactorSrc)sfactor, (OpenTK.Graphics.ES20.BlendingFactorDest)dfactor); #if DEBUG } #endif @@ -1677,13 +1698,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendFuncSeparate")] public static - void BlendFuncSeparate(OpenTK.Graphics.ES20.All srcRGB, OpenTK.Graphics.ES20.All dstRGB, OpenTK.Graphics.ES20.All srcAlpha, OpenTK.Graphics.ES20.All dstAlpha) + void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDest dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDest dstAlpha) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendFuncSeparate((OpenTK.Graphics.ES20.All)srcRGB, (OpenTK.Graphics.ES20.All)dstRGB, (OpenTK.Graphics.ES20.All)srcAlpha, (OpenTK.Graphics.ES20.All)dstAlpha); + Delegates.glBlendFuncSeparate((OpenTK.Graphics.ES20.BlendingFactorSrc)srcRGB, (OpenTK.Graphics.ES20.BlendingFactorDest)dstRGB, (OpenTK.Graphics.ES20.BlendingFactorSrc)srcAlpha, (OpenTK.Graphics.ES20.BlendingFactorDest)dstAlpha); #if DEBUG } #endif @@ -1715,7 +1736,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] public static - void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] ref T2 data, OpenTK.Graphics.ES20.All usage) + void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] ref T2 data, OpenTK.Graphics.ES20.BufferUsage usage) where T2 : struct { #if DEBUG @@ -1725,7 +1746,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.BufferUsage)usage); data = (T2)data_ptr.Target; } finally @@ -1763,7 +1784,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] public static - void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] T2[,,] data, OpenTK.Graphics.ES20.All usage) + void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] T2[,,] data, OpenTK.Graphics.ES20.BufferUsage usage) where T2 : struct { #if DEBUG @@ -1773,7 +1794,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.BufferUsage)usage); } finally { @@ -1810,7 +1831,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] public static - void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] T2[,] data, OpenTK.Graphics.ES20.All usage) + void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] T2[,] data, OpenTK.Graphics.ES20.BufferUsage usage) where T2 : struct { #if DEBUG @@ -1820,7 +1841,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.BufferUsage)usage); } finally { @@ -1857,7 +1878,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] public static - void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] T2[] data, OpenTK.Graphics.ES20.All usage) + void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] T2[] data, OpenTK.Graphics.ES20.BufferUsage usage) where T2 : struct { #if DEBUG @@ -1867,7 +1888,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.BufferUsage)usage); } finally { @@ -1904,13 +1925,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] public static - void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.All usage) + void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ES20.All)usage); + Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ES20.BufferUsage)usage); #if DEBUG } #endif @@ -1942,7 +1963,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] public static - void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] ref T3 data) + void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] ref T3 data) where T3 : struct { #if DEBUG @@ -1952,7 +1973,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); data = (T3)data_ptr.Target; } finally @@ -1990,7 +2011,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] public static - void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,,] data) + void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,,] data) where T3 : struct { #if DEBUG @@ -2000,7 +2021,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2037,7 +2058,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] public static - void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,] data) + void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,] data) where T3 : struct { #if DEBUG @@ -2047,7 +2068,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2084,7 +2105,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] public static - void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[] data) + void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[] data) where T3 : struct { #if DEBUG @@ -2094,7 +2115,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2131,13 +2152,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] public static - void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, IntPtr data) + void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, IntPtr data) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); #if DEBUG } #endif @@ -2145,13 +2166,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCheckFramebufferStatus")] public static - OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.All target) + OpenTK.Graphics.ES20.FramebufferErrorCode CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glCheckFramebufferStatus((OpenTK.Graphics.ES20.All)target); + return Delegates.glCheckFramebufferStatus((OpenTK.Graphics.ES20.FramebufferTarget)target); #if DEBUG } #endif @@ -2168,37 +2189,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glClear")] public static - void Clear(Int32 mask) + void Clear(OpenTK.Graphics.ES20.ClearBufferMask mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glClear((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Clear buffers to preset values - /// - /// - /// - /// Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT. - /// - /// - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glClear")] - public static - void Clear(UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClear((UInt32)mask); + Delegates.glClear((OpenTK.Graphics.ES20.ClearBufferMask)mask); #if DEBUG } #endif @@ -2389,7 +2386,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] public static - void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] ref T7 data) + void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] ref T7 data) where T7 : struct { #if DEBUG @@ -2399,7 +2396,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); data = (T7)data_ptr.Target; } finally @@ -2457,7 +2454,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] public static - void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,,] data) + void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,,] data) where T7 : struct { #if DEBUG @@ -2467,7 +2464,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2524,7 +2521,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] public static - void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,] data) + void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,] data) where T7 : struct { #if DEBUG @@ -2534,7 +2531,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2591,7 +2588,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] public static - void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[] data) + void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[] data) where T7 : struct { #if DEBUG @@ -2601,7 +2598,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2658,13 +2655,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] public 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) + void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); #if DEBUG } #endif @@ -2721,7 +2718,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public 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, [InAttribute, OutAttribute] ref T8 data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, [InAttribute, OutAttribute] ref T8 data) where T8 : struct { #if DEBUG @@ -2731,7 +2728,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); data = (T8)data_ptr.Target; } finally @@ -2794,7 +2791,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public 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, [InAttribute, OutAttribute] T8[,,] data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, [InAttribute, OutAttribute] T8[,,] data) where T8 : struct { #if DEBUG @@ -2804,7 +2801,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2866,7 +2863,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public 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, [InAttribute, OutAttribute] T8[,] data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, [InAttribute, OutAttribute] T8[,] data) where T8 : struct { #if DEBUG @@ -2876,7 +2873,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2938,7 +2935,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public 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, [InAttribute, OutAttribute] T8[] data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, [InAttribute, OutAttribute] T8[] data) where T8 : struct { #if DEBUG @@ -2948,7 +2945,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -3010,13 +3007,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public 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) + 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) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (Int32)imageSize, (IntPtr)data); #if DEBUG } #endif @@ -3063,13 +3060,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCopyTexImage2D")] public 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) + void CopyTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCopyTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); + Delegates.glCopyTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); #if DEBUG } #endif @@ -3116,13 +3113,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCopyTexSubImage2D")] public static - void CopyTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height) + void CopyTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCopyTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + Delegates.glCopyTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); #if DEBUG } #endif @@ -3157,13 +3154,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCreateShader")] public static - Int32 CreateShader(OpenTK.Graphics.ES20.All type) + Int32 CreateShader(OpenTK.Graphics.ES20.ShaderType type) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glCreateShader((OpenTK.Graphics.ES20.All)type); + return Delegates.glCreateShader((OpenTK.Graphics.ES20.ShaderType)type); #if DEBUG } #endif @@ -3180,13 +3177,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCullFace")] public static - void CullFace(OpenTK.Graphics.ES20.All mode) + void CullFace(OpenTK.Graphics.ES20.CullFaceMode mode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCullFace((OpenTK.Graphics.ES20.All)mode); + Delegates.glCullFace((OpenTK.Graphics.ES20.CullFaceMode)mode); #if DEBUG } #endif @@ -3913,13 +3910,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDepthFunc")] public static - void DepthFunc(OpenTK.Graphics.ES20.All func) + void DepthFunc(OpenTK.Graphics.ES20.DepthFunction func) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDepthFunc((OpenTK.Graphics.ES20.All)func); + Delegates.glDepthFunc((OpenTK.Graphics.ES20.DepthFunction)func); #if DEBUG } #endif @@ -4035,13 +4032,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDisable")] public static - void Disable(OpenTK.Graphics.ES20.All cap) + void Disable(OpenTK.Graphics.ES20.EnableCap cap) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDisable((OpenTK.Graphics.ES20.All)cap); + Delegates.glDisable((OpenTK.Graphics.ES20.EnableCap)cap); #if DEBUG } #endif @@ -4126,13 +4123,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawArrays")] public static - void DrawArrays(OpenTK.Graphics.ES20.All mode, Int32 first, Int32 count) + void DrawArrays(OpenTK.Graphics.ES20.BeginMode mode, Int32 first, Int32 count) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDrawArrays((OpenTK.Graphics.ES20.All)mode, (Int32)first, (Int32)count); + Delegates.glDrawArrays((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)first, (Int32)count); #if DEBUG } #endif @@ -4164,7 +4161,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T3 indices) + void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] ref T3 indices) where T3 : struct { #if DEBUG @@ -4174,7 +4171,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); indices = (T3)indices_ptr.Target; } finally @@ -4212,7 +4209,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T3[,,] indices) + void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[,,] indices) where T3 : struct { #if DEBUG @@ -4222,7 +4219,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } finally { @@ -4259,7 +4256,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T3[,] indices) + void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[,] indices) where T3 : struct { #if DEBUG @@ -4269,7 +4266,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } finally { @@ -4306,7 +4303,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T3[] indices) + void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[] indices) where T3 : struct { #if DEBUG @@ -4316,7 +4313,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } finally { @@ -4353,13 +4350,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices) + void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices); + Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices); #if DEBUG } #endif @@ -4376,13 +4373,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEnable")] public static - void Enable(OpenTK.Graphics.ES20.All cap) + void Enable(OpenTK.Graphics.ES20.EnableCap cap) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glEnable((OpenTK.Graphics.ES20.All)cap); + Delegates.glEnable((OpenTK.Graphics.ES20.EnableCap)cap); #if DEBUG } #endif @@ -4502,13 +4499,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFramebufferRenderbuffer")] public static - void FramebufferRenderbuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All renderbuffertarget, Int32 renderbuffer) + void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, Int32 renderbuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)renderbuffertarget, (UInt32)renderbuffer); + Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); #if DEBUG } #endif @@ -4517,13 +4514,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFramebufferRenderbuffer")] public static - void FramebufferRenderbuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All renderbuffertarget, UInt32 renderbuffer) + void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)renderbuffertarget, (UInt32)renderbuffer); + Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); #if DEBUG } #endif @@ -4531,13 +4528,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFramebufferTexture2D")] public static - void FramebufferTexture2D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, Int32 texture, Int32 level) + void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.TextureTarget textarget, Int32 texture, Int32 level) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)textarget, (UInt32)texture, (Int32)level); + Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.TextureTarget)textarget, (UInt32)texture, (Int32)level); #if DEBUG } #endif @@ -4546,13 +4543,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFramebufferTexture2D")] public static - void FramebufferTexture2D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level) + void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.TextureTarget textarget, UInt32 texture, Int32 level) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)textarget, (UInt32)texture, (Int32)level); + Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.TextureTarget)textarget, (UInt32)texture, (Int32)level); #if DEBUG } #endif @@ -4569,13 +4566,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFrontFace")] public static - void FrontFace(OpenTK.Graphics.ES20.All mode) + void FrontFace(OpenTK.Graphics.ES20.FrontFaceDirection mode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFrontFace((OpenTK.Graphics.ES20.All)mode); + Delegates.glFrontFace((OpenTK.Graphics.ES20.FrontFaceDirection)mode); #if DEBUG } #endif @@ -4598,7 +4595,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - unsafe void GenBuffers(Int32 n, Int32* buffers) + unsafe void GenBuffers(Int32 n, [OutAttribute] Int32* buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4626,7 +4623,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - void GenBuffers(Int32 n, Int32[] buffers) + void GenBuffers(Int32 n, [OutAttribute] Int32[] buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4660,7 +4657,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - void GenBuffers(Int32 n, ref Int32 buffers) + void GenBuffers(Int32 n, [OutAttribute] out Int32 buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4671,6 +4668,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* buffers_ptr = &buffers) { Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); + buffers = *buffers_ptr; } } #if DEBUG @@ -4695,7 +4693,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - void GenBuffers(Int32 n, ref UInt32 buffers) + void GenBuffers(Int32 n, [OutAttribute] out UInt32 buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4706,6 +4704,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* buffers_ptr = &buffers) { Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); + buffers = *buffers_ptr; } } #if DEBUG @@ -4730,7 +4729,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - unsafe void GenBuffers(Int32 n, UInt32* buffers) + unsafe void GenBuffers(Int32 n, [OutAttribute] UInt32* buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4759,7 +4758,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - void GenBuffers(Int32 n, UInt32[] buffers) + void GenBuffers(Int32 n, [OutAttribute] UInt32[] buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4779,13 +4778,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenerateMipmap")] public static - void GenerateMipmap(OpenTK.Graphics.ES20.All target) + void GenerateMipmap(OpenTK.Graphics.ES20.TextureTarget target) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGenerateMipmap((OpenTK.Graphics.ES20.All)target); + Delegates.glGenerateMipmap((OpenTK.Graphics.ES20.TextureTarget)target); #if DEBUG } #endif @@ -4794,7 +4793,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - unsafe void GenFramebuffers(Int32 n, Int32* framebuffers) + unsafe void GenFramebuffers(Int32 n, [OutAttribute] Int32* framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4808,7 +4807,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - void GenFramebuffers(Int32 n, Int32[] framebuffers) + void GenFramebuffers(Int32 n, [OutAttribute] Int32[] framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4828,7 +4827,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - void GenFramebuffers(Int32 n, ref Int32 framebuffers) + void GenFramebuffers(Int32 n, [OutAttribute] out Int32 framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4839,6 +4838,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* framebuffers_ptr = &framebuffers) { Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + framebuffers = *framebuffers_ptr; } } #if DEBUG @@ -4849,7 +4849,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - void GenFramebuffers(Int32 n, ref UInt32 framebuffers) + void GenFramebuffers(Int32 n, [OutAttribute] out UInt32 framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4860,6 +4860,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* framebuffers_ptr = &framebuffers) { Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + framebuffers = *framebuffers_ptr; } } #if DEBUG @@ -4870,7 +4871,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - unsafe void GenFramebuffers(Int32 n, UInt32* framebuffers) + unsafe void GenFramebuffers(Int32 n, [OutAttribute] UInt32* framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4885,7 +4886,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - void GenFramebuffers(Int32 n, UInt32[] framebuffers) + void GenFramebuffers(Int32 n, [OutAttribute] UInt32[] framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4906,7 +4907,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - unsafe void GenRenderbuffers(Int32 n, Int32* renderbuffers) + unsafe void GenRenderbuffers(Int32 n, [OutAttribute] Int32* renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4920,7 +4921,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - void GenRenderbuffers(Int32 n, Int32[] renderbuffers) + void GenRenderbuffers(Int32 n, [OutAttribute] Int32[] renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4940,7 +4941,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - void GenRenderbuffers(Int32 n, ref Int32 renderbuffers) + void GenRenderbuffers(Int32 n, [OutAttribute] out Int32 renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4951,6 +4952,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* renderbuffers_ptr = &renderbuffers) { Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + renderbuffers = *renderbuffers_ptr; } } #if DEBUG @@ -4961,7 +4963,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - void GenRenderbuffers(Int32 n, ref UInt32 renderbuffers) + void GenRenderbuffers(Int32 n, [OutAttribute] out UInt32 renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4972,6 +4974,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* renderbuffers_ptr = &renderbuffers) { Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + renderbuffers = *renderbuffers_ptr; } } #if DEBUG @@ -4982,7 +4985,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - unsafe void GenRenderbuffers(Int32 n, UInt32* renderbuffers) + unsafe void GenRenderbuffers(Int32 n, [OutAttribute] UInt32* renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4997,7 +5000,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - void GenRenderbuffers(Int32 n, UInt32[] renderbuffers) + void GenRenderbuffers(Int32 n, [OutAttribute] UInt32[] renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5032,7 +5035,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - unsafe void GenTextures(Int32 n, Int32* textures) + unsafe void GenTextures(Int32 n, [OutAttribute] Int32* textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5060,7 +5063,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - void GenTextures(Int32 n, Int32[] textures) + void GenTextures(Int32 n, [OutAttribute] Int32[] textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5094,7 +5097,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - void GenTextures(Int32 n, ref Int32 textures) + void GenTextures(Int32 n, [OutAttribute] out Int32 textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5105,6 +5108,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* textures_ptr = &textures) { Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); + textures = *textures_ptr; } } #if DEBUG @@ -5129,7 +5133,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - void GenTextures(Int32 n, ref UInt32 textures) + void GenTextures(Int32 n, [OutAttribute] out UInt32 textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5140,6 +5144,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* textures_ptr = &textures) { Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); + textures = *textures_ptr; } } #if DEBUG @@ -5164,7 +5169,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - unsafe void GenTextures(Int32 n, UInt32* textures) + unsafe void GenTextures(Int32 n, [OutAttribute] UInt32* textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5193,7 +5198,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - void GenTextures(Int32 n, UInt32[] textures) + void GenTextures(Int32 n, [OutAttribute] UInt32[] textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5253,13 +5258,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name) + unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -5306,7 +5311,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.All[] type, String name) + void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType[] type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5316,9 +5321,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) + fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (StringBuilder)name); } } #if DEBUG @@ -5367,7 +5372,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.All type, String name) + void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5377,9 +5382,12 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) + fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } #if DEBUG @@ -5429,13 +5437,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name) + unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -5483,7 +5491,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.All[] type, String name) + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType[] type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5493,9 +5501,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) + fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (StringBuilder)name); } } #if DEBUG @@ -5545,7 +5553,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.All type, String name) + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5555,9 +5563,12 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) + fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } #if DEBUG @@ -5607,13 +5618,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name) + unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -5660,7 +5671,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.All[] type, String name) + void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType[] type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5670,9 +5681,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) + fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (StringBuilder)name); } } #if DEBUG @@ -5721,7 +5732,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.All type, String name) + void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveUniformType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5731,9 +5742,12 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) + fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } #if DEBUG @@ -5783,13 +5797,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name) + unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -5837,7 +5851,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.All[] type, String name) + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType[] type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5847,9 +5861,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) + fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (StringBuilder)name); } } #if DEBUG @@ -5899,7 +5913,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.All type, String name) + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveUniformType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5909,9 +5923,12 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) + fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } #if DEBUG @@ -5946,7 +5963,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - unsafe void GetAttachedShaders(Int32 program, Int32 maxcount, Int32* count, Int32* shaders) + unsafe void GetAttachedShaders(Int32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] Int32* shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5984,7 +6001,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - void GetAttachedShaders(Int32 program, Int32 maxcount, Int32[] count, Int32[] shaders) + void GetAttachedShaders(Int32 program, Int32 maxcount, [OutAttribute] Int32[] count, [OutAttribute] Int32[] shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6029,7 +6046,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - void GetAttachedShaders(Int32 program, Int32 maxcount, ref Int32 count, ref Int32 shaders) + void GetAttachedShaders(Int32 program, Int32 maxcount, [OutAttribute] out Int32 count, [OutAttribute] out Int32 shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6041,6 +6058,8 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* shaders_ptr = &shaders) { Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count_ptr, (UInt32*)shaders_ptr); + count = *count_ptr; + shaders = *shaders_ptr; } } #if DEBUG @@ -6075,7 +6094,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, UInt32* shaders) + unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6114,7 +6133,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32[] count, UInt32[] shaders) + void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32[] count, [OutAttribute] UInt32[] shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6160,7 +6179,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - void GetAttachedShaders(UInt32 program, Int32 maxcount, ref Int32 count, ref UInt32 shaders) + void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] out Int32 count, [OutAttribute] out UInt32 shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6172,6 +6191,8 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* shaders_ptr = &shaders) { Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count_ptr, (UInt32*)shaders_ptr); + count = *count_ptr; + shaders = *shaders_ptr; } } #if DEBUG @@ -6239,13 +6260,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] public static - unsafe void GetBoolean(OpenTK.Graphics.ES20.All pname, bool* @params) + unsafe void GetBoolean(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params); + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetPName)pname, (bool*)@params); #if DEBUG } #endif @@ -6253,7 +6274,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] public static - void GetBoolean(OpenTK.Graphics.ES20.All pname, bool[] @params) + void GetBoolean(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6263,7 +6284,7 @@ namespace OpenTK.Graphics.ES20 { fixed (bool* @params_ptr = @params) { - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params_ptr); + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetPName)pname, (bool*)@params_ptr); } } #if DEBUG @@ -6273,7 +6294,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] public static - void GetBoolean(OpenTK.Graphics.ES20.All pname, ref bool @params) + void GetBoolean(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] out bool @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6283,7 +6304,8 @@ namespace OpenTK.Graphics.ES20 { fixed (bool* @params_ptr = &@params) { - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params_ptr); + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetPName)pname, (bool*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -6313,13 +6335,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] public static - unsafe void GetBufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferParameterName)pname, (Int32*)@params); #if DEBUG } #endif @@ -6346,7 +6368,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] public static - void GetBufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6356,7 +6378,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferParameterName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -6385,7 +6407,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] public static - void GetBufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6395,7 +6417,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferParameterName)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -6406,7 +6429,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, Int32* driverControls) + unsafe void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] Int32* driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6421,7 +6444,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls) + unsafe void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] UInt32* driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6435,7 +6458,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - void GetDriverControlsQCOM(Int32[] num, Int32 size, Int32[] driverControls) + void GetDriverControlsQCOM([OutAttribute] Int32[] num, Int32 size, [OutAttribute] Int32[] driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6457,7 +6480,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - void GetDriverControlsQCOM(Int32[] num, Int32 size, UInt32[] driverControls) + void GetDriverControlsQCOM([OutAttribute] Int32[] num, Int32 size, [OutAttribute] UInt32[] driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6478,7 +6501,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - void GetDriverControlsQCOM(ref Int32 num, Int32 size, ref Int32 driverControls) + void GetDriverControlsQCOM([OutAttribute] out Int32 num, Int32 size, [OutAttribute] out Int32 driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6490,6 +6513,8 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* driverControls_ptr = &driverControls) { Delegates.glGetDriverControlsQCOM((Int32*)num_ptr, (Int32)size, (UInt32*)driverControls_ptr); + num = *num_ptr; + driverControls = *driverControls_ptr; } } #if DEBUG @@ -6500,7 +6525,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - void GetDriverControlsQCOM(ref Int32 num, Int32 size, ref UInt32 driverControls) + void GetDriverControlsQCOM([OutAttribute] out Int32 num, Int32 size, [OutAttribute] out UInt32 driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6512,6 +6537,8 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* driverControls_ptr = &driverControls) { Delegates.glGetDriverControlsQCOM((Int32*)num_ptr, (Int32)size, (UInt32*)driverControls_ptr); + num = *num_ptr; + driverControls = *driverControls_ptr; } } #if DEBUG @@ -6522,13 +6549,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - unsafe void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, Int32* length, String driverControlString) + unsafe void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (StringBuilder)driverControlString); #if DEBUG } #endif @@ -6536,7 +6563,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, Int32[] length, String driverControlString) + void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6546,7 +6573,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)driverControlString); } } #if DEBUG @@ -6556,7 +6583,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, ref Int32 length, String driverControlString) + void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6566,7 +6593,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)driverControlString); + length = *length_ptr; } } #if DEBUG @@ -6577,13 +6605,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString) + unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (StringBuilder)driverControlString); #if DEBUG } #endif @@ -6592,7 +6620,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32[] length, String driverControlString) + void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6602,7 +6630,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)driverControlString); } } #if DEBUG @@ -6613,7 +6641,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, ref Int32 length, String driverControlString) + void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6623,7 +6651,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)driverControlString); + length = *length_ptr; } } #if DEBUG @@ -6637,14 +6666,14 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetError")] public static - OpenTK.Graphics.ES20.All GetError() + OpenTK.Graphics.ES20.ErrorCode GetError() { return Delegates.glGetError(); } [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] public static - void GetFloat(OpenTK.Graphics.ES20.All pname, ref Single @params) + void GetFloat(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6654,7 +6683,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetPName)pname, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -6665,13 +6695,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] public static - unsafe void GetFloat(OpenTK.Graphics.ES20.All pname, Single* @params) + unsafe void GetFloat(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params); + Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetPName)pname, (Single*)@params); #if DEBUG } #endif @@ -6679,7 +6709,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] public static - void GetFloat(OpenTK.Graphics.ES20.All pname, Single[] @params) + void GetFloat(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6689,7 +6719,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetPName)pname, (Single*)@params_ptr); } } #if DEBUG @@ -6700,13 +6730,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] public static - unsafe void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferParameterName pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferParameterName)pname, (Int32*)@params); #if DEBUG } #endif @@ -6714,7 +6744,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] public static - void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferParameterName pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6724,7 +6754,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferParameterName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -6734,7 +6764,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] public static - void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferParameterName pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6744,7 +6774,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferParameterName)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -6755,13 +6786,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] public static - unsafe void GetInteger(OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetInteger(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetPName)pname, (Int32*)@params); #if DEBUG } #endif @@ -6769,7 +6800,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] public static - void GetInteger(OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetInteger(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6779,7 +6810,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -6789,7 +6820,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] public static - void GetInteger(OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetInteger(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6799,7 +6830,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetPName)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -6834,13 +6866,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - unsafe void GetProgramInfoLog(Int32 program, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder infolog) + unsafe void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog); #if DEBUG } #endif @@ -6872,7 +6904,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(Int32 program, Int32 bufsize, Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6882,7 +6914,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); } } #if DEBUG @@ -6916,7 +6948,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(Int32 program, Int32 bufsize, ref Int32 length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6926,7 +6958,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); + length = *length_ptr; } } #if DEBUG @@ -6961,13 +6994,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder infolog) + unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog); #if DEBUG } #endif @@ -7000,7 +7033,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7010,7 +7043,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); } } #if DEBUG @@ -7045,7 +7078,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(UInt32 program, Int32 bufsize, ref Int32 length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7055,7 +7088,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); + length = *length_ptr; } } #if DEBUG @@ -7085,13 +7119,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - unsafe void GetProgram(Int32 program, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -7118,7 +7152,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(Int32 program, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7128,7 +7162,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7157,7 +7191,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(Int32 program, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7167,7 +7201,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -7197,13 +7232,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - unsafe void GetProgram(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -7231,7 +7266,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7241,7 +7276,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7271,7 +7306,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(UInt32 program, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7281,7 +7316,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -7292,13 +7328,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] public static - unsafe void GetRenderbufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.RenderbufferParameterName)pname, (Int32*)@params); #if DEBUG } #endif @@ -7306,7 +7342,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] public static - void GetRenderbufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7316,7 +7352,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.RenderbufferParameterName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7326,7 +7362,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] public static - void GetRenderbufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7336,7 +7372,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.RenderbufferParameterName)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -7371,13 +7408,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - unsafe void GetShaderInfoLog(Int32 shader, Int32 bufsize, Int32* length, String infolog) + unsafe void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog); #if DEBUG } #endif @@ -7409,7 +7446,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(Int32 shader, Int32 bufsize, Int32[] length, String infolog) + void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7419,7 +7456,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); } } #if DEBUG @@ -7453,7 +7490,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(Int32 shader, Int32 bufsize, ref Int32 length, String infolog) + void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7463,7 +7500,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); + length = *length_ptr; } } #if DEBUG @@ -7498,13 +7536,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32* length, String infolog) + unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog); #if DEBUG } #endif @@ -7537,7 +7575,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32[] length, String infolog) + void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7547,7 +7585,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); } } #if DEBUG @@ -7582,7 +7620,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(UInt32 shader, Int32 bufsize, ref Int32 length, String infolog) + void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7592,7 +7630,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); + length = *length_ptr; } } #if DEBUG @@ -7622,13 +7661,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - unsafe void GetShader(Int32 shader, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -7655,7 +7694,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(Int32 shader, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7665,7 +7704,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7694,7 +7733,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(Int32 shader, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7704,7 +7743,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -7734,13 +7774,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - unsafe void GetShader(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -7768,7 +7808,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7778,7 +7818,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7808,7 +7848,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(UInt32 shader, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7818,7 +7858,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -7829,13 +7870,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] public static - unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32* range, Int32* precision) + unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range, (Int32*)precision); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.ShaderType)shadertype, (OpenTK.Graphics.ES20.ShaderPrecision)precisiontype, (Int32*)range, (Int32*)precision); #if DEBUG } #endif @@ -7843,7 +7884,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] public static - void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32[] range, Int32[] precision) + void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] Int32[] range, [OutAttribute] Int32[] precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7854,7 +7895,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* range_ptr = range) fixed (Int32* precision_ptr = precision) { - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.ShaderType)shadertype, (OpenTK.Graphics.ES20.ShaderPrecision)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); } } #if DEBUG @@ -7864,7 +7905,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] public static - void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, ref Int32 range, ref Int32 precision) + void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] out Int32 range, [OutAttribute] out Int32 precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7875,7 +7916,9 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* range_ptr = &range) fixed (Int32* precision_ptr = &precision) { - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.ShaderType)shadertype, (OpenTK.Graphics.ES20.ShaderPrecision)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + range = *range_ptr; + precision = *precision_ptr; } } #if DEBUG @@ -7910,13 +7953,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - unsafe void GetShaderSource(Int32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -7948,7 +7991,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(Int32 shader, Int32 bufsize, Int32[] length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7958,7 +8001,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)source); } } #if DEBUG @@ -7992,7 +8035,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(Int32 shader, Int32 bufsize, ref Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8002,7 +8045,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)source); + length = *length_ptr; } } #if DEBUG @@ -8037,13 +8081,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -8076,7 +8120,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(UInt32 shader, Int32 bufsize, Int32[] length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8086,7 +8130,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)source); } } #if DEBUG @@ -8121,7 +8165,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(UInt32 shader, Int32 bufsize, ref Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8131,7 +8175,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)source); + length = *length_ptr; } } #if DEBUG @@ -8151,13 +8196,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetString")] public static - unsafe string GetString(OpenTK.Graphics.ES20.All name) + unsafe System.String GetString(OpenTK.Graphics.ES20.StringName name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetString((OpenTK.Graphics.ES20.All)name)); + return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetString((OpenTK.Graphics.ES20.StringName)name)); #if DEBUG } #endif @@ -8184,7 +8229,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Single @params) + void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8194,7 +8239,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8224,13 +8270,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] public static - unsafe void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params) + unsafe void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Single*)@params); #if DEBUG } #endif @@ -8257,7 +8303,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single[] @params) + void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8267,7 +8313,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Single*)@params_ptr); } } #if DEBUG @@ -8297,13 +8343,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] public static - unsafe void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -8330,7 +8376,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8340,7 +8386,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -8369,7 +8415,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8379,7 +8425,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8408,7 +8455,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - void GetUniform(Int32 program, Int32 location, ref Single @params) + void GetUniform(Int32 program, Int32 location, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8419,6 +8466,7 @@ namespace OpenTK.Graphics.ES20 fixed (Single* @params_ptr = &@params) { Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8448,7 +8496,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - unsafe void GetUniform(Int32 program, Int32 location, Single* @params) + unsafe void GetUniform(Int32 program, Int32 location, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8481,7 +8529,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - void GetUniform(Int32 program, Int32 location, Single[] @params) + void GetUniform(Int32 program, Int32 location, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8521,7 +8569,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - void GetUniform(UInt32 program, Int32 location, ref Single @params) + void GetUniform(UInt32 program, Int32 location, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8532,6 +8580,7 @@ namespace OpenTK.Graphics.ES20 fixed (Single* @params_ptr = &@params) { Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8561,7 +8610,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - unsafe void GetUniform(UInt32 program, Int32 location, Single* @params) + unsafe void GetUniform(UInt32 program, Int32 location, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8595,7 +8644,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - void GetUniform(UInt32 program, Int32 location, Single[] @params) + void GetUniform(UInt32 program, Int32 location, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8635,7 +8684,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - unsafe void GetUniform(Int32 program, Int32 location, Int32* @params) + unsafe void GetUniform(Int32 program, Int32 location, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8668,7 +8717,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - void GetUniform(Int32 program, Int32 location, Int32[] @params) + void GetUniform(Int32 program, Int32 location, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8707,7 +8756,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - void GetUniform(Int32 program, Int32 location, ref Int32 @params) + void GetUniform(Int32 program, Int32 location, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8718,6 +8767,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* @params_ptr = &@params) { Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8747,7 +8797,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - unsafe void GetUniform(UInt32 program, Int32 location, Int32* @params) + unsafe void GetUniform(UInt32 program, Int32 location, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8781,7 +8831,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - void GetUniform(UInt32 program, Int32 location, Int32[] @params) + void GetUniform(UInt32 program, Int32 location, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8821,7 +8871,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - void GetUniform(UInt32 program, Int32 location, ref Int32 @params) + void GetUniform(UInt32 program, Int32 location, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8832,6 +8882,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* @params_ptr = &@params) { Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8917,7 +8968,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, ref Single @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8927,7 +8978,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8957,13 +9009,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, Single* @params) + unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params); #if DEBUG } #endif @@ -8990,7 +9042,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, Single[] @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9000,7 +9052,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params_ptr); } } #if DEBUG @@ -9030,7 +9082,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, ref Single @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9040,7 +9092,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -9070,13 +9123,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Single* @params) + unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params); #if DEBUG } #endif @@ -9104,7 +9157,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Single[] @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9114,7 +9167,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params_ptr); } } #if DEBUG @@ -9144,13 +9197,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -9177,7 +9230,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9187,7 +9240,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -9216,7 +9269,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9226,7 +9279,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -9256,13 +9310,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -9290,7 +9344,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9300,7 +9354,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -9330,7 +9384,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9340,7 +9394,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -9369,7 +9424,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -9379,7 +9434,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -9412,7 +9467,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -9422,7 +9477,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9454,7 +9509,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -9464,7 +9519,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9496,7 +9551,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -9506,7 +9561,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9538,13 +9593,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.All pname, IntPtr pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer); #if DEBUG } #endif @@ -9572,7 +9627,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -9582,7 +9637,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -9616,7 +9671,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -9626,7 +9681,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9659,7 +9714,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -9669,7 +9724,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9702,7 +9757,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -9712,7 +9767,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9745,13 +9800,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, IntPtr pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer); #if DEBUG } #endif @@ -9773,13 +9828,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glHint")] public static - void Hint(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All mode) + void Hint(OpenTK.Graphics.ES20.HintTarget target, OpenTK.Graphics.ES20.HintMode mode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glHint((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)mode); + Delegates.glHint((OpenTK.Graphics.ES20.HintTarget)target, (OpenTK.Graphics.ES20.HintMode)mode); #if DEBUG } #endif @@ -9843,13 +9898,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsEnabled")] public static - bool IsEnabled(OpenTK.Graphics.ES20.All cap) + bool IsEnabled(OpenTK.Graphics.ES20.EnableCap cap) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glIsEnabled((OpenTK.Graphics.ES20.All)cap); + return Delegates.glIsEnabled((OpenTK.Graphics.ES20.EnableCap)cap); #if DEBUG } #endif @@ -10140,13 +10195,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glPixelStorei")] public static - void PixelStore(OpenTK.Graphics.ES20.All pname, Int32 param) + void PixelStore(OpenTK.Graphics.ES20.PixelStoreParameter pname, Int32 param) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glPixelStorei((OpenTK.Graphics.ES20.All)pname, (Int32)param); + Delegates.glPixelStorei((OpenTK.Graphics.ES20.PixelStoreParameter)pname, (Int32)param); #if DEBUG } #endif @@ -10211,7 +10266,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] public static - void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T6 pixels) + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] ref T6 pixels) where T6 : struct { #if DEBUG @@ -10221,7 +10276,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); pixels = (T6)pixels_ptr.Target; } finally @@ -10264,7 +10319,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] public static - void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T6[,,] pixels) + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T6[,,] pixels) where T6 : struct { #if DEBUG @@ -10274,7 +10329,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -10316,7 +10371,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] public static - void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T6[,] pixels) + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T6[,] pixels) where T6 : struct { #if DEBUG @@ -10326,7 +10381,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -10368,7 +10423,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] public static - void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T6[] pixels) + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T6[] pixels) where T6 : struct { #if DEBUG @@ -10378,7 +10433,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -10420,13 +10475,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] public static - void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels) + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels); #if DEBUG } #endif @@ -10448,13 +10503,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glRenderbufferStorage")] public static - void RenderbufferStorage(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height) + void RenderbufferStorage(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferInternalFormat internalformat, Int32 width, Int32 height) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glRenderbufferStorage((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height); + Delegates.glRenderbufferStorage((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.RenderbufferInternalFormat)internalformat, (Int32)width, (Int32)height); #if DEBUG } #endif @@ -10519,7 +10574,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -10529,7 +10584,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -10544,7 +10599,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10554,7 +10609,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10568,7 +10623,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10578,7 +10633,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10592,7 +10647,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10602,7 +10657,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10616,13 +10671,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); #if DEBUG } #endif @@ -10630,7 +10685,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -10644,7 +10699,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -10660,7 +10715,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10674,7 +10729,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10689,7 +10744,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10703,7 +10758,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10718,7 +10773,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10732,7 +10787,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10747,7 +10802,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -10757,7 +10812,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* shaders_ptr = shaders) { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); } } #if DEBUG @@ -10767,7 +10822,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -10781,7 +10836,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -10797,7 +10852,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10811,7 +10866,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10826,7 +10881,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10840,7 +10895,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10855,7 +10910,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10869,7 +10924,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10884,7 +10939,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -10894,7 +10949,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* shaders_ptr = &shaders) { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); } } #if DEBUG @@ -10905,7 +10960,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -10919,7 +10974,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -10936,7 +10991,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10950,7 +11005,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10966,7 +11021,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10980,7 +11035,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10996,7 +11051,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11010,7 +11065,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11026,7 +11081,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -11036,7 +11091,7 @@ namespace OpenTK.Graphics.ES20 { fixed (UInt32* shaders_ptr = &shaders) { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); } } #if DEBUG @@ -11047,7 +11102,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -11057,7 +11112,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -11072,7 +11127,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11082,7 +11137,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11096,7 +11151,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11106,7 +11161,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11120,7 +11175,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11130,7 +11185,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11144,13 +11199,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); #if DEBUG } #endif @@ -11159,7 +11214,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -11173,7 +11228,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -11190,7 +11245,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11204,7 +11259,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11220,7 +11275,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11234,7 +11289,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11250,7 +11305,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11264,7 +11319,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11280,7 +11335,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -11290,7 +11345,7 @@ namespace OpenTK.Graphics.ES20 { fixed (UInt32* shaders_ptr = shaders) { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); } } #if DEBUG @@ -11575,13 +11630,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilFunc")] public static - void StencilFunc(OpenTK.Graphics.ES20.All func, Int32 @ref, Int32 mask) + void StencilFunc(OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, Int32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFunc((OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFunc((OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -11609,13 +11664,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilFunc")] public static - void StencilFunc(OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask) + void StencilFunc(OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFunc((OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFunc((OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -11647,13 +11702,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilFuncSeparate")] public static - void StencilFuncSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All func, Int32 @ref, Int32 mask) + void StencilFuncSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, Int32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.All)face, (OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -11686,13 +11741,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilFuncSeparate")] public static - void StencilFuncSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask) + void StencilFuncSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.All)face, (OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -11761,13 +11816,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilMaskSeparate")] public static - void StencilMaskSeparate(OpenTK.Graphics.ES20.All face, Int32 mask) + void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, Int32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.All)face, (UInt32)mask); + Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (UInt32)mask); #if DEBUG } #endif @@ -11790,13 +11845,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilMaskSeparate")] public static - void StencilMaskSeparate(OpenTK.Graphics.ES20.All face, UInt32 mask) + void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, UInt32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.All)face, (UInt32)mask); + Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (UInt32)mask); #if DEBUG } #endif @@ -11823,13 +11878,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilOp")] public static - void StencilOp(OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass) + void StencilOp(OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilOp((OpenTK.Graphics.ES20.All)fail, (OpenTK.Graphics.ES20.All)zfail, (OpenTK.Graphics.ES20.All)zpass); + Delegates.glStencilOp((OpenTK.Graphics.ES20.StencilOp)fail, (OpenTK.Graphics.ES20.StencilOp)zfail, (OpenTK.Graphics.ES20.StencilOp)zpass); #if DEBUG } #endif @@ -11861,13 +11916,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilOpSeparate")] public static - void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass) + void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilOpSeparate((OpenTK.Graphics.ES20.All)face, (OpenTK.Graphics.ES20.All)fail, (OpenTK.Graphics.ES20.All)zfail, (OpenTK.Graphics.ES20.All)zpass); + Delegates.glStencilOpSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (OpenTK.Graphics.ES20.StencilOp)fail, (OpenTK.Graphics.ES20.StencilOp)zfail, (OpenTK.Graphics.ES20.StencilOp)zpass); #if DEBUG } #endif @@ -11924,7 +11979,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] public 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, [InAttribute, OutAttribute] ref T8 pixels) + 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, [InAttribute, OutAttribute] ref T8 pixels) where T8 : struct { #if DEBUG @@ -11934,7 +11989,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexImage2D((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_ptr.AddrOfPinnedObject()); + Delegates.glTexImage2D((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_ptr.AddrOfPinnedObject()); pixels = (T8)pixels_ptr.Target; } finally @@ -11997,7 +12052,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] public 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, [InAttribute, OutAttribute] T8[,,] pixels) + 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, [InAttribute, OutAttribute] T8[,,] pixels) where T8 : struct { #if DEBUG @@ -12007,7 +12062,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexImage2D((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_ptr.AddrOfPinnedObject()); + Delegates.glTexImage2D((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_ptr.AddrOfPinnedObject()); } finally { @@ -12069,7 +12124,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] public 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, [InAttribute, OutAttribute] T8[,] pixels) + 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, [InAttribute, OutAttribute] T8[,] pixels) where T8 : struct { #if DEBUG @@ -12079,7 +12134,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexImage2D((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_ptr.AddrOfPinnedObject()); + Delegates.glTexImage2D((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_ptr.AddrOfPinnedObject()); } finally { @@ -12141,7 +12196,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] public 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, [InAttribute, OutAttribute] T8[] pixels) + 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, [InAttribute, OutAttribute] T8[] pixels) where T8 : struct { #if DEBUG @@ -12151,7 +12206,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexImage2D((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_ptr.AddrOfPinnedObject()); + Delegates.glTexImage2D((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_ptr.AddrOfPinnedObject()); } finally { @@ -12213,13 +12268,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] public 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) + 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) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexImage2D((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); + Delegates.glTexImage2D((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); #if DEBUG } #endif @@ -12246,13 +12301,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterf")] public static - void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single param) + void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single param) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameterf((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single)param); + Delegates.glTexParameterf((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Single)param); #if DEBUG } #endif @@ -12280,13 +12335,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterfv")] public static - unsafe void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params) + unsafe void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); + Delegates.glTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Single*)@params); #if DEBUG } #endif @@ -12313,7 +12368,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterfv")] public static - void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single[] @params) + void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -12323,7 +12378,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Single*)@params_ptr); } } #if DEBUG @@ -12352,13 +12407,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteri")] public static - void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32 param) + void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32 param) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameteri((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32)param); + Delegates.glTexParameteri((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Int32)param); #if DEBUG } #endif @@ -12386,13 +12441,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteriv")] public static - unsafe void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Int32*)@params); #if DEBUG } #endif @@ -12419,7 +12474,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteriv")] public static - void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -12429,7 +12484,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -12488,7 +12543,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] public 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, [InAttribute, OutAttribute] ref T8 pixels) + 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, [InAttribute, OutAttribute] ref T8 pixels) where T8 : struct { #if DEBUG @@ -12498,7 +12553,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexSubImage2D((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_ptr.AddrOfPinnedObject()); + Delegates.glTexSubImage2D((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_ptr.AddrOfPinnedObject()); pixels = (T8)pixels_ptr.Target; } finally @@ -12561,7 +12616,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] public 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, [InAttribute, OutAttribute] T8[,,] pixels) + 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, [InAttribute, OutAttribute] T8[,,] pixels) where T8 : struct { #if DEBUG @@ -12571,7 +12626,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexSubImage2D((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_ptr.AddrOfPinnedObject()); + Delegates.glTexSubImage2D((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_ptr.AddrOfPinnedObject()); } finally { @@ -12633,7 +12688,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] public 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, [InAttribute, OutAttribute] T8[,] pixels) + 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, [InAttribute, OutAttribute] T8[,] pixels) where T8 : struct { #if DEBUG @@ -12643,7 +12698,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexSubImage2D((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_ptr.AddrOfPinnedObject()); + Delegates.glTexSubImage2D((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_ptr.AddrOfPinnedObject()); } finally { @@ -12705,7 +12760,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] public 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, [InAttribute, OutAttribute] T8[] pixels) + 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, [InAttribute, OutAttribute] T8[] pixels) where T8 : struct { #if DEBUG @@ -12715,7 +12770,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexSubImage2D((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_ptr.AddrOfPinnedObject()); + Delegates.glTexSubImage2D((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_ptr.AddrOfPinnedObject()); } finally { @@ -12777,13 +12832,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] public 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) + 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) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexSubImage2D((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); + Delegates.glTexSubImage2D((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); #if DEBUG } #endif @@ -14993,7 +15048,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) where T5 : struct { #if DEBUG @@ -15003,7 +15058,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); ptr = (T5)ptr_ptr.Target; } finally @@ -15051,7 +15106,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) where T5 : struct { #if DEBUG @@ -15061,7 +15116,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15108,7 +15163,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) where T5 : struct { #if DEBUG @@ -15118,7 +15173,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15165,7 +15220,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) where T5 : struct { #if DEBUG @@ -15175,7 +15230,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15222,13 +15277,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, IntPtr ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr ptr) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); #if DEBUG } #endif @@ -15271,7 +15326,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) where T5 : struct { #if DEBUG @@ -15281,7 +15336,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); ptr = (T5)ptr_ptr.Target; } finally @@ -15330,7 +15385,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) where T5 : struct { #if DEBUG @@ -15340,7 +15395,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15388,7 +15443,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) where T5 : struct { #if DEBUG @@ -15398,7 +15453,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15446,7 +15501,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) where T5 : struct { #if DEBUG @@ -15456,7 +15511,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15504,13 +15559,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, IntPtr ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr ptr) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); #if DEBUG } #endif @@ -15690,7 +15745,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - unsafe void GenFences(Int32 n, Int32* fences) + unsafe void GenFences(Int32 n, [OutAttribute] Int32* fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15704,7 +15759,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - void GenFences(Int32 n, Int32[] fences) + void GenFences(Int32 n, [OutAttribute] Int32[] fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15724,7 +15779,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - void GenFences(Int32 n, ref Int32 fences) + void GenFences(Int32 n, [OutAttribute] out Int32 fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15735,6 +15790,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* fences_ptr = &fences) { Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr); + fences = *fences_ptr; } } #if DEBUG @@ -15745,7 +15801,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - void GenFences(Int32 n, ref UInt32 fences) + void GenFences(Int32 n, [OutAttribute] out UInt32 fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15756,6 +15812,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* fences_ptr = &fences) { Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr); + fences = *fences_ptr; } } #if DEBUG @@ -15766,7 +15823,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - unsafe void GenFences(Int32 n, UInt32* fences) + unsafe void GenFences(Int32 n, [OutAttribute] UInt32* fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15781,7 +15838,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - void GenFences(Int32 n, UInt32[] fences) + void GenFences(Int32 n, [OutAttribute] UInt32[] fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15802,7 +15859,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - unsafe void GetFence(Int32 fence, Int32* @params) + unsafe void GetFence(Int32 fence, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15816,7 +15873,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - void GetFence(Int32 fence, Int32[] @params) + void GetFence(Int32 fence, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15836,7 +15893,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - void GetFence(Int32 fence, ref Int32 @params) + void GetFence(Int32 fence, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15847,6 +15904,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* @params_ptr = &@params) { Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -15857,7 +15915,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - unsafe void GetFence(UInt32 fence, Int32* @params) + unsafe void GetFence(UInt32 fence, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15872,7 +15930,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - void GetFence(UInt32 fence, Int32[] @params) + void GetFence(UInt32 fence, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15893,7 +15951,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - void GetFence(UInt32 fence, ref Int32 @params) + void GetFence(UInt32 fence, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15904,6 +15962,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* @params_ptr = &@params) { Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -16941,7 +17000,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferPointervOES")] public static - void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, IntPtr @params) + void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -16956,7 +17015,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(Int32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + unsafe void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -16981,7 +17040,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(Int32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + unsafe void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -17005,7 +17064,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(Int32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + unsafe void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17029,7 +17088,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(Int32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[] binary) + unsafe void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17053,7 +17112,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(Int32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, IntPtr binary) + unsafe void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17067,7 +17126,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -17098,7 +17157,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -17128,7 +17187,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17158,7 +17217,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17188,7 +17247,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, IntPtr binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17209,7 +17268,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -17225,6 +17284,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; binary = (T4)binary_ptr.Target; } finally @@ -17240,7 +17301,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -17256,6 +17317,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17270,7 +17333,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17286,6 +17349,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17300,7 +17365,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17316,6 +17381,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17330,7 +17397,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17342,6 +17409,8 @@ namespace OpenTK.Graphics.ES20 fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = &binaryFormat) { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } } #if DEBUG @@ -17352,7 +17421,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -17377,7 +17446,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -17401,7 +17470,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17425,7 +17494,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[] binary) + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17449,7 +17518,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, IntPtr binary) + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17464,7 +17533,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -17496,7 +17565,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -17527,7 +17596,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17558,7 +17627,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17589,7 +17658,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, IntPtr binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17611,7 +17680,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -17627,6 +17696,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; binary = (T4)binary_ptr.Target; } finally @@ -17643,7 +17714,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -17659,6 +17730,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17674,7 +17747,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17690,6 +17763,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17705,7 +17780,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17721,6 +17796,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17736,7 +17813,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17748,6 +17825,8 @@ namespace OpenTK.Graphics.ES20 fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = &binaryFormat) { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } } #if DEBUG @@ -17772,7 +17851,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glMapBufferOES")] public static - unsafe IntPtr MapBuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access) + unsafe System.IntPtr MapBuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) diff --git a/Source/OpenTK/Graphics/ES20/Enums.cs b/Source/OpenTK/Graphics/ES20/Enums.cs index 665b33f4..47058c3b 100644 --- a/Source/OpenTK/Graphics/ES20/Enums.cs +++ b/Source/OpenTK/Graphics/ES20/Enums.cs @@ -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), + } + } diff --git a/Source/OpenTK/Graphics/ES20/Helper.cs b/Source/OpenTK/Graphics/ES20/Helper.cs index 7c62aac9..78c9ae4f 100644 --- a/Source/OpenTK/Graphics/ES20/Helper.cs +++ b/Source/OpenTK/Graphics/ES20/Helper.cs @@ -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 } } diff --git a/Source/OpenTK/Graphics/OpenGL/GL.cs b/Source/OpenTK/Graphics/OpenGL/GL.cs index 24ba11b0..7f4143cf 100644 --- a/Source/OpenTK/Graphics/OpenGL/GL.cs +++ b/Source/OpenTK/Graphics/OpenGL/GL.cs @@ -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 @@ -926,13 +927,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString) + unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString); #if DEBUG } #endif @@ -940,7 +941,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder counterString) + void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -950,7 +951,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); length = *length_ptr; } } @@ -962,13 +963,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString) + unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString); #if DEBUG } #endif @@ -977,7 +978,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder counterString) + void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -987,7 +988,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); length = *length_ptr; } } @@ -1112,13 +1113,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString) + unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString); #if DEBUG } #endif @@ -1126,7 +1127,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder groupString) + void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1136,7 +1137,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); length = *length_ptr; } } @@ -1148,13 +1149,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString) + unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString); #if DEBUG } #endif @@ -1163,7 +1164,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder groupString) + void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1173,7 +1174,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); length = *length_ptr; } } @@ -3126,7 +3127,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glObjectPurgeableAPPLE")] public static - IntPtr ObjectPurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, Int32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) + System.IntPtr ObjectPurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, Int32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -3141,7 +3142,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glObjectPurgeableAPPLE")] public static - IntPtr ObjectPurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) + System.IntPtr ObjectPurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -3155,7 +3156,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glObjectUnpurgeableAPPLE")] public static - IntPtr ObjectUnpurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, Int32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) + System.IntPtr ObjectUnpurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, Int32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -3170,7 +3171,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glObjectUnpurgeableAPPLE")] public static - IntPtr ObjectUnpurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) + System.IntPtr ObjectUnpurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7918,13 +7919,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbVertexShader", Version = "1.2", EntryPoint = "glGetActiveAttribARB")] public static - unsafe void GetActiveAttrib(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveAttrib(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type, (StringBuilder)name); #if DEBUG } #endif @@ -7971,7 +7972,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "ArbVertexShader", Version = "1.2", EntryPoint = "glGetActiveAttribARB")] public static - void GetActiveAttrib(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbVertexShader type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbVertexShader type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7983,7 +7984,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ArbVertexShader* type_ptr = &type) { - Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -8036,13 +8037,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbVertexShader", Version = "1.2", EntryPoint = "glGetActiveAttribARB")] public static - unsafe void GetActiveAttrib(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveAttrib(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type, (StringBuilder)name); #if DEBUG } #endif @@ -8090,7 +8091,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbVertexShader", Version = "1.2", EntryPoint = "glGetActiveAttribARB")] public static - void GetActiveAttrib(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbVertexShader type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbVertexShader type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8102,7 +8103,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ArbVertexShader* type_ptr = &type) { - Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -8155,13 +8156,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetActiveUniformARB")] public static - unsafe void GetActiveUniform(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveUniform(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type, (StringBuilder)name); #if DEBUG } #endif @@ -8208,7 +8209,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetActiveUniformARB")] public static - void GetActiveUniform(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbShaderObjects type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbShaderObjects type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8220,7 +8221,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ArbShaderObjects* type_ptr = &type) { - Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -8273,13 +8274,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetActiveUniformARB")] public static - unsafe void GetActiveUniform(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveUniform(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type, (StringBuilder)name); #if DEBUG } #endif @@ -8327,7 +8328,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetActiveUniformARB")] public static - void GetActiveUniform(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbShaderObjects type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbShaderObjects type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8339,7 +8340,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ArbShaderObjects* type_ptr = &type) { - Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -9129,13 +9130,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetInfoLogARB")] public static - unsafe void GetInfoLog(Int32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetInfoLog(Int32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -9143,7 +9144,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetInfoLogARB")] public static - void GetInfoLog(Int32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetInfoLog(Int32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9153,7 +9154,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -9165,13 +9166,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetInfoLogARB")] public static - unsafe void GetInfoLog(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetInfoLog(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -9180,7 +9181,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetInfoLogARB")] public static - void GetInfoLog(UInt32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetInfoLog(UInt32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9190,7 +9191,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -10490,13 +10491,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetShaderSourceARB")] public static - unsafe void GetShaderSource(Int32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(Int32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -10528,7 +10529,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetShaderSourceARB")] public static - void GetShaderSource(Int32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(Int32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -10538,7 +10539,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (StringBuilder)source); length = *length_ptr; } } @@ -10574,13 +10575,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetShaderSourceARB")] public static - unsafe void GetShaderSource(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -10613,7 +10614,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetShaderSourceARB")] public static - void GetShaderSource(UInt32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(UInt32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -10623,7 +10624,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (StringBuilder)source); length = *length_ptr; } } @@ -12417,7 +12418,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbVertexBufferObject", Version = "1.2", EntryPoint = "glMapBufferARB")] public static - unsafe IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access) + unsafe System.IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24133,7 +24134,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AtiMapObjectBuffer", Version = "1.2", EntryPoint = "glMapObjectBufferATI")] public static - unsafe IntPtr MapObjectBuffer(Int32 buffer) + unsafe System.IntPtr MapObjectBuffer(Int32 buffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24148,7 +24149,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AtiMapObjectBuffer", Version = "1.2", EntryPoint = "glMapObjectBufferATI")] public static - unsafe IntPtr MapObjectBuffer(UInt32 buffer) + unsafe System.IntPtr MapObjectBuffer(UInt32 buffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41376,13 +41377,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -41429,7 +41430,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41441,7 +41442,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -41494,13 +41495,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public 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) + unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -41548,7 +41549,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41560,7 +41561,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -41613,13 +41614,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -41666,7 +41667,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveUniformType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveUniformType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41678,7 +41679,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -41731,13 +41732,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveUniform")] public 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) + unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -41785,7 +41786,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveUniformType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveUniformType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41797,7 +41798,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -41925,13 +41926,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformBlockName")] public static - unsafe void GetActiveUniformBlockName(Int32 program, Int32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformBlockName) + unsafe void GetActiveUniformBlockName(Int32 program, Int32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformBlockName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)uniformBlockName); + Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length, (StringBuilder)uniformBlockName); #if DEBUG } #endif @@ -41939,7 +41940,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformBlockName")] public static - void GetActiveUniformBlockName(Int32 program, Int32 uniformBlockIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder uniformBlockName) + void GetActiveUniformBlockName(Int32 program, Int32 uniformBlockIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder uniformBlockName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41949,7 +41950,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)uniformBlockName); + Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)uniformBlockName); length = *length_ptr; } } @@ -41961,13 +41962,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformBlockName")] public static - unsafe void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformBlockName) + unsafe void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformBlockName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)uniformBlockName); + Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length, (StringBuilder)uniformBlockName); #if DEBUG } #endif @@ -41976,7 +41977,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformBlockName")] public static - void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder uniformBlockName) + void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder uniformBlockName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41986,7 +41987,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)uniformBlockName); + Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)uniformBlockName); length = *length_ptr; } } @@ -41998,13 +41999,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformName")] public static - unsafe void GetActiveUniformName(Int32 program, Int32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformName) + unsafe void GetActiveUniformName(Int32 program, Int32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)uniformName); + Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length, (StringBuilder)uniformName); #if DEBUG } #endif @@ -42012,7 +42013,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformName")] public static - void GetActiveUniformName(Int32 program, Int32 uniformIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder uniformName) + void GetActiveUniformName(Int32 program, Int32 uniformIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder uniformName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -42022,7 +42023,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)uniformName); + Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)uniformName); length = *length_ptr; } } @@ -42034,13 +42035,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformName")] public static - unsafe void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformName) + unsafe void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)uniformName); + Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length, (StringBuilder)uniformName); #if DEBUG } #endif @@ -42049,7 +42050,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformName")] public static - void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder uniformName) + void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder uniformName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -42059,7 +42060,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)uniformName); + Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)uniformName); length = *length_ptr; } } @@ -47664,13 +47665,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - unsafe void GetProgramInfoLog(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetProgramInfoLog(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -47702,7 +47703,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetProgramInfoLog(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -47712,7 +47713,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -47748,13 +47749,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - unsafe void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -47787,7 +47788,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -47797,7 +47798,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -49344,13 +49345,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - unsafe void GetShaderInfoLog(Int32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetShaderInfoLog(Int32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -49382,7 +49383,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(Int32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetShaderInfoLog(Int32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49392,7 +49393,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -49428,13 +49429,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -49467,7 +49468,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49477,7 +49478,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -49741,13 +49742,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - unsafe void GetShaderSource(Int32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(Int32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -49779,7 +49780,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(Int32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(Int32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49789,7 +49790,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)source); length = *length_ptr; } } @@ -49825,13 +49826,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - unsafe void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -49864,7 +49865,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49874,7 +49875,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)source); length = *length_ptr; } } @@ -49894,7 +49895,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version10", Version = "1.0", EntryPoint = "glGetString")] public static - string GetString(OpenTK.Graphics.OpenGL.StringName name) + System.String GetString(OpenTK.Graphics.OpenGL.StringName name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49917,7 +49918,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetStringi")] public static - string GetString(OpenTK.Graphics.OpenGL.StringName name, Int32 index) + System.String GetString(OpenTK.Graphics.OpenGL.StringName name, Int32 index) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49941,7 +49942,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetStringi")] public static - string GetString(OpenTK.Graphics.OpenGL.StringName name, UInt32 index) + System.String GetString(OpenTK.Graphics.OpenGL.StringName name, UInt32 index) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -51425,13 +51426,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -51439,7 +51440,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) + void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -51451,7 +51452,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveAttribType* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -51465,13 +51466,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public 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) + unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -51480,7 +51481,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) + void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -51492,7 +51493,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveAttribType* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -53089,7 +53090,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -53099,7 +53100,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -53132,7 +53133,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -53142,7 +53143,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53174,7 +53175,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -53184,7 +53185,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53216,7 +53217,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -53226,7 +53227,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53258,13 +53259,13 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer); #if DEBUG } #endif @@ -53292,7 +53293,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -53302,7 +53303,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -53336,7 +53337,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -53346,7 +53347,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53379,7 +53380,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -53389,7 +53390,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53422,7 +53423,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -53432,7 +53433,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53465,13 +53466,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer); #if DEBUG } #endif @@ -56364,7 +56365,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version15", Version = "1.5", EntryPoint = "glMapBuffer")] public static - unsafe IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access) + unsafe System.IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -56379,7 +56380,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbMapBufferRange", Version = "3.0", EntryPoint = "glMapBufferRange")] public static - unsafe IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access) + unsafe System.IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -98917,13 +98918,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type, (StringBuilder)name); #if DEBUG } #endif @@ -98931,7 +98932,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ExtTransformFeedback type, [OutAttribute] System.Text.StringBuilder name) + void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ExtTransformFeedback type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -98943,7 +98944,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ExtTransformFeedback* type_ptr = &type) { - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -98957,13 +98958,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type, (StringBuilder)name); #if DEBUG } #endif @@ -98972,7 +98973,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ExtTransformFeedback type, [OutAttribute] System.Text.StringBuilder name) + void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ExtTransformFeedback type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -98984,7 +98985,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ExtTransformFeedback* type_ptr = &type) { - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -100429,7 +100430,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMapNamedBufferEXT")] public static - unsafe IntPtr MapNamedBuffer(Int32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access) + unsafe System.IntPtr MapNamedBuffer(Int32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -100444,7 +100445,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMapNamedBufferEXT")] public static - unsafe IntPtr MapNamedBuffer(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access) + unsafe System.IntPtr MapNamedBuffer(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -124317,13 +124318,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetActiveVaryingNV")] public static - unsafe void GetActiveVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type, (StringBuilder)name); #if DEBUG } #endif @@ -124331,7 +124332,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetActiveVaryingNV")] public static - void GetActiveVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.NvTransformFeedback type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.NvTransformFeedback type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -124343,7 +124344,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.NvTransformFeedback* type_ptr = &type) { - Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -124357,13 +124358,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetActiveVaryingNV")] public static - unsafe void GetActiveVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type, (StringBuilder)name); #if DEBUG } #endif @@ -124372,7 +124373,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetActiveVaryingNV")] public static - void GetActiveVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.NvTransformFeedback type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.NvTransformFeedback type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -124384,7 +124385,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.NvTransformFeedback* type_ptr = &type) { - Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; diff --git a/Source/OpenTK/Graphics/OpenGL/GLCore.cs b/Source/OpenTK/Graphics/OpenGL/GLCore.cs index ec9a1393..0edf6d1a 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLCore.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLCore.cs @@ -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); diff --git a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs index b5af672c..253e966c 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs @@ -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);