diff --git a/Source/Bind/Structures/Function.cs b/Source/Bind/Structures/Function.cs
index 47813f6a..71884b6f 100644
--- a/Source/Bind/Structures/Function.cs
+++ b/Source/Bind/Structures/Function.cs
@@ -608,9 +608,9 @@ namespace Bind.Structures
{
int ret = Name.CompareTo(other.Name);
if (ret == 0)
- ret = Parameters.ToString().CompareTo(other.Parameters.ToString());
+ ret = Parameters.CompareTo(other.Parameters);
if (ret == 0)
- ret = ReturnType.ToString().CompareTo(other.ReturnType.ToString());
+ ret = ReturnType.CompareTo(other.ReturnType);
return ret;
}
diff --git a/Source/Bind/Structures/Parameter.cs b/Source/Bind/Structures/Parameter.cs
index f9c09ad1..1f1249e5 100644
--- a/Source/Bind/Structures/Parameter.cs
+++ b/Source/Bind/Structures/Parameter.cs
@@ -15,7 +15,7 @@ namespace Bind.Structures
///
/// Represents a single parameter of an opengl function.
///
- public class Parameter : Type
+ public class Parameter : Type, IComparable
{
string cache;
bool rebuild;
@@ -350,12 +350,24 @@ namespace Bind.Structures
}
#endregion
+
+ #region IComparable Members
+
+ public int CompareTo(Parameter other)
+ {
+ int result = base.CompareTo(other);
+ if (result == 0)
+ result = Name.CompareTo(other.Name);
+ return result;
+ }
+
+ #endregion
}
///
/// Holds the parameter list of an opengl function.
///
- public class ParameterCollection : List
+ public class ParameterCollection : List, IComparable
{
string cache = String.Empty;
string callStringCache = String.Empty;
@@ -642,5 +654,31 @@ namespace Bind.Structures
return true;
return false;
}
+
+ #region IComparable Members
+
+ public int CompareTo(ParameterCollection other)
+ {
+ if (Count < other.Count)
+ {
+ return -1;
+ }
+ else if (Count > other.Count)
+ {
+ return 1;
+ }
+ else
+ {
+ for (int i = 0; i < Count; i++)
+ {
+ int result = this[i].CompareTo(other[i]);
+ if (result != 0)
+ return result;
+ }
+ return 0;
+ }
+ }
+
+ #endregion
}
}
diff --git a/Source/Bind/Structures/Type.cs b/Source/Bind/Structures/Type.cs
index 1b4564da..3a8b814c 100644
--- a/Source/Bind/Structures/Type.cs
+++ b/Source/Bind/Structures/Type.cs
@@ -11,7 +11,7 @@ using System.Xml.XPath;
namespace Bind.Structures
{
- public class Type
+ public class Type : IComparable
{
internal static Dictionary GLTypes;
internal static Dictionary CSTypes;
@@ -461,5 +461,28 @@ namespace Bind.Structures
}
#endregion
+
+ #region IComparable Members
+
+ public int CompareTo(Type other)
+ {
+ // Make sure that Pointer parameters are sorted last to avoid bug [#1098].
+ // The rest of the comparisons are not important, but they are there to
+ // guarantee a stable order between program executions.
+ int result = this.CurrentType.CompareTo(other.CurrentType);
+ if (result == 0)
+ result = Pointer.CompareTo(other.Pointer);
+ if (result == 0)
+ result = Reference.CompareTo(other.Reference);
+ if (result == 0)
+ result = Array.CompareTo(other.Array);
+ if (result == 0)
+ result = CLSCompliant.CompareTo(other.CLSCompliant);
+ if (result == 0)
+ result = ElementCount.CompareTo(other.ElementCount);
+ return result;
+ }
+
+ #endregion
}
}
diff --git a/Source/OpenTK/Graphics/ES20/ES.cs b/Source/OpenTK/Graphics/ES20/ES.cs
index f3d26c14..293ebced 100644
--- a/Source/OpenTK/Graphics/ES20/ES.cs
+++ b/Source/OpenTK/Graphics/ES20/ES.cs
@@ -69,21 +69,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeletePerfMonitorsAMD")]
- public static
- unsafe void DeletePerfMonitors(Int32 n, Int32* monitors)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, Int32[] monitors)
@@ -124,6 +109,42 @@ namespace OpenTK.Graphics.ES20
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeletePerfMonitorsAMD")]
+ public static
+ unsafe void DeletePerfMonitors(Int32 n, Int32* monitors)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeletePerfMonitorsAMD")]
+ public static
+ void DeletePerfMonitors(Int32 n, UInt32[] monitors)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* monitors_ptr = monitors)
+ {
+ Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
@@ -160,27 +181,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeletePerfMonitorsAMD")]
- public static
- void DeletePerfMonitors(Int32 n, UInt32[] monitors)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* monitors_ptr = monitors)
- {
- Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEndPerfMonitorAMD")]
public static
void EndPerfMonitor(Int32 monitor)
@@ -210,21 +210,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")]
- public static
- unsafe void GenPerfMonitors(Int32 n, [OutAttribute] Int32* monitors)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")]
public static
void GenPerfMonitors(Int32 n, [OutAttribute] Int32[] monitors)
@@ -269,29 +254,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")]
public static
- void GenPerfMonitors(Int32 n, [OutAttribute] out UInt32 monitors)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* monitors_ptr = &monitors)
- {
- Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
- monitors = *monitors_ptr;
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")]
- public static
- unsafe void GenPerfMonitors(Int32 n, [OutAttribute] UInt32* monitors)
+ unsafe void GenPerfMonitors(Int32 n, [OutAttribute] Int32* monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -325,15 +288,37 @@ namespace OpenTK.Graphics.ES20
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")]
public static
- unsafe void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] Int32* data, [OutAttribute] Int32* bytesWritten)
+ void GenPerfMonitors(Int32 n, [OutAttribute] out UInt32 monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data, (Int32*)bytesWritten);
+ unsafe
+ {
+ fixed (UInt32* monitors_ptr = &monitors)
+ {
+ Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
+ monitors = *monitors_ptr;
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")]
+ public static
+ unsafe void GenPerfMonitors(Int32 n, [OutAttribute] UInt32* monitors)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors);
#if DEBUG
}
#endif
@@ -383,6 +368,43 @@ namespace OpenTK.Graphics.ES20
#endif
}
+ [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, [OutAttribute] Int32* data, [OutAttribute] Int32* bytesWritten)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data, (Int32*)bytesWritten);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [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, [OutAttribute] UInt32[] data, [OutAttribute] Int32[] bytesWritten)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* data_ptr = data)
+ fixed (Int32* bytesWritten_ptr = bytesWritten)
+ {
+ Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")]
public static
@@ -422,23 +444,15 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
public static
- void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] UInt32[] data, [OutAttribute] Int32[] bytesWritten)
+ void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr data)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- unsafe
- {
- fixed (UInt32* data_ptr = data)
- fixed (Int32* bytesWritten_ptr = bytesWritten)
- {
- Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr);
- }
- }
+ Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data);
#if DEBUG
}
#endif
@@ -446,31 +460,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, [InAttribute, OutAttribute] ref T3 data)
- where T3 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
- try
- {
- Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data_ptr.AddrOfPinnedObject());
- data = (T3)data_ptr.Target;
- }
- finally
- {
- data_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
- public static
- void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T3[,,] data)
+ void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T3[] data)
where T3 : struct
{
#if DEBUG
@@ -516,7 +506,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, [InAttribute, OutAttribute] T3[] data)
+ void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T3[,,] data)
where T3 : struct
{
#if DEBUG
@@ -539,22 +529,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, [OutAttribute] IntPtr data)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data);
- #if DEBUG
- }
- #endif
- }
-
- [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, [InAttribute, OutAttribute] ref T3 data)
+ void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] ref T3 data)
where T3 : struct
{
#if DEBUG
@@ -579,7 +554,22 @@ 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, [InAttribute, OutAttribute] T3[,,] data)
+ void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr data)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [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, [InAttribute, OutAttribute] T3[] data)
where T3 : struct
{
#if DEBUG
@@ -627,7 +617,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, [InAttribute, OutAttribute] T3[] data)
+ void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T3[,,] data)
where T3 : struct
{
#if DEBUG
@@ -651,28 +641,23 @@ 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, [OutAttribute] IntPtr data)
+ void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] ref T3 data)
+ where T3 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data);
- #if DEBUG
+ GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data_ptr.AddrOfPinnedObject());
+ data = (T3)data_ptr.Target;
}
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")]
- public static
- unsafe void GetPerfMonitorCounters(Int32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] Int32* counters)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
+ finally
{
- #endif
- Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters);
+ data_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -728,7 +713,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")]
public static
- unsafe void GetPerfMonitorCounters(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters)
+ unsafe void GetPerfMonitorCounters(Int32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] Int32* counters)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -790,15 +775,15 @@ namespace OpenTK.Graphics.ES20
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")]
public static
- unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString)
+ unsafe void GetPerfMonitorCounters(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString);
+ Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters);
#if DEBUG
}
#endif
@@ -848,7 +833,7 @@ 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, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString)
+ unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -904,30 +889,15 @@ namespace OpenTK.Graphics.ES20
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")]
public static
- unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] Int32* groups)
+ unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups);
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")]
- public static
- unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups);
+ Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString);
#if DEBUG
}
#endif
@@ -1024,15 +994,30 @@ namespace OpenTK.Graphics.ES20
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")]
public static
- unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString)
+ unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] Int32* groups)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString);
+ Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")]
+ public static
+ unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups);
#if DEBUG
}
#endif
@@ -1082,7 +1067,7 @@ 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, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString)
+ unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -1138,15 +1123,15 @@ namespace OpenTK.Graphics.ES20
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSelectPerfMonitorCountersAMD")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")]
public static
- unsafe void SelectPerfMonitorCounters(Int32 monitor, bool enable, Int32 group, Int32 numCounters, Int32* countersList)
+ unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)countersList);
+ Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString);
#if DEBUG
}
#endif
@@ -1192,6 +1177,42 @@ namespace OpenTK.Graphics.ES20
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSelectPerfMonitorCountersAMD")]
+ public static
+ unsafe void SelectPerfMonitorCounters(Int32 monitor, bool enable, Int32 group, Int32 numCounters, Int32* countersList)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)countersList);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSelectPerfMonitorCountersAMD")]
+ public static
+ void SelectPerfMonitorCounters(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32[] countersList)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* countersList_ptr = countersList)
+ {
+ Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)countersList_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSelectPerfMonitorCountersAMD")]
public static
@@ -1228,27 +1249,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSelectPerfMonitorCountersAMD")]
- public static
- void SelectPerfMonitorCounters(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32[] countersList)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* countersList_ptr = countersList)
- {
- Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)countersList_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
}
@@ -1736,23 +1736,13 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")]
public static
- void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] ref T2 data, OpenTK.Graphics.ES20.BufferUsage usage)
- where T2 : struct
+ void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
- try
- {
- Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.BufferUsage)usage);
- data = (T2)data_ptr.Target;
- }
- finally
- {
- data_ptr.Free();
- }
+ Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ES20.BufferUsage)usage);
#if DEBUG
}
#endif
@@ -1784,7 +1774,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")]
public static
- void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] T2[,,] data, OpenTK.Graphics.ES20.BufferUsage usage)
+ void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] T2[] data, OpenTK.Graphics.ES20.BufferUsage usage)
where T2 : struct
{
#if DEBUG
@@ -1878,7 +1868,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")]
public static
- void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] T2[] data, OpenTK.Graphics.ES20.BufferUsage usage)
+ void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] T2[,,] data, OpenTK.Graphics.ES20.BufferUsage usage)
where T2 : struct
{
#if DEBUG
@@ -1925,46 +1915,8 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")]
public static
- 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.BufferTarget)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ES20.BufferUsage)usage);
- #if DEBUG
- }
- #endif
- }
-
-
- ///
- /// Updates a subset of a buffer object's data store
- ///
- ///
- ///
- /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER.
- ///
- ///
- ///
- ///
- /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes.
- ///
- ///
- ///
- ///
- /// Specifies the size in bytes of the data store region being replaced.
- ///
- ///
- ///
- ///
- /// Specifies a pointer to the new data that will be copied into the data store.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")]
- public static
- void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] ref T3 data)
- where T3 : struct
+ void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] ref T2 data, OpenTK.Graphics.ES20.BufferUsage usage)
+ where T2 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -1973,8 +1925,8 @@ namespace OpenTK.Graphics.ES20
GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
try
{
- Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject());
- data = (T3)data_ptr.Target;
+ Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.BufferUsage)usage);
+ data = (T2)data_ptr.Target;
}
finally
{
@@ -2011,7 +1963,45 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")]
public static
- void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,,] 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.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Updates a subset of a buffer object's data store
+ ///
+ ///
+ ///
+ /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the size in bytes of the data store region being replaced.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a pointer to the new data that will be copied into the data store.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")]
+ public static
+ void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[] data)
where T3 : struct
{
#if DEBUG
@@ -2105,7 +2095,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")]
public static
- void BufferSubData(OpenTK.Graphics.ES20.BufferTarget 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
@@ -2152,13 +2142,23 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")]
public static
- void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, IntPtr data)
+ void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] ref T3 data)
+ where T3 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data);
+ GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject());
+ data = (T3)data_ptr.Target;
+ }
+ finally
+ {
+ data_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -2386,23 +2386,13 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")]
public static
- 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
+ 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
- GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
- try
- {
- 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
- {
- data_ptr.Free();
- }
+ 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
@@ -2454,7 +2444,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")]
public static
- 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)
+ 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
@@ -2588,7 +2578,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")]
public static
- 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)
+ 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
@@ -2655,71 +2645,8 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")]
public 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)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- 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
- }
-
-
- ///
- /// Specify a two-dimensional texture subimage in a compressed format
- ///
- ///
- ///
- /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z.
- ///
- ///
- ///
- ///
- /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
- ///
- ///
- ///
- ///
- /// Specifies a texel offset in the x direction within the texture array.
- ///
- ///
- ///
- ///
- /// Specifies a texel offset in the y direction within the texture array.
- ///
- ///
- ///
- ///
- /// Specifies the width of the texture subimage.
- ///
- ///
- ///
- ///
- /// Specifies the height of the texture subimage.
- ///
- ///
- ///
- ///
- /// Specifies the format of the compressed image data stored at address data.
- ///
- ///
- ///
- ///
- /// Specifies the number of unsigned bytes of image data starting at the address specified by data.
- ///
- ///
- ///
- ///
- /// Specifies a pointer to the compressed image data in memory.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")]
- public 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, [InAttribute, OutAttribute] ref T8 data)
- where T8 : struct
+ 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -2728,8 +2655,8 @@ namespace OpenTK.Graphics.ES20
GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
try
{
- 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;
+ 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
{
@@ -2791,7 +2718,70 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")]
public 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, [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, IntPtr data)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ 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
+ }
+
+
+ ///
+ /// Specify a two-dimensional texture subimage in a compressed format
+ ///
+ ///
+ ///
+ /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a texel offset in the x direction within the texture array.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a texel offset in the y direction within the texture array.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the width of the texture subimage.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the height of the texture subimage.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the format of the compressed image data stored at address data.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the number of unsigned bytes of image data starting at the address specified by data.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a pointer to the compressed image data in memory.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")]
+ public 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, [InAttribute, OutAttribute] T8[] data)
where T8 : struct
{
#if DEBUG
@@ -2935,7 +2925,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")]
public 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, [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
@@ -3007,13 +2997,23 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")]
public 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)
+ 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- 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);
+ GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
+ try
+ {
+ 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
+ {
+ data_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -3190,35 +3190,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Delete named buffer objects
- ///
- ///
- ///
- /// Specifies the number of buffer objects to be deleted.
- ///
- ///
- ///
- ///
- /// Specifies an array of buffer objects to be deleted.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteBuffers")]
- public static
- unsafe void DeleteBuffers(Int32 n, Int32* buffers)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Delete named buffer objects
///
@@ -3287,6 +3258,70 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Delete named buffer objects
+ ///
+ ///
+ ///
+ /// Specifies the number of buffer objects to be deleted.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array of buffer objects to be deleted.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteBuffers")]
+ public static
+ unsafe void DeleteBuffers(Int32 n, Int32* buffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Delete named buffer objects
+ ///
+ ///
+ ///
+ /// Specifies the number of buffer objects to be deleted.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array of buffer objects to be deleted.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteBuffers")]
+ public static
+ void DeleteBuffers(Int32 n, UInt32[] buffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* buffers_ptr = buffers)
+ {
+ Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Delete named buffer objects
///
@@ -3350,56 +3385,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
-
- ///
- /// Delete named buffer objects
- ///
- ///
- ///
- /// Specifies the number of buffer objects to be deleted.
- ///
- ///
- ///
- ///
- /// Specifies an array of buffer objects to be deleted.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteBuffers")]
- public static
- void DeleteBuffers(Int32 n, UInt32[] buffers)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* buffers_ptr = buffers)
- {
- Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")]
- public static
- unsafe void DeleteFramebuffers(Int32 n, Int32* framebuffers)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")]
public static
void DeleteFramebuffers(Int32 n, Int32[] framebuffers)
@@ -3440,6 +3425,42 @@ namespace OpenTK.Graphics.ES20
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")]
+ public static
+ unsafe void DeleteFramebuffers(Int32 n, Int32* framebuffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")]
+ public static
+ void DeleteFramebuffers(Int32 n, UInt32[] framebuffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* framebuffers_ptr = framebuffers)
+ {
+ Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")]
public static
@@ -3476,27 +3497,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")]
- public static
- void DeleteFramebuffers(Int32 n, UInt32[] framebuffers)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* framebuffers_ptr = framebuffers)
- {
- Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
///
/// Deletes a program object
@@ -3544,21 +3544,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")]
- public static
- unsafe void DeleteRenderbuffers(Int32 n, Int32* renderbuffers)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")]
public static
void DeleteRenderbuffers(Int32 n, Int32[] renderbuffers)
@@ -3599,6 +3584,42 @@ namespace OpenTK.Graphics.ES20
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")]
+ public static
+ unsafe void DeleteRenderbuffers(Int32 n, Int32* renderbuffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")]
+ public static
+ void DeleteRenderbuffers(Int32 n, UInt32[] renderbuffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* renderbuffers_ptr = renderbuffers)
+ {
+ Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")]
public static
@@ -3635,27 +3656,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")]
- public static
- void DeleteRenderbuffers(Int32 n, UInt32[] renderbuffers)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* renderbuffers_ptr = renderbuffers)
- {
- Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
///
/// Deletes a shader object
@@ -3704,35 +3704,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Delete named textures
- ///
- ///
- ///
- /// Specifies the number of textures to be deleted.
- ///
- ///
- ///
- ///
- /// Specifies an array of textures to be deleted.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteTextures")]
- public static
- unsafe void DeleteTextures(Int32 n, Int32* textures)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glDeleteTextures((Int32)n, (UInt32*)textures);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Delete named textures
///
@@ -3801,6 +3772,70 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Delete named textures
+ ///
+ ///
+ ///
+ /// Specifies the number of textures to be deleted.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array of textures to be deleted.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteTextures")]
+ public static
+ unsafe void DeleteTextures(Int32 n, Int32* textures)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glDeleteTextures((Int32)n, (UInt32*)textures);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Delete named textures
+ ///
+ ///
+ ///
+ /// Specifies the number of textures to be deleted.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array of textures to be deleted.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteTextures")]
+ public static
+ void DeleteTextures(Int32 n, UInt32[] textures)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* textures_ptr = textures)
+ {
+ Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Delete named textures
///
@@ -3865,41 +3900,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Delete named textures
- ///
- ///
- ///
- /// Specifies the number of textures to be deleted.
- ///
- ///
- ///
- ///
- /// Specifies an array of textures to be deleted.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteTextures")]
- public static
- void DeleteTextures(Int32 n, UInt32[] textures)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* textures_ptr = textures)
- {
- Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specify the value used for depth buffer comparisons
///
@@ -4161,23 +4161,13 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")]
public static
- void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] ref T3 indices)
- where T3 : struct
+ void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned);
- try
- {
- Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject());
- indices = (T3)indices_ptr.Target;
- }
- finally
- {
- indices_ptr.Free();
- }
+ Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices);
#if DEBUG
}
#endif
@@ -4209,7 +4199,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")]
public static
- void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType 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
@@ -4303,7 +4293,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")]
public static
- void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType 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
@@ -4350,13 +4340,23 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")]
public static
- void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices);
+ GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject());
+ indices = (T3)indices_ptr.Target;
+ }
+ finally
+ {
+ indices_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -4579,35 +4579,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Generate buffer object names
- ///
- ///
- ///
- /// Specifies the number of buffer object names to be generated.
- ///
- ///
- ///
- ///
- /// Specifies an array in which the generated buffer object names are stored.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")]
- public static
- unsafe void GenBuffers(Int32 n, [OutAttribute] Int32* buffers)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGenBuffers((Int32)n, (UInt32*)buffers);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Generate buffer object names
///
@@ -4677,6 +4648,70 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Generate buffer object names
+ ///
+ ///
+ ///
+ /// Specifies the number of buffer object names to be generated.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array in which the generated buffer object names are stored.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")]
+ public static
+ unsafe void GenBuffers(Int32 n, [OutAttribute] Int32* buffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGenBuffers((Int32)n, (UInt32*)buffers);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Generate buffer object names
+ ///
+ ///
+ ///
+ /// Specifies the number of buffer object names to be generated.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array in which the generated buffer object names are stored.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")]
+ public static
+ void GenBuffers(Int32 n, [OutAttribute] UInt32[] buffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* buffers_ptr = buffers)
+ {
+ Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Generate buffer object names
///
@@ -4741,41 +4776,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
-
- ///
- /// Generate buffer object names
- ///
- ///
- ///
- /// Specifies the number of buffer object names to be generated.
- ///
- ///
- ///
- ///
- /// Specifies an array in which the generated buffer object names are stored.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")]
- public static
- void GenBuffers(Int32 n, [OutAttribute] UInt32[] buffers)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* buffers_ptr = buffers)
- {
- Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenerateMipmap")]
public static
void GenerateMipmap(OpenTK.Graphics.ES20.TextureTarget target)
@@ -4790,21 +4790,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")]
- public static
- unsafe void GenFramebuffers(Int32 n, [OutAttribute] Int32* framebuffers)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")]
public static
void GenFramebuffers(Int32 n, [OutAttribute] Int32[] framebuffers)
@@ -4849,29 +4834,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")]
public static
- void GenFramebuffers(Int32 n, [OutAttribute] out UInt32 framebuffers)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* framebuffers_ptr = &framebuffers)
- {
- Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr);
- framebuffers = *framebuffers_ptr;
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")]
- public static
- unsafe void GenFramebuffers(Int32 n, [OutAttribute] UInt32* framebuffers)
+ unsafe void GenFramebuffers(Int32 n, [OutAttribute] Int32* framebuffers)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -4905,15 +4868,37 @@ namespace OpenTK.Graphics.ES20
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")]
public static
- unsafe void GenRenderbuffers(Int32 n, [OutAttribute] Int32* renderbuffers)
+ void GenFramebuffers(Int32 n, [OutAttribute] out UInt32 framebuffers)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers);
+ unsafe
+ {
+ fixed (UInt32* framebuffers_ptr = &framebuffers)
+ {
+ Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr);
+ framebuffers = *framebuffers_ptr;
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")]
+ public static
+ unsafe void GenFramebuffers(Int32 n, [OutAttribute] UInt32* framebuffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers);
#if DEBUG
}
#endif
@@ -4963,29 +4948,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")]
public static
- void GenRenderbuffers(Int32 n, [OutAttribute] out UInt32 renderbuffers)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* renderbuffers_ptr = &renderbuffers)
- {
- Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr);
- renderbuffers = *renderbuffers_ptr;
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")]
- public static
- unsafe void GenRenderbuffers(Int32 n, [OutAttribute] UInt32* renderbuffers)
+ unsafe void GenRenderbuffers(Int32 n, [OutAttribute] Int32* renderbuffers)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -5018,30 +4981,38 @@ namespace OpenTK.Graphics.ES20
#endif
}
-
- ///
- /// Generate texture names
- ///
- ///
- ///
- /// Specifies the number of texture names to be generated.
- ///
- ///
- ///
- ///
- /// Specifies an array in which the generated texture names are stored.
- ///
- ///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")]
public static
- unsafe void GenTextures(Int32 n, [OutAttribute] Int32* textures)
+ void GenRenderbuffers(Int32 n, [OutAttribute] out UInt32 renderbuffers)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGenTextures((Int32)n, (UInt32*)textures);
+ unsafe
+ {
+ fixed (UInt32* renderbuffers_ptr = &renderbuffers)
+ {
+ Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr);
+ renderbuffers = *renderbuffers_ptr;
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")]
+ public static
+ unsafe void GenRenderbuffers(Int32 n, [OutAttribute] UInt32* renderbuffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers);
#if DEBUG
}
#endif
@@ -5133,43 +5104,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")]
public static
- void GenTextures(Int32 n, [OutAttribute] out UInt32 textures)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* textures_ptr = &textures)
- {
- Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr);
- textures = *textures_ptr;
- }
- }
- #if DEBUG
- }
- #endif
- }
-
-
- ///
- /// Generate texture names
- ///
- ///
- ///
- /// Specifies the number of texture names to be generated.
- ///
- ///
- ///
- ///
- /// Specifies an array in which the generated texture names are stored.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")]
- public static
- unsafe void GenTextures(Int32 n, [OutAttribute] UInt32* textures)
+ unsafe void GenTextures(Int32 n, [OutAttribute] Int32* textures)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -5218,53 +5153,64 @@ namespace OpenTK.Graphics.ES20
///
- /// Returns information about an active attribute variable for the specified program object
+ /// Generate texture names
///
- ///
+ ///
///
- /// Specifies the program object to be queried.
+ /// Specifies the number of texture names to be generated.
///
///
- ///
+ ///
///
- /// Specifies the index of the attribute variable to be queried.
- ///
- ///
- ///
- ///
- /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name.
- ///
- ///
- ///
- ///
- /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed.
- ///
- ///
- ///
- ///
- /// Returns the size of the attribute variable.
- ///
- ///
- ///
- ///
- /// Returns the data type of the attribute variable.
- ///
- ///
- ///
- ///
- /// Returns a null terminated string containing the name of the attribute variable.
+ /// Specifies an array in which the generated texture names are stored.
///
///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")]
public static
- unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] StringBuilder name)
+ void GenTextures(Int32 n, [OutAttribute] out UInt32 textures)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (StringBuilder)name);
+ unsafe
+ {
+ fixed (UInt32* textures_ptr = &textures)
+ {
+ Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr);
+ textures = *textures_ptr;
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Generate texture names
+ ///
+ ///
+ ///
+ /// Specifies the number of texture names to be generated.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array in which the generated texture names are stored.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")]
+ public static
+ unsafe void GenTextures(Int32 n, [OutAttribute] UInt32* textures)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGenTextures((Int32)n, (UInt32*)textures);
#if DEBUG
}
#endif
@@ -5437,7 +5383,7 @@ 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, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] StringBuilder 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))
@@ -5578,7 +5524,7 @@ namespace OpenTK.Graphics.ES20
///
- /// Returns information about an active uniform variable for the specified program object
+ /// Returns information about an active attribute variable for the specified program object
///
///
///
@@ -5587,7 +5533,7 @@ namespace OpenTK.Graphics.ES20
///
///
///
- /// Specifies the index of the uniform variable to be queried.
+ /// Specifies the index of the attribute variable to be queried.
///
///
///
@@ -5602,29 +5548,29 @@ namespace OpenTK.Graphics.ES20
///
///
///
- /// Returns the size of the uniform variable.
+ /// Returns the size of the attribute variable.
///
///
///
///
- /// Returns the data type of the uniform variable.
+ /// Returns the data type of the attribute variable.
///
///
///
///
- /// Returns a null terminated string containing the name of the uniform variable.
+ /// Returns a null terminated string containing the name of the attribute variable.
///
///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")]
public static
- unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] StringBuilder 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.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (StringBuilder)name);
+ Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (StringBuilder)name);
#if DEBUG
}
#endif
@@ -5797,7 +5743,7 @@ 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, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] StringBuilder 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))
@@ -5938,38 +5884,53 @@ namespace OpenTK.Graphics.ES20
///
- /// Returns the handles of the shader objects attached to a program object
+ /// Returns information about an active uniform variable for the specified program object
///
///
///
/// Specifies the program object to be queried.
///
///
- ///
+ ///
///
- /// Specifies the size of the array for storing the returned object names.
+ /// Specifies the index of the uniform variable to be queried.
///
///
- ///
+ ///
///
- /// Returns the number of names actually returned in objects.
+ /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name.
///
///
- ///
+ ///
///
- /// Specifies an array that is used to return the names of attached shader objects.
+ /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the size of the uniform variable.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the data type of the uniform variable.
+ ///
+ ///
+ ///
+ ///
+ /// Returns a null terminated string containing the name of the uniform variable.
///
///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")]
public static
- unsafe void GetAttachedShaders(Int32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] Int32* shaders)
+ 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.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count, (UInt32*)shaders);
+ Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (StringBuilder)name);
#if DEBUG
}
#endif
@@ -6094,7 +6055,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, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders)
+ unsafe void GetAttachedShaders(Int32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] Int32* shaders)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -6201,6 +6162,45 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Returns the handles of the shader objects attached to a program object
+ ///
+ ///
+ ///
+ /// Specifies the program object to be queried.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the size of the array for storing the returned object names.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the number of names actually returned in objects.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array that is used to return the names of attached shader objects.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")]
+ public static
+ unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count, (UInt32*)shaders);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Returns the location of an attribute variable
///
@@ -6257,21 +6257,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")]
- public static
- unsafe void GetBoolean(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool* @params)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetPName)pname, (bool*)@params);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")]
public static
void GetBoolean(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool[] @params)
@@ -6313,35 +6298,16 @@ namespace OpenTK.Graphics.ES20
#endif
}
-
- ///
- /// Return parameters of a buffer object
- ///
- ///
- ///
- /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER.
- ///
- ///
- ///
- ///
- /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE.
- ///
- ///
- ///
- ///
- /// Returns the requested parameter.
- ///
- ///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")]
public static
- unsafe void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] Int32* @params)
+ unsafe void GetBoolean(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferParameterName)pname, (Int32*)@params);
+ Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetPName)pname, (bool*)@params);
#if DEBUG
}
#endif
@@ -6426,31 +6392,35 @@ namespace OpenTK.Graphics.ES20
#endif
}
+
+ ///
+ /// Return parameters of a buffer object
+ ///
+ ///
+ ///
+ /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the requested parameter.
+ ///
+ ///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")]
public static
- unsafe void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] Int32* driverControls)
+ 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.glGetDriverControlsQCOM((Int32*)num, (Int32)size, (UInt32*)driverControls);
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")]
- public static
- unsafe void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] UInt32* driverControls)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGetDriverControlsQCOM((Int32*)num, (Int32)size, (UInt32*)driverControls);
+ Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferParameterName)pname, (Int32*)@params);
#if DEBUG
}
#endif
@@ -6547,15 +6517,30 @@ namespace OpenTK.Graphics.ES20
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")]
public static
- unsafe void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder driverControlString)
+ unsafe void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] Int32* driverControls)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (StringBuilder)driverControlString);
+ Delegates.glGetDriverControlsQCOM((Int32*)num, (Int32)size, (UInt32*)driverControls);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")]
+ public static
+ unsafe void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] UInt32* driverControls)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetDriverControlsQCOM((Int32*)num, (Int32)size, (UInt32*)driverControls);
#if DEBUG
}
#endif
@@ -6605,7 +6590,7 @@ 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, [OutAttribute] Int32* length, [OutAttribute] StringBuilder driverControlString)
+ unsafe void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder driverControlString)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -6660,6 +6645,21 @@ namespace OpenTK.Graphics.ES20
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")]
+ public static
+ 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, (StringBuilder)driverControlString);
+ #if DEBUG
+ }
+ #endif
+ }
+
///
/// Return error information
@@ -6671,6 +6671,26 @@ namespace OpenTK.Graphics.ES20
return Delegates.glGetError();
}
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")]
+ public static
+ void GetFloat(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Single[] @params)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* @params_ptr = @params)
+ {
+ Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetPName)pname, (Single*)@params_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")]
public static
void GetFloat(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] out Single @params)
@@ -6707,41 +6727,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")]
- public static
- void GetFloat(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Single[] @params)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* @params_ptr = @params)
- {
- Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetPName)pname, (Single*)@params_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")]
- public static
- 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.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferParameterName)pname, (Int32*)@params);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")]
public static
void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferParameterName pname, [OutAttribute] Int32[] @params)
@@ -6784,15 +6769,15 @@ namespace OpenTK.Graphics.ES20
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")]
public static
- unsafe void GetInteger(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] 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.glGetIntegerv((OpenTK.Graphics.ES20.GetPName)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
@@ -6839,40 +6824,16 @@ namespace OpenTK.Graphics.ES20
#endif
}
-
- ///
- /// Returns the information log for a program object
- ///
- ///
- ///
- /// Specifies the program object whose information log is to be queried.
- ///
- ///
- ///
- ///
- /// Specifies the size of the character buffer for storing the returned information log.
- ///
- ///
- ///
- ///
- /// Returns the length of the string returned in infoLog (excluding the null terminator).
- ///
- ///
- ///
- ///
- /// Specifies an array of characters that is used to return the information log.
- ///
- ///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")]
public static
- unsafe void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog)
+ unsafe void GetInteger(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog);
+ Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetPName)pname, (Int32*)@params);
#if DEBUG
}
#endif
@@ -6994,7 +6955,7 @@ 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, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog)
+ unsafe void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -7099,33 +7060,38 @@ namespace OpenTK.Graphics.ES20
///
- /// Returns a parameter from a program object
+ /// Returns the information log for a program object
///
///
///
- /// Specifies the program object to be queried.
+ /// Specifies the program object whose information log is to be queried.
///
///
- ///
+ ///
///
- /// Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH.
+ /// Specifies the size of the character buffer for storing the returned information log.
///
///
- ///
+ ///
///
- /// Returns the requested object parameter.
+ /// Returns the length of the string returned in infoLog (excluding the null terminator).
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array of characters that is used to return the information log.
///
///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")]
public static
- unsafe void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params)
+ unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params);
+ Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog);
#if DEBUG
}
#endif
@@ -7232,7 +7198,7 @@ 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.ProgramParameter pname, [OutAttribute] Int32* @params)
+ unsafe void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -7325,16 +7291,35 @@ namespace OpenTK.Graphics.ES20
#endif
}
+
+ ///
+ /// Returns a parameter from a program object
+ ///
+ ///
+ ///
+ /// Specifies the program object to be queried.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the requested object parameter.
+ ///
+ ///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")]
public static
- unsafe void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32* @params)
+ unsafe void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.RenderbufferParameterName)pname, (Int32*)@params);
+ Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params);
#if DEBUG
}
#endif
@@ -7381,40 +7366,16 @@ namespace OpenTK.Graphics.ES20
#endif
}
-
- ///
- /// Returns the information log for a shader object
- ///
- ///
- ///
- /// Specifies the shader object whose information log is to be queried.
- ///
- ///
- ///
- ///
- /// Specifies the size of the character buffer for storing the returned information log.
- ///
- ///
- ///
- ///
- /// Returns the length of the string returned in infoLog (excluding the null terminator).
- ///
- ///
- ///
- ///
- /// Specifies an array of characters that is used to return the information log.
- ///
- ///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")]
public static
- unsafe void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog)
+ 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.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog);
+ Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.RenderbufferParameterName)pname, (Int32*)@params);
#if DEBUG
}
#endif
@@ -7536,7 +7497,7 @@ 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, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog)
+ unsafe void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -7641,33 +7602,38 @@ namespace OpenTK.Graphics.ES20
///
- /// Returns a parameter from a shader object
+ /// Returns the information log for a shader object
///
///
///
- /// Specifies the shader object to be queried.
+ /// Specifies the shader object whose information log is to be queried.
///
///
- ///
+ ///
///
- /// Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH.
+ /// Specifies the size of the character buffer for storing the returned information log.
///
///
- ///
+ ///
///
- /// Returns the requested object parameter.
+ /// Returns the length of the string returned in infoLog (excluding the null terminator).
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array of characters that is used to return the information log.
///
///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")]
public static
- unsafe void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params)
+ unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params);
+ Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog);
#if DEBUG
}
#endif
@@ -7774,7 +7740,7 @@ 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.ShaderParameter pname, [OutAttribute] Int32* @params)
+ unsafe void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -7867,16 +7833,35 @@ namespace OpenTK.Graphics.ES20
#endif
}
+
+ ///
+ /// Returns a parameter from a shader object
+ ///
+ ///
+ ///
+ /// Specifies the shader object to be queried.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the requested object parameter.
+ ///
+ ///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")]
public static
- unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision)
+ unsafe void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.ShaderType)shadertype, (OpenTK.Graphics.ES20.ShaderPrecision)precisiontype, (Int32*)range, (Int32*)precision);
+ Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params);
#if DEBUG
}
#endif
@@ -7926,40 +7911,16 @@ namespace OpenTK.Graphics.ES20
#endif
}
-
- ///
- /// Returns the source code string from a shader object
- ///
- ///
- ///
- /// Specifies the shader object to be queried.
- ///
- ///
- ///
- ///
- /// Specifies the size of the character buffer for storing the returned source code string.
- ///
- ///
- ///
- ///
- /// Returns the length of the string returned in source (excluding the null terminator).
- ///
- ///
- ///
- ///
- /// Specifies an array of characters that is used to return the source code string.
- ///
- ///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")]
public static
- unsafe void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source)
+ 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.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (StringBuilder)source);
+ Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.ShaderType)shadertype, (OpenTK.Graphics.ES20.ShaderPrecision)precisiontype, (Int32*)range, (Int32*)precision);
#if DEBUG
}
#endif
@@ -8081,7 +8042,7 @@ 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, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source)
+ unsafe void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -8185,6 +8146,45 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Returns the source code string from a shader object
+ ///
+ ///
+ ///
+ /// Specifies the shader object to be queried.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the size of the character buffer for storing the returned source code string.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the length of the string returned in source (excluding the null terminator).
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array of characters that is used to return the source code string.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")]
+ public static
+ 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, (StringBuilder)source);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Return a string describing the current GL connection
///
@@ -8209,6 +8209,45 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Return texture parameter values
+ ///
+ ///
+ ///
+ /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the texture parameters.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")]
+ public static
+ void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single[] @params)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* @params_ptr = @params)
+ {
+ Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Single*)@params_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Return texture parameter values
///
@@ -8283,79 +8322,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Return texture parameter values
- ///
- ///
- ///
- /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted.
- ///
- ///
- ///
- ///
- /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted.
- ///
- ///
- ///
- ///
- /// Returns the texture parameters.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")]
- public static
- void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single[] @params)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* @params_ptr = @params)
- {
- Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Single*)@params_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
-
- ///
- /// Return texture parameter values
- ///
- ///
- ///
- /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted.
- ///
- ///
- ///
- ///
- /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted.
- ///
- ///
- ///
- ///
- /// Returns the texture parameters.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")]
- public static
- 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.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Int32*)@params);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Return texture parameter values
///
@@ -8435,6 +8401,79 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Return texture parameter values
+ ///
+ ///
+ ///
+ /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the texture parameters.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")]
+ public static
+ 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.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Int32*)@params);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Returns the value of a uniform variable
+ ///
+ ///
+ ///
+ /// Specifies the program object to be queried.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the location of the uniform variable to be queried.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the value of the specified uniform variable.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")]
+ public static
+ void GetUniform(Int32 program, Int32 location, [OutAttribute] Single[] @params)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* @params_ptr = @params)
+ {
+ Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Returns the value of a uniform variable
///
@@ -8527,9 +8566,10 @@ namespace OpenTK.Graphics.ES20
/// Returns the value of the specified uniform variable.
///
///
+ [System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")]
public static
- void GetUniform(Int32 program, Int32 location, [OutAttribute] Single[] @params)
+ void GetUniform(UInt32 program, Int32 location, [OutAttribute] Single[] @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -8623,80 +8663,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Returns the value of a uniform variable
- ///
- ///
- ///
- /// Specifies the program object to be queried.
- ///
- ///
- ///
- ///
- /// Specifies the location of the uniform variable to be queried.
- ///
- ///
- ///
- ///
- /// Returns the value of the specified uniform variable.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")]
- public static
- void GetUniform(UInt32 program, Int32 location, [OutAttribute] Single[] @params)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* @params_ptr = @params)
- {
- Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
-
- ///
- /// Returns the value of a uniform variable
- ///
- ///
- ///
- /// Specifies the program object to be queried.
- ///
- ///
- ///
- ///
- /// Specifies the location of the uniform variable to be queried.
- ///
- ///
- ///
- ///
- /// Returns the value of the specified uniform variable.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")]
- public static
- unsafe void GetUniform(Int32 program, Int32 location, [OutAttribute] Int32* @params)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Returns the value of a uniform variable
///
@@ -8797,7 +8763,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, [OutAttribute] Int32* @params)
+ unsafe void GetUniform(Int32 program, Int32 location, [OutAttribute] Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -8891,6 +8857,40 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Returns the value of a uniform variable
+ ///
+ ///
+ ///
+ /// Specifies the program object to be queried.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the location of the uniform variable to be queried.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the value of the specified uniform variable.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")]
+ public static
+ unsafe void GetUniform(UInt32 program, Int32 location, [OutAttribute] Int32* @params)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Returns the location of a uniform variable
///
@@ -8948,6 +8948,45 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Return a generic vertex attribute parameter
+ ///
+ ///
+ ///
+ /// Specifies the generic vertex attribute parameter to be queried.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the requested data.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")]
+ public static
+ void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single[] @params)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* @params_ptr = @params)
+ {
+ Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Return a generic vertex attribute parameter
///
@@ -9040,9 +9079,10 @@ namespace OpenTK.Graphics.ES20
/// Returns the requested data.
///
///
+ [System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")]
public static
- void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single[] @params)
+ void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single[] @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -9136,80 +9176,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Return a generic vertex attribute parameter
- ///
- ///
- ///
- /// Specifies the generic vertex attribute parameter to be queried.
- ///
- ///
- ///
- ///
- /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB.
- ///
- ///
- ///
- ///
- /// Returns the requested data.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")]
- public static
- void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single[] @params)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* @params_ptr = @params)
- {
- Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
-
- ///
- /// Return a generic vertex attribute parameter
- ///
- ///
- ///
- /// Specifies the generic vertex attribute parameter to be queried.
- ///
- ///
- ///
- ///
- /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB.
- ///
- ///
- ///
- ///
- /// Returns the requested data.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")]
- public static
- 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.VertexAttribParameter)pname, (Int32*)@params);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Return a generic vertex attribute parameter
///
@@ -9310,7 +9276,7 @@ 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.VertexAttribParameter pname, [OutAttribute] Int32* @params)
+ unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -9405,42 +9371,33 @@ namespace OpenTK.Graphics.ES20
///
- /// Return the address of the specified generic vertex attribute pointer
+ /// Return a generic vertex attribute parameter
///
///
///
- /// Specifies the generic vertex attribute parameter to be returned.
+ /// Specifies the generic vertex attribute parameter to be queried.
///
///
///
///
- /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER.
+ /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB.
///
///
- ///
+ ///
///
- /// Returns the pointer value.
+ /// Returns the requested data.
///
///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")]
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")]
public static
- void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] ref T2 pointer)
- where T2 : struct
+ unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned);
- try
- {
- Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject());
- pointer = (T2)pointer_ptr.Target;
- }
- finally
- {
- pointer_ptr.Free();
- }
+ Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params);
#if DEBUG
}
#endif
@@ -9467,7 +9424,40 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")]
public static
- void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] 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.VertexAttribPointerParameter)pname, (IntPtr)pointer);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Return the address of the specified generic vertex attribute pointer
+ ///
+ ///
+ ///
+ /// Specifies the generic vertex attribute parameter to be returned.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the pointer value.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")]
+ public static
+ void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer)
where T2 : struct
{
#if DEBUG
@@ -9551,7 +9541,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")]
public static
- void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer)
+ void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] pointer)
where T2 : struct
{
#if DEBUG
@@ -9593,41 +9583,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")]
public static
- 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.VertexAttribPointerParameter)pname, (IntPtr)pointer);
- #if DEBUG
- }
- #endif
- }
-
-
- ///
- /// Return the address of the specified generic vertex attribute pointer
- ///
- ///
- ///
- /// Specifies the generic vertex attribute parameter to be returned.
- ///
- ///
- ///
- ///
- /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER.
- ///
- ///
- ///
- ///
- /// Returns the pointer value.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")]
- public static
- void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter 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
@@ -9671,7 +9627,41 @@ 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.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] 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.VertexAttribPointerParameter)pname, (IntPtr)pointer);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Return the address of the specified generic vertex attribute pointer
+ ///
+ ///
+ ///
+ /// Specifies the generic vertex attribute parameter to be returned.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER.
+ ///
+ ///
+ ///
+ ///
+ /// Returns the pointer value.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")]
+ public static
+ void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer)
where T2 : struct
{
#if DEBUG
@@ -9757,7 +9747,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.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer)
+ void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] pointer)
where T2 : struct
{
#if DEBUG
@@ -9800,13 +9790,23 @@ 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.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer)
+ void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] ref T2 pointer)
+ where T2 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer);
+ GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject());
+ pointer = (T2)pointer_ptr.Target;
+ }
+ finally
+ {
+ pointer_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -10266,23 +10266,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.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] ref T6 pixels)
- where T6 : struct
+ 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
- GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned);
- try
- {
- 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
- {
- pixels_ptr.Free();
- }
+ 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
@@ -10319,7 +10309,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.PixelFormat format, OpenTK.Graphics.ES20.PixelType 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
@@ -10423,7 +10413,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.PixelFormat format, OpenTK.Graphics.ES20.PixelType 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
@@ -10475,13 +10465,23 @@ 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.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels);
+ GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned);
+ try
+ {
+ 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
+ {
+ pixels_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -10571,122 +10571,9 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
public static
- unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length)
- where T3 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- binary = (T3)binary_ptr.Target;
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length)
- where T3 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length)
- where T3 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length)
- where T3 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- 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.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length);
- #if DEBUG
- }
- #endif
- }
-
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length)
- where T3 : struct
+ void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -10696,16 +10583,7 @@ namespace OpenTK.Graphics.ES20
{
fixed (Int32* shaders_ptr = shaders)
{
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- binary = (T3)binary_ptr.Target;
- }
- finally
- {
- binary_ptr.Free();
- }
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length);
}
}
#if DEBUG
@@ -10715,7 +10593,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.ShaderBinaryFormat 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
@@ -10773,7 +10651,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.ShaderBinaryFormat 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
@@ -10802,27 +10680,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.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Int32* shaders_ptr = shaders)
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat 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
@@ -10831,7 +10689,7 @@ namespace OpenTK.Graphics.ES20
#endif
unsafe
{
- fixed (Int32* shaders_ptr = &shaders)
+ fixed (Int32* shaders_ptr = shaders)
{
GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
try
@@ -10852,7 +10710,27 @@ 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.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] 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))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Int32* shaders_ptr = &shaders)
+ {
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
+ public static
+ void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length)
where T3 : struct
{
#if DEBUG
@@ -10910,7 +10788,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.ShaderBinaryFormat 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
@@ -10939,28 +10817,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.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Int32* shaders_ptr = &shaders)
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat 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
@@ -10969,7 +10826,7 @@ namespace OpenTK.Graphics.ES20
#endif
unsafe
{
- fixed (UInt32* shaders_ptr = &shaders)
+ fixed (Int32* shaders_ptr = &shaders)
{
GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
try
@@ -10991,27 +10848,36 @@ 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.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] 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.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
+ public static
+ unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length)
where T3 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- unsafe
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
{
- fixed (UInt32* shaders_ptr = &shaders)
- {
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- }
- finally
- {
- binary_ptr.Free();
- }
- }
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ }
+ finally
+ {
+ binary_ptr.Free();
}
#if DEBUG
}
@@ -11021,27 +10887,21 @@ 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.ShaderBinaryFormat 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- unsafe
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
{
- fixed (UInt32* shaders_ptr = &shaders)
- {
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- }
- finally
- {
- binary_ptr.Free();
- }
- }
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ }
+ finally
+ {
+ binary_ptr.Free();
}
#if DEBUG
}
@@ -11051,27 +10911,21 @@ 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.ShaderBinaryFormat 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- unsafe
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
{
- fixed (UInt32* shaders_ptr = &shaders)
- {
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- }
- finally
- {
- binary_ptr.Free();
- }
- }
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ }
+ finally
+ {
+ binary_ptr.Free();
}
#if DEBUG
}
@@ -11081,28 +10935,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.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* shaders_ptr = &shaders)
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat 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
@@ -11127,95 +10960,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.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length)
- where T3 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length)
- where T3 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length)
- where T3 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- 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.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length);
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
- public static
- void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length)
- where T3 : struct
+ void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -11225,16 +10970,7 @@ namespace OpenTK.Graphics.ES20
{
fixed (UInt32* shaders_ptr = shaders)
{
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- binary = (T3)binary_ptr.Target;
- }
- finally
- {
- binary_ptr.Free();
- }
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length);
}
}
#if DEBUG
@@ -11245,7 +10981,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.ShaderBinaryFormat 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
@@ -11305,7 +11041,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.ShaderBinaryFormat 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
@@ -11335,7 +11071,8 @@ 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.ShaderBinaryFormat binaryformat, IntPtr 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -11344,6 +11081,36 @@ namespace OpenTK.Graphics.ES20
unsafe
{
fixed (UInt32* shaders_ptr = shaders)
+ {
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ binary = (T3)binary_ptr.Target;
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
+ public static
+ void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* shaders_ptr = &shaders)
{
Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length);
}
@@ -11353,40 +11120,234 @@ namespace OpenTK.Graphics.ES20
#endif
}
-
- ///
- /// Replaces the source code in a shader object
- ///
- ///
- ///
- /// Specifies the handle of the shader object whose source code is to be replaced.
- ///
- ///
- ///
- ///
- /// Specifies the number of elements in the string and length arrays.
- ///
- ///
- ///
- ///
- /// Specifies an array of pointers to strings containing the source code to be loaded into the shader.
- ///
- ///
- ///
- ///
- /// Specifies an array of string lengths.
- ///
- ///
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderSource")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
public static
- unsafe void ShaderSource(Int32 shader, Int32 count, String[] @string, 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length);
+ unsafe
+ {
+ fixed (UInt32* shaders_ptr = &shaders)
+ {
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
+ public static
+ void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length)
+ where T3 : struct
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* shaders_ptr = &shaders)
+ {
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
+ public static
+ void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length)
+ where T3 : struct
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* shaders_ptr = &shaders)
+ {
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
+ public static
+ void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length)
+ where T3 : struct
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* shaders_ptr = &shaders)
+ {
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ binary = (T3)binary_ptr.Target;
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
+ public static
+ 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.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
+ public static
+ unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length)
+ where T3 : struct
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
+ public static
+ unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length)
+ where T3 : struct
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
+ public static
+ unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length)
+ where T3 : struct
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")]
+ public static
+ unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length)
+ where T3 : struct
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ binary = (T3)binary_ptr.Target;
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -11507,7 +11468,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderSource")]
public static
- unsafe void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length)
+ unsafe void ShaderSource(Int32 shader, Int32 count, String[] @string, Int32* length)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -11610,6 +11571,45 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Replaces the source code in a shader object
+ ///
+ ///
+ ///
+ /// Specifies the handle of the shader object whose source code is to be replaced.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the number of elements in the string and length arrays.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array of pointers to strings containing the source code to be loaded into the shader.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies an array of string lengths.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderSource")]
+ public static
+ unsafe void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Set front and back function and reference value for stencil testing
///
@@ -11979,23 +11979,13 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")]
public 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, [InAttribute, OutAttribute] ref T8 pixels)
- where T8 : struct
+ 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
- GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned);
- try
- {
- 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
- {
- pixels_ptr.Free();
- }
+ 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
@@ -12052,7 +12042,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")]
public 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, [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
@@ -12196,7 +12186,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")]
public 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, [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
@@ -12268,13 +12258,23 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")]
public 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)
+ 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- 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);
+ GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned);
+ try
+ {
+ 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
+ {
+ pixels_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -12314,40 +12314,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Set texture parameters
- ///
- ///
- ///
- /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP.
- ///
- ///
- ///
- ///
- /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP.
- ///
- ///
- ///
- ///
- /// Specifies the value of pname.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterfv")]
- public static
- 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.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Single*)@params);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Set texture parameters
///
@@ -12405,15 +12371,16 @@ namespace OpenTK.Graphics.ES20
/// Specifies the value of pname.
///
///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteri")]
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterfv")]
public static
- void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32 param)
+ unsafe void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glTexParameteri((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Int32)param);
+ Delegates.glTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Single*)@params);
#if DEBUG
}
#endif
@@ -12438,16 +12405,15 @@ namespace OpenTK.Graphics.ES20
/// Specifies the value of pname.
///
///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteriv")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteri")]
public static
- unsafe void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32* @params)
+ void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32 param)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Int32*)@params);
+ Delegates.glTexParameteri((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Int32)param);
#if DEBUG
}
#endif
@@ -12494,72 +12460,33 @@ namespace OpenTK.Graphics.ES20
///
- /// Specify a two-dimensional texture subimage
+ /// Set texture parameters
///
///
///
- /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z.
+ /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP.
///
///
- ///
+ ///
///
- /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
+ /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP.
///
///
- ///
+ ///
///
- /// Specifies a texel offset in the x direction within the texture array.
+ /// Specifies the value of pname.
///
///
- ///
- ///
- /// Specifies a texel offset in the y direction within the texture array.
- ///
- ///
- ///
- ///
- /// Specifies the width of the texture subimage.
- ///
- ///
- ///
- ///
- /// Specifies the height of the texture subimage.
- ///
- ///
- ///
- ///
- /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA.
- ///
- ///
- ///
- ///
- /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV.
- ///
- ///
- ///
- ///
- /// Specifies a pointer to the image data in memory.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")]
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteriv")]
public 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, [InAttribute, OutAttribute] ref T8 pixels)
- where T8 : struct
+ unsafe void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned);
- try
- {
- 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
- {
- pixels_ptr.Free();
- }
+ Delegates.glTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Int32*)@params);
#if DEBUG
}
#endif
@@ -12616,7 +12543,70 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")]
public 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, [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, IntPtr pixels)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ 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
+ }
+
+
+ ///
+ /// Specify a two-dimensional texture subimage
+ ///
+ ///
+ ///
+ /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a texel offset in the x direction within the texture array.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a texel offset in the y direction within the texture array.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the width of the texture subimage.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the height of the texture subimage.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a pointer to the image data in memory.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")]
+ public 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, [InAttribute, OutAttribute] T8[] pixels)
where T8 : struct
{
#if DEBUG
@@ -12760,7 +12750,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")]
public 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, [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
@@ -12832,13 +12822,23 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")]
public 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)
+ 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- 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);
+ GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned);
+ try
+ {
+ 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
+ {
+ pixels_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -12873,6 +12873,40 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Specify the value of a uniform variable for the current program object
+ ///
+ ///
+ ///
+ /// Specifies the location of the uniform variable to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified uniform variable.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1fv")]
+ public static
+ void Uniform1(Int32 location, Int32 count, Single[] v)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* v_ptr = v)
+ {
+ Delegates.glUniform1fv((Int32)location, (Int32)count, (Single*)v_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Specify the value of a uniform variable for the current program object
///
@@ -12936,40 +12970,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Specify the value of a uniform variable for the current program object
- ///
- ///
- ///
- /// Specifies the location of the uniform variable to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the new values to be used for the specified uniform variable.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1fv")]
- public static
- void Uniform1(Int32 location, Int32 count, Single[] v)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* v_ptr = v)
- {
- Delegates.glUniform1fv((Int32)location, (Int32)count, (Single*)v_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specify the value of a uniform variable for the current program object
///
@@ -12998,35 +12998,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Specify the value of a uniform variable for the current program object
- ///
- ///
- ///
- /// Specifies the location of the uniform variable to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the new values to be used for the specified uniform variable.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1iv")]
- public static
- unsafe void Uniform1(Int32 location, Int32 count, Int32* v)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glUniform1iv((Int32)location, (Int32)count, (Int32*)v);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13095,6 +13066,35 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Specify the value of a uniform variable for the current program object
+ ///
+ ///
+ ///
+ /// Specifies the location of the uniform variable to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified uniform variable.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1iv")]
+ public static
+ unsafe void Uniform1(Int32 location, Int32 count, Int32* v)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glUniform1iv((Int32)location, (Int32)count, (Int32*)v);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13123,6 +13123,40 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Specify the value of a uniform variable for the current program object
+ ///
+ ///
+ ///
+ /// Specifies the location of the uniform variable to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified uniform variable.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform2fv")]
+ public static
+ void Uniform2(Int32 location, Int32 count, Single[] v)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* v_ptr = v)
+ {
+ Delegates.glUniform2fv((Int32)location, (Int32)count, (Single*)v_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13186,40 +13220,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Specify the value of a uniform variable for the current program object
- ///
- ///
- ///
- /// Specifies the location of the uniform variable to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the new values to be used for the specified uniform variable.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform2fv")]
- public static
- void Uniform2(Int32 location, Int32 count, Single[] v)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* v_ptr = v)
- {
- Delegates.glUniform2fv((Int32)location, (Int32)count, (Single*)v_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13248,35 +13248,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Specify the value of a uniform variable for the current program object
- ///
- ///
- ///
- /// Specifies the location of the uniform variable to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the new values to be used for the specified uniform variable.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform2iv")]
- public static
- unsafe void Uniform2(Int32 location, Int32 count, Int32* v)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glUniform2iv((Int32)location, (Int32)count, (Int32*)v);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13311,6 +13282,35 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Specify the value of a uniform variable for the current program object
+ ///
+ ///
+ ///
+ /// Specifies the location of the uniform variable to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified uniform variable.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform2iv")]
+ public static
+ unsafe void Uniform2(Int32 location, Int32 count, Int32* v)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glUniform2iv((Int32)location, (Int32)count, (Int32*)v);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13339,6 +13339,40 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Specify the value of a uniform variable for the current program object
+ ///
+ ///
+ ///
+ /// Specifies the location of the uniform variable to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified uniform variable.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3fv")]
+ public static
+ void Uniform3(Int32 location, Int32 count, Single[] v)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* v_ptr = v)
+ {
+ Delegates.glUniform3fv((Int32)location, (Int32)count, (Single*)v_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13402,40 +13436,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Specify the value of a uniform variable for the current program object
- ///
- ///
- ///
- /// Specifies the location of the uniform variable to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the new values to be used for the specified uniform variable.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3fv")]
- public static
- void Uniform3(Int32 location, Int32 count, Single[] v)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* v_ptr = v)
- {
- Delegates.glUniform3fv((Int32)location, (Int32)count, (Single*)v_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13464,35 +13464,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Specify the value of a uniform variable for the current program object
- ///
- ///
- ///
- /// Specifies the location of the uniform variable to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the new values to be used for the specified uniform variable.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3iv")]
- public static
- unsafe void Uniform3(Int32 location, Int32 count, Int32* v)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glUniform3iv((Int32)location, (Int32)count, (Int32*)v);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13561,6 +13532,35 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Specify the value of a uniform variable for the current program object
+ ///
+ ///
+ ///
+ /// Specifies the location of the uniform variable to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified uniform variable.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3iv")]
+ public static
+ unsafe void Uniform3(Int32 location, Int32 count, Int32* v)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glUniform3iv((Int32)location, (Int32)count, (Int32*)v);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13589,6 +13589,40 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Specify the value of a uniform variable for the current program object
+ ///
+ ///
+ ///
+ /// Specifies the location of the uniform variable to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified uniform variable.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4fv")]
+ public static
+ void Uniform4(Int32 location, Int32 count, Single[] v)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* v_ptr = v)
+ {
+ Delegates.glUniform4fv((Int32)location, (Int32)count, (Single*)v_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13652,40 +13686,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Specify the value of a uniform variable for the current program object
- ///
- ///
- ///
- /// Specifies the location of the uniform variable to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the new values to be used for the specified uniform variable.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4fv")]
- public static
- void Uniform4(Int32 location, Int32 count, Single[] v)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* v_ptr = v)
- {
- Delegates.glUniform4fv((Int32)location, (Int32)count, (Single*)v_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13714,35 +13714,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Specify the value of a uniform variable for the current program object
- ///
- ///
- ///
- /// Specifies the location of the uniform variable to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the new values to be used for the specified uniform variable.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4iv")]
- public static
- unsafe void Uniform4(Int32 location, Int32 count, Int32* v)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glUniform4iv((Int32)location, (Int32)count, (Int32*)v);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specify the value of a uniform variable for the current program object
///
@@ -13810,6 +13781,55 @@ namespace OpenTK.Graphics.ES20
#endif
}
+
+ ///
+ /// Specify the value of a uniform variable for the current program object
+ ///
+ ///
+ ///
+ /// Specifies the location of the uniform variable to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified uniform variable.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4iv")]
+ public static
+ unsafe void Uniform4(Int32 location, Int32 count, Int32* v)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glUniform4iv((Int32)location, (Int32)count, (Int32*)v);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix2fv")]
+ public static
+ void UniformMatrix2(Int32 location, Int32 count, bool transpose, Single[] value)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* value_ptr = value)
+ {
+ Delegates.glUniformMatrix2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix2fv")]
public static
void UniformMatrix2(Int32 location, Int32 count, bool transpose, ref Single value)
@@ -13845,9 +13865,9 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix2fv")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix3fv")]
public static
- void UniformMatrix2(Int32 location, Int32 count, bool transpose, Single[] value)
+ void UniformMatrix3(Int32 location, Int32 count, bool transpose, Single[] value)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -13857,7 +13877,7 @@ namespace OpenTK.Graphics.ES20
{
fixed (Single* value_ptr = value)
{
- Delegates.glUniformMatrix2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr);
+ Delegates.glUniformMatrix3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr);
}
}
#if DEBUG
@@ -13900,9 +13920,9 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix3fv")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix4fv")]
public static
- void UniformMatrix3(Int32 location, Int32 count, bool transpose, Single[] value)
+ void UniformMatrix4(Int32 location, Int32 count, bool transpose, Single[] value)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -13912,7 +13932,7 @@ namespace OpenTK.Graphics.ES20
{
fixed (Single* value_ptr = value)
{
- Delegates.glUniformMatrix3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr);
+ Delegates.glUniformMatrix4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr);
}
}
#if DEBUG
@@ -13955,26 +13975,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix4fv")]
- public static
- void UniformMatrix4(Int32 location, Int32 count, bool transpose, Single[] value)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* value_ptr = value)
- {
- Delegates.glUniformMatrix4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
///
/// Installs a program object as part of current rendering state
@@ -14127,35 +14127,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Specifies the value of a generic vertex attribute
- ///
- ///
- ///
- /// Specifies the index of the generic vertex attribute to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the new values to be used for the specified vertex attribute.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib1fv")]
- public static
- unsafe void VertexAttrib1(Int32 indx, Single* values)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glVertexAttrib1fv((UInt32)indx, (Single*)values);
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specifies the value of a generic vertex attribute
///
@@ -14206,7 +14177,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib1fv")]
public static
- unsafe void VertexAttrib1(UInt32 indx, Single* values)
+ unsafe void VertexAttrib1(Int32 indx, Single* values)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -14254,6 +14225,35 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Specifies the value of a generic vertex attribute
+ ///
+ ///
+ ///
+ /// Specifies the index of the generic vertex attribute to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified vertex attribute.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib1fv")]
+ public static
+ unsafe void VertexAttrib1(UInt32 indx, Single* values)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glVertexAttrib1fv((UInt32)indx, (Single*)values);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Specifies the value of a generic vertex attribute
///
@@ -14311,6 +14311,40 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Specifies the value of a generic vertex attribute
+ ///
+ ///
+ ///
+ /// Specifies the index of the generic vertex attribute to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified vertex attribute.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib2fv")]
+ public static
+ void VertexAttrib2(Int32 indx, Single[] values)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* values_ptr = values)
+ {
+ Delegates.glVertexAttrib2fv((UInt32)indx, (Single*)values_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Specifies the value of a generic vertex attribute
///
@@ -14387,9 +14421,10 @@ namespace OpenTK.Graphics.ES20
/// Specifies the new values to be used for the specified vertex attribute.
///
///
+ [System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib2fv")]
public static
- void VertexAttrib2(Int32 indx, Single[] values)
+ void VertexAttrib2(UInt32 indx, Single[] values)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -14472,41 +14507,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Specifies the value of a generic vertex attribute
- ///
- ///
- ///
- /// Specifies the index of the generic vertex attribute to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the new values to be used for the specified vertex attribute.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib2fv")]
- public static
- void VertexAttrib2(UInt32 indx, Single[] values)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* values_ptr = values)
- {
- Delegates.glVertexAttrib2fv((UInt32)indx, (Single*)values_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specifies the value of a generic vertex attribute
///
@@ -14564,6 +14564,40 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Specifies the value of a generic vertex attribute
+ ///
+ ///
+ ///
+ /// Specifies the index of the generic vertex attribute to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified vertex attribute.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib3fv")]
+ public static
+ void VertexAttrib3(Int32 indx, Single[] values)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* values_ptr = values)
+ {
+ Delegates.glVertexAttrib3fv((UInt32)indx, (Single*)values_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Specifies the value of a generic vertex attribute
///
@@ -14640,9 +14674,10 @@ namespace OpenTK.Graphics.ES20
/// Specifies the new values to be used for the specified vertex attribute.
///
///
+ [System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib3fv")]
public static
- void VertexAttrib3(Int32 indx, Single[] values)
+ void VertexAttrib3(UInt32 indx, Single[] values)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -14725,41 +14760,6 @@ namespace OpenTK.Graphics.ES20
}
- ///
- /// Specifies the value of a generic vertex attribute
- ///
- ///
- ///
- /// Specifies the index of the generic vertex attribute to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the new values to be used for the specified vertex attribute.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib3fv")]
- public static
- void VertexAttrib3(UInt32 indx, Single[] values)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* values_ptr = values)
- {
- Delegates.glVertexAttrib3fv((UInt32)indx, (Single*)values_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
-
///
/// Specifies the value of a generic vertex attribute
///
@@ -14817,6 +14817,40 @@ namespace OpenTK.Graphics.ES20
}
+ ///
+ /// Specifies the value of a generic vertex attribute
+ ///
+ ///
+ ///
+ /// Specifies the index of the generic vertex attribute to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the new values to be used for the specified vertex attribute.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib4fv")]
+ public static
+ void VertexAttrib4(Int32 indx, Single[] values)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* values_ptr = values)
+ {
+ Delegates.glVertexAttrib4fv((UInt32)indx, (Single*)values_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+
///
/// Specifies the value of a generic vertex attribute
///
@@ -14893,9 +14927,10 @@ namespace OpenTK.Graphics.ES20
/// Specifies the new values to be used for the specified vertex attribute.
///
///
+ [System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib4fv")]
public static
- void VertexAttrib4(Int32 indx, Single[] values)
+ void VertexAttrib4(UInt32 indx, Single[] values)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -14979,34 +15014,47 @@ namespace OpenTK.Graphics.ES20
///
- /// Specifies the value of a generic vertex attribute
+ /// Define an array of generic vertex attribute data
///
///
///
/// Specifies the index of the generic vertex attribute to be modified.
///
///
- ///
+ ///
///
- /// Specifies the new values to be used for the specified vertex attribute.
+ /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4.
///
///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib4fv")]
+ ///
+ ///
+ /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")]
public static
- void VertexAttrib4(UInt32 indx, Single[] values)
+ 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
- unsafe
- {
- fixed (Single* values_ptr = values)
- {
- Delegates.glVertexAttrib4fv((UInt32)indx, (Single*)values_ptr);
- }
- }
+ Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr);
#if DEBUG
}
#endif
@@ -15048,65 +15096,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.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr)
- where T5 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned);
- try
- {
- 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
- {
- ptr_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
-
- ///
- /// Define an array of generic vertex attribute data
- ///
- ///
- ///
- /// Specifies the index of the generic vertex attribute to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4.
- ///
- ///
- ///
- ///
- /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT.
- ///
- ///
- ///
- ///
- /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed.
- ///
- ///
- ///
- ///
- /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0.
- ///
- ///
- ///
- ///
- /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")]
- public static
- void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType 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
@@ -15220,7 +15210,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.VertexAttribPointerType 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
@@ -15277,56 +15267,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.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.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr);
- #if DEBUG
- }
- #endif
- }
-
-
- ///
- /// Define an array of generic vertex attribute data
- ///
- ///
- ///
- /// Specifies the index of the generic vertex attribute to be modified.
- ///
- ///
- ///
- ///
- /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4.
- ///
- ///
- ///
- ///
- /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT.
- ///
- ///
- ///
- ///
- /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed.
- ///
- ///
- ///
- ///
- /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0.
- ///
- ///
- ///
- ///
- /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0.
- ///
- ///
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")]
- public static
- void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType 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
@@ -15385,7 +15326,56 @@ 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.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] 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.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Define an array of generic vertex attribute data
+ ///
+ ///
+ ///
+ /// Specifies the index of the generic vertex attribute to be modified.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0.
+ ///
+ ///
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")]
+ public static
+ void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr)
where T5 : struct
{
#if DEBUG
@@ -15501,7 +15491,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.VertexAttribPointerType 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
@@ -15559,13 +15549,23 @@ 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.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr);
+ GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned);
+ try
+ {
+ 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
+ {
+ ptr_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -15601,21 +15601,6 @@ namespace OpenTK.Graphics.ES20
public static partial class NV
{
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
- public static
- unsafe void DeleteFences(Int32 n, Int32* fences)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static
void DeleteFences(Int32 n, Int32[] fences)
@@ -15656,6 +15641,42 @@ namespace OpenTK.Graphics.ES20
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
+ public static
+ unsafe void DeleteFences(Int32 n, Int32* fences)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
+ public static
+ void DeleteFences(Int32 n, UInt32[] fences)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* fences_ptr = fences)
+ {
+ Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static
@@ -15692,27 +15713,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
- public static
- void DeleteFences(Int32 n, UInt32[] fences)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* fences_ptr = fences)
- {
- Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFinishFenceNV")]
public static
void FinishFence(Int32 fence)
@@ -15742,21 +15742,6 @@ namespace OpenTK.Graphics.ES20
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
- public static
- unsafe void GenFences(Int32 n, [OutAttribute] Int32* fences)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGenFencesNV((Int32)n, (UInt32*)fences);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static
void GenFences(Int32 n, [OutAttribute] Int32[] fences)
@@ -15801,29 +15786,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static
- void GenFences(Int32 n, [OutAttribute] out UInt32 fences)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* fences_ptr = &fences)
- {
- Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr);
- fences = *fences_ptr;
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
- public static
- unsafe void GenFences(Int32 n, [OutAttribute] UInt32* fences)
+ unsafe void GenFences(Int32 n, [OutAttribute] Int32* fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -15857,15 +15820,37 @@ namespace OpenTK.Graphics.ES20
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static
- unsafe void GetFence(Int32 fence, [OutAttribute] Int32* @params)
+ void GenFences(Int32 n, [OutAttribute] out UInt32 fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params);
+ unsafe
+ {
+ fixed (UInt32* fences_ptr = &fences)
+ {
+ Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr);
+ fences = *fences_ptr;
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
+ public static
+ unsafe void GenFences(Int32 n, [OutAttribute] UInt32* fences)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGenFencesNV((Int32)n, (UInt32*)fences);
#if DEBUG
}
#endif
@@ -15915,7 +15900,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")]
public static
- unsafe void GetFence(UInt32 fence, [OutAttribute] Int32* @params)
+ unsafe void GetFence(Int32 fence, [OutAttribute] Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -15970,6 +15955,21 @@ namespace OpenTK.Graphics.ES20
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")]
+ public static
+ unsafe void GetFence(UInt32 fence, [OutAttribute] Int32* @params)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params);
+ #if DEBUG
+ }
+ #endif
+ }
+
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsFenceNV")]
public static
bool IsFence(Int32 fence)
@@ -16112,23 +16112,13 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage3DOES")]
public static
- void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] ref T8 data)
- where T8 : struct
+ void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
- try
- {
- Delegates.glCompressedTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject());
- data = (T8)data_ptr.Target;
- }
- finally
- {
- data_ptr.Free();
- }
+ Delegates.glCompressedTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data);
#if DEBUG
}
#endif
@@ -16185,7 +16175,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage3DOES")]
public static
- void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T8[,,] data)
+ void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T8[] data)
where T8 : struct
{
#if DEBUG
@@ -16329,7 +16319,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage3DOES")]
public static
- void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T8[] data)
+ void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T8[,,] data)
where T8 : struct
{
#if DEBUG
@@ -16401,76 +16391,8 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage3DOES")]
public static
- void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glCompressedTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data);
- #if DEBUG
- }
- #endif
- }
-
-
- ///
- /// Specify a three-dimensional texture subimage in a compressed format
- ///
- ///
- ///
- /// Specifies the target texture. Must be GL_TEXTURE_3D.
- ///
- ///
- ///
- ///
- /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
- ///
- ///
- ///
- ///
- /// Specifies a texel offset in the x direction within the texture array.
- ///
- ///
- ///
- ///
- /// Specifies a texel offset in the y direction within the texture array.
- ///
- ///
- ///
- ///
- /// Specifies the width of the texture subimage.
- ///
- ///
- ///
- ///
- /// Specifies the height of the texture subimage.
- ///
- ///
- ///
- ///
- /// Specifies the depth of the texture subimage.
- ///
- ///
- ///
- ///
- /// Specifies the format of the compressed image data stored at address data.
- ///
- ///
- ///
- ///
- /// Specifies the number of unsigned bytes of image data starting at the address specified by data.
- ///
- ///
- ///
- ///
- /// Specifies a pointer to the compressed image data in memory.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage3DOES")]
- public static
- void CompressedTexSubImage3D(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, [InAttribute, OutAttribute] ref T10 data)
- where T10 : struct
+ void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] ref T8 data)
+ where T8 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -16479,8 +16401,8 @@ namespace OpenTK.Graphics.ES20
GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
try
{
- Delegates.glCompressedTexSubImage3DOES((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_ptr.AddrOfPinnedObject());
- data = (T10)data_ptr.Target;
+ Delegates.glCompressedTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject());
+ data = (T8)data_ptr.Target;
}
finally
{
@@ -16547,7 +16469,75 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage3DOES")]
public static
- void CompressedTexSubImage3D(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, [InAttribute, OutAttribute] T10[,,] data)
+ void CompressedTexSubImage3D(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)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glCompressedTexSubImage3DOES((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);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Specify a three-dimensional texture subimage in a compressed format
+ ///
+ ///
+ ///
+ /// Specifies the target texture. Must be GL_TEXTURE_3D.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a texel offset in the x direction within the texture array.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a texel offset in the y direction within the texture array.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the width of the texture subimage.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the height of the texture subimage.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the depth of the texture subimage.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the format of the compressed image data stored at address data.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the number of unsigned bytes of image data starting at the address specified by data.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a pointer to the compressed image data in memory.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage3DOES")]
+ public static
+ void CompressedTexSubImage3D(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, [InAttribute, OutAttribute] T10[] data)
where T10 : struct
{
#if DEBUG
@@ -16701,7 +16691,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage3DOES")]
public static
- void CompressedTexSubImage3D(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, [InAttribute, OutAttribute] T10[] data)
+ void CompressedTexSubImage3D(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, [InAttribute, OutAttribute] T10[,,] data)
where T10 : struct
{
#if DEBUG
@@ -16778,13 +16768,23 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage3DOES")]
public static
- void CompressedTexSubImage3D(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)
+ void CompressedTexSubImage3D(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, [InAttribute, OutAttribute] ref T10 data)
+ where T10 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glCompressedTexSubImage3DOES((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);
+ GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glCompressedTexSubImage3DOES((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_ptr.AddrOfPinnedObject());
+ data = (T10)data_ptr.Target;
+ }
+ finally
+ {
+ data_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -16907,23 +16907,13 @@ 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, [InAttribute, OutAttribute] ref T2 @params)
- where T2 : struct
+ void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned);
- try
- {
- Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject());
- @params = (T2)@params_ptr.Target;
- }
- finally
- {
- @params_ptr.Free();
- }
+ Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (IntPtr)@params);
#if DEBUG
}
#endif
@@ -16931,7 +16921,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, [InAttribute, OutAttribute] T2[,,] @params)
+ void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[] @params)
where T2 : struct
{
#if DEBUG
@@ -16977,7 +16967,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, [InAttribute, OutAttribute] T2[] @params)
+ void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,,] @params)
where T2 : struct
{
#if DEBUG
@@ -17000,134 +16990,31 @@ 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, [OutAttribute] IntPtr @params)
+ void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] ref T2 @params)
+ where T2 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (IntPtr)@params);
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
- public static
- 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
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned);
try
{
- Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
- binary = (T4)binary_ptr.Target;
+ Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject());
+ @params = (T2)@params_ptr.Target;
}
finally
{
- binary_ptr.Free();
+ @params_ptr.Free();
}
#if DEBUG
}
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
- public static
- 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
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
- public static
- 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
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
- public static
- 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
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
- public static
- 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))
- {
- #endif
- Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
public static
- void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] ref T4 binary)
- where T4 : struct
+ 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))
@@ -17138,16 +17025,7 @@ namespace OpenTK.Graphics.ES20
fixed (Int32* length_ptr = length)
fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = binaryFormat)
{
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject());
- binary = (T4)binary_ptr.Target;
- }
- finally
- {
- binary_ptr.Free();
- }
+ Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary);
}
}
#if DEBUG
@@ -17157,7 +17035,7 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
public static
- void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] 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
@@ -17217,7 +17095,7 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
public static
- void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] 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
@@ -17247,7 +17125,8 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
public static
- void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [OutAttribute] IntPtr 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -17257,35 +17136,11 @@ namespace OpenTK.Graphics.ES20
{
fixed (Int32* length_ptr = length)
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);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
- public static
- 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
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Int32* length_ptr = &length)
- fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = &binaryFormat)
{
GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
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
@@ -17301,7 +17156,30 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
public static
- void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out 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, [OutAttribute] IntPtr binary)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Int32* length_ptr = &length)
+ 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
+ }
+ #endif
+ }
+
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
+ public static
+ 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
@@ -17365,7 +17243,7 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
public static
- void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out 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
@@ -17397,7 +17275,8 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
public static
- void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [OutAttribute] IntPtr 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -17408,9 +17287,18 @@ namespace OpenTK.Graphics.ES20
fixed (Int32* length_ptr = &length)
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;
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ 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
+ {
+ binary_ptr.Free();
+ }
}
}
#if DEBUG
@@ -17421,7 +17309,94 @@ 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, [OutAttribute] Int32* length, [OutAttribute] 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, [OutAttribute] IntPtr binary)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
+ public static
+ 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
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
+ public static
+ 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
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
+ public static
+ 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
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
+ public static
+ 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
@@ -17446,95 +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, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,,] binary)
- where T4 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
- public static
- 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
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
- public static
- 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
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
- }
- finally
- {
- binary_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
- public static
- 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))
- {
- #endif
- Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary);
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
- public static
- void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] ref T4 binary)
- where T4 : struct
+ 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))
@@ -17545,16 +17432,7 @@ namespace OpenTK.Graphics.ES20
fixed (Int32* length_ptr = length)
fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = binaryFormat)
{
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject());
- binary = (T4)binary_ptr.Target;
- }
- finally
- {
- binary_ptr.Free();
- }
+ Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary);
}
}
#if DEBUG
@@ -17565,7 +17443,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, [OutAttribute] Int32[] length, [OutAttribute] 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
@@ -17627,7 +17505,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, [OutAttribute] Int32[] length, [OutAttribute] 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
@@ -17658,7 +17536,8 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
public static
- void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [OutAttribute] IntPtr 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -17668,36 +17547,11 @@ namespace OpenTK.Graphics.ES20
{
fixed (Int32* length_ptr = length)
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);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
- public static
- 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
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Int32* length_ptr = &length)
- fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = &binaryFormat)
{
GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
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
@@ -17714,7 +17568,31 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
public static
- void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out 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, [OutAttribute] IntPtr binary)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Int32* length_ptr = &length)
+ 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
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
+ public static
+ 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
@@ -17780,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, [OutAttribute] out Int32 length, [OutAttribute] out 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
@@ -17813,7 +17691,8 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
public static
- void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [OutAttribute] IntPtr 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
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -17824,9 +17703,18 @@ namespace OpenTK.Graphics.ES20
fixed (Int32* length_ptr = &length)
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;
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ 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
+ {
+ binary_ptr.Free();
+ }
}
}
#if DEBUG
@@ -17834,6 +17722,118 @@ namespace OpenTK.Graphics.ES20
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
+ public static
+ 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))
+ {
+ #endif
+ Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
+ public static
+ 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
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
+ public static
+ 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
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
+ public static
+ 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
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")]
+ public static
+ 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
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject());
+ binary = (T4)binary_ptr.Target;
+ }
+ finally
+ {
+ binary_ptr.Free();
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
///
/// Map a buffer object's data store
@@ -17865,23 +17865,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")]
public static
- void ProgramBinary(Int32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T2 binary, Int32 length)
- where T2 : struct
+ void ProgramBinary(Int32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
- try
- {
- Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
- binary = (T2)binary_ptr.Target;
- }
- finally
- {
- binary_ptr.Free();
- }
+ Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary, (Int32)length);
#if DEBUG
}
#endif
@@ -17889,7 +17879,7 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")]
public static
- void ProgramBinary(Int32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T2[,,] binary, Int32 length)
+ void ProgramBinary(Int32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T2[] binary, Int32 length)
where T2 : struct
{
#if DEBUG
@@ -17935,7 +17925,7 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")]
public static
- void ProgramBinary(Int32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T2[] binary, Int32 length)
+ void ProgramBinary(Int32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T2[,,] binary, Int32 length)
where T2 : struct
{
#if DEBUG
@@ -17958,22 +17948,7 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")]
public static
- void ProgramBinary(Int32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary, (Int32)length);
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")]
- public static
- void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T2 binary, Int32 length)
+ void ProgramBinary(Int32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T2 binary, Int32 length)
where T2 : struct
{
#if DEBUG
@@ -17998,7 +17973,22 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")]
public static
- void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T2[,,] binary, Int32 length)
+ void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary, (Int32)length);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")]
+ public static
+ void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T2[] binary, Int32 length)
where T2 : struct
{
#if DEBUG
@@ -18046,7 +18036,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")]
public static
- void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T2[] binary, Int32 length)
+ void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T2[,,] binary, Int32 length)
where T2 : struct
{
#if DEBUG
@@ -18070,90 +18060,22 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")]
public static
- void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length)
+ void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T2 binary, Int32 length)
+ where T2 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary, (Int32)length);
- #if DEBUG
- }
- #endif
- }
-
-
- ///
- /// Specify a three-dimensional texture image
- ///
- ///
- ///
- /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D.
- ///
- ///
- ///
- ///
- /// Specifies the level-of-detail number. Level 0 is the base image level. Level is the n sup th mipmap reduction image.
- ///
- ///
- ///
- ///
- /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8.
- ///
- ///
- ///
- ///
- /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide.
- ///
- ///
- ///
- ///
- /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high.
- ///
- ///
- ///
- ///
- /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup k + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep.
- ///
- ///
- ///
- ///
- /// Specifies the width of the border. Must be either 0 or 1.
- ///
- ///
- ///
- ///
- /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA.
- ///
- ///
- ///
- ///
- /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV.
- ///
- ///
- ///
- ///
- /// Specifies a pointer to the image data in memory.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage3DOES")]
- public static
- void TexImage3D(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, [InAttribute, OutAttribute] ref T9 pixels)
- where T9 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned);
+ GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned);
try
{
- Delegates.glTexImage3DOES((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_ptr.AddrOfPinnedObject());
- pixels = (T9)pixels_ptr.Target;
+ Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length);
+ binary = (T2)binary_ptr.Target;
}
finally
{
- pixels_ptr.Free();
+ binary_ptr.Free();
}
#if DEBUG
}
@@ -18216,7 +18138,75 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage3DOES")]
public static
- void TexImage3D(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, [InAttribute, OutAttribute] T9[,,] pixels)
+ void TexImage3D(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)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glTexImage3DOES((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);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Specify a three-dimensional texture image
+ ///
+ ///
+ ///
+ /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the level-of-detail number. Level 0 is the base image level. Level is the n sup th mipmap reduction image.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup k + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the width of the border. Must be either 0 or 1.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a pointer to the image data in memory.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage3DOES")]
+ public static
+ void TexImage3D(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, [InAttribute, OutAttribute] T9[] pixels)
where T9 : struct
{
#if DEBUG
@@ -18370,7 +18360,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage3DOES")]
public static
- void TexImage3D(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, [InAttribute, OutAttribute] T9[] pixels)
+ void TexImage3D(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, [InAttribute, OutAttribute] T9[,,] pixels)
where T9 : struct
{
#if DEBUG
@@ -18447,81 +18437,8 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage3DOES")]
public static
- void TexImage3D(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)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glTexImage3DOES((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);
- #if DEBUG
- }
- #endif
- }
-
-
- ///
- /// Specify a three-dimensional texture subimage
- ///
- ///
- ///
- /// Specifies the target texture. Must be GL_TEXTURE_3D.
- ///
- ///
- ///
- ///
- /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
- ///
- ///
- ///
- ///
- /// Specifies a texel offset in the x direction within the texture array.
- ///
- ///
- ///
- ///
- /// Specifies a texel offset in the y direction within the texture array.
- ///
- ///
- ///
- ///
- /// Specifies a texel offset in the z direction within the texture array.
- ///
- ///
- ///
- ///
- /// Specifies the width of the texture subimage.
- ///
- ///
- ///
- ///
- /// Specifies the height of the texture subimage.
- ///
- ///
- ///
- ///
- /// Specifies the depth of the texture subimage.
- ///
- ///
- ///
- ///
- /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA.
- ///
- ///
- ///
- ///
- /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV.
- ///
- ///
- ///
- ///
- /// Specifies a pointer to the image data in memory.
- ///
- ///
- [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage3DOES")]
- public static
- void TexSubImage3D(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, [InAttribute, OutAttribute] ref T10 pixels)
- where T10 : struct
+ void TexImage3D(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, [InAttribute, OutAttribute] ref T9 pixels)
+ where T9 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -18530,8 +18447,8 @@ namespace OpenTK.Graphics.ES20
GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned);
try
{
- Delegates.glTexSubImage3DOES((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_ptr.AddrOfPinnedObject());
- pixels = (T10)pixels_ptr.Target;
+ Delegates.glTexImage3DOES((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_ptr.AddrOfPinnedObject());
+ pixels = (T9)pixels_ptr.Target;
}
finally
{
@@ -18603,7 +18520,80 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage3DOES")]
public static
- void TexSubImage3D(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, [InAttribute, OutAttribute] T10[,,] pixels)
+ void TexSubImage3D(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)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glTexSubImage3DOES((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);
+ #if DEBUG
+ }
+ #endif
+ }
+
+
+ ///
+ /// Specify a three-dimensional texture subimage
+ ///
+ ///
+ ///
+ /// Specifies the target texture. Must be GL_TEXTURE_3D.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a texel offset in the x direction within the texture array.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a texel offset in the y direction within the texture array.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a texel offset in the z direction within the texture array.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the width of the texture subimage.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the height of the texture subimage.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the depth of the texture subimage.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV.
+ ///
+ ///
+ ///
+ ///
+ /// Specifies a pointer to the image data in memory.
+ ///
+ ///
+ [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage3DOES")]
+ public static
+ void TexSubImage3D(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, [InAttribute, OutAttribute] T10[] pixels)
where T10 : struct
{
#if DEBUG
@@ -18767,7 +18757,7 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage3DOES")]
public static
- void TexSubImage3D(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, [InAttribute, OutAttribute] T10[] pixels)
+ void TexSubImage3D(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, [InAttribute, OutAttribute] T10[,,] pixels)
where T10 : struct
{
#if DEBUG
@@ -18849,13 +18839,23 @@ namespace OpenTK.Graphics.ES20
///
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage3DOES")]
public static
- void TexSubImage3D(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)
+ void TexSubImage3D(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, [InAttribute, OutAttribute] ref T10 pixels)
+ where T10 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glTexSubImage3DOES((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);
+ GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glTexSubImage3DOES((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_ptr.AddrOfPinnedObject());
+ pixels = (T10)pixels_ptr.Target;
+ }
+ finally
+ {
+ pixels_ptr.Free();
+ }
#if DEBUG
}
#endif
diff --git a/Source/OpenTK/Graphics/OpenGL/GL.cs b/Source/OpenTK/Graphics/OpenGL/GL.cs
index 8dfe3f8d..1559d707 100644
--- a/Source/OpenTK/Graphics/OpenGL/GL.cs
+++ b/Source/OpenTK/Graphics/OpenGL/GL.cs
@@ -218,21 +218,6 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")]
- public static
- unsafe void DeletePerfMonitors(Int32 n, [OutAttribute] Int32* monitors)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, [OutAttribute] Int32[] monitors)
@@ -274,6 +259,42 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")]
+ public static
+ unsafe void DeletePerfMonitors(Int32 n, [OutAttribute] Int32* monitors)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")]
+ public static
+ void DeletePerfMonitors(Int32 n, [OutAttribute] UInt32[] monitors)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* monitors_ptr = monitors)
+ {
+ Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
@@ -311,27 +332,6 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")]
- public static
- void DeletePerfMonitors(Int32 n, [OutAttribute] UInt32[] monitors)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* monitors_ptr = monitors)
- {
- Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glEndPerfMonitorAMD")]
public static
void EndPerfMonitor(Int32 monitor)
@@ -361,21 +361,6 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")]
- public static
- unsafe void GenPerfMonitors(Int32 n, [OutAttribute] Int32* monitors)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")]
public static
void GenPerfMonitors(Int32 n, [OutAttribute] Int32[] monitors)
@@ -420,29 +405,7 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")]
public static
- void GenPerfMonitors(Int32 n, [OutAttribute] out UInt32 monitors)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* monitors_ptr = &monitors)
- {
- Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
- monitors = *monitors_ptr;
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")]
- public static
- unsafe void GenPerfMonitors(Int32 n, [OutAttribute] UInt32* monitors)
+ unsafe void GenPerfMonitors(Int32 n, [OutAttribute] Int32* monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -476,15 +439,37 @@ namespace OpenTK.Graphics.OpenGL
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterDataAMD")]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")]
public static
- unsafe void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, Int32 dataSize, [OutAttribute] Int32* data, [OutAttribute] Int32* bytesWritten)
+ void GenPerfMonitors(Int32 n, [OutAttribute] out UInt32 monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (Int32)dataSize, (UInt32*)data, (Int32*)bytesWritten);
+ unsafe
+ {
+ fixed (UInt32* monitors_ptr = &monitors)
+ {
+ Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
+ monitors = *monitors_ptr;
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")]
+ public static
+ unsafe void GenPerfMonitors(Int32 n, [OutAttribute] UInt32* monitors)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors);
#if DEBUG
}
#endif
@@ -531,6 +516,39 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterDataAMD")]
+ public static
+ unsafe void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, Int32 dataSize, [OutAttribute] Int32* data, [OutAttribute] Int32* bytesWritten)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (Int32)dataSize, (UInt32*)data, (Int32*)bytesWritten);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterDataAMD")]
+ public static
+ unsafe void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, Int32 dataSize, [OutAttribute] UInt32[] data, [OutAttribute] Int32* bytesWritten)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ fixed (UInt32* data_ptr = data)
+ {
+ Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten);
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterDataAMD")]
public static
@@ -570,19 +588,15 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterDataAMD")]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
public static
- unsafe void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, Int32 dataSize, [OutAttribute] UInt32[] data, [OutAttribute] Int32* bytesWritten)
+ void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [OutAttribute] IntPtr data)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- fixed (UInt32* data_ptr = data)
- {
- Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten);
- }
+ Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (IntPtr)data);
#if DEBUG
}
#endif
@@ -590,31 +604,7 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
public static
- void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] ref T3 data)
- where T3 : struct
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
- try
- {
- Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject());
- data = (T3)data_ptr.Target;
- }
- finally
- {
- data_ptr.Free();
- }
- #if DEBUG
- }
- #endif
- }
-
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
- public static
- void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] T3[,,] data)
+ void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] T3[] data)
where T3 : struct
{
#if DEBUG
@@ -660,7 +650,7 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
public static
- void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] T3[] data)
+ void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] T3[,,] data)
where T3 : struct
{
#if DEBUG
@@ -683,22 +673,7 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
public static
- void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [OutAttribute] IntPtr data)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (IntPtr)data);
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
- public static
- void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] ref T3 data)
+ void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] ref T3 data)
where T3 : struct
{
#if DEBUG
@@ -723,7 +698,22 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
public static
- void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] T3[,,] data)
+ void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [OutAttribute] IntPtr data)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (IntPtr)data);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
+ public static
+ void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] T3[] data)
where T3 : struct
{
#if DEBUG
@@ -771,7 +761,7 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
public static
- void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] T3[] data)
+ void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] T3[,,] data)
where T3 : struct
{
#if DEBUG
@@ -795,45 +785,22 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")]
public static
- void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [OutAttribute] IntPtr data)
+ void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.OpenGL.AmdPerformanceMonitor pname, [InAttribute, OutAttribute] ref T3 data)
+ where T3 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (IntPtr)data);
- #if DEBUG
+ GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.OpenGL.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject());
+ data = (T3)data_ptr.Target;
}
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")]
- public static
- unsafe void GetPerfMonitorCounters(Int32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] Int32* counters)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
+ finally
{
- #endif
- Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters);
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")]
- public static
- unsafe void GetPerfMonitorCounters(Int32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] Int32[] counters)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- fixed (Int32* counters_ptr = counters)
- {
- Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters_ptr);
+ data_ptr.Free();
}
#if DEBUG
}
@@ -868,13 +835,16 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")]
public static
- unsafe void GetPerfMonitorCounters(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters)
+ unsafe void GetPerfMonitorCounters(Int32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] Int32[] counters)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters);
+ fixed (Int32* counters_ptr = counters)
+ {
+ Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters_ptr);
+ }
#if DEBUG
}
#endif
@@ -883,16 +853,13 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")]
public static
- unsafe void GetPerfMonitorCounters(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32[] counters)
+ unsafe void GetPerfMonitorCounters(Int32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] Int32* counters)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- fixed (UInt32* counters_ptr = counters)
- {
- Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters_ptr);
- }
+ Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters);
#if DEBUG
}
#endif
@@ -925,15 +892,33 @@ namespace OpenTK.Graphics.OpenGL
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")]
public static
- unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString)
+ unsafe void GetPerfMonitorCounters(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32[] counters)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString);
+ fixed (UInt32* counters_ptr = counters)
+ {
+ Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters_ptr);
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")]
+ public static
+ unsafe void GetPerfMonitorCounters(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters);
#if DEBUG
}
#endif
@@ -963,7 +948,7 @@ 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] StringBuilder counterString)
+ unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -998,66 +983,15 @@ namespace OpenTK.Graphics.OpenGL
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")]
public static
- unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] Int32* groups)
+ unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups);
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")]
- public static
- unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] Int32[] groups)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- fixed (Int32* groups_ptr = groups)
- {
- Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups_ptr);
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")]
- public static
- unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups);
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")]
- public static
- unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32[] groups)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- fixed (UInt32* groups_ptr = groups)
- {
- Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups_ptr);
- }
+ Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString);
#if DEBUG
}
#endif
@@ -1111,15 +1045,66 @@ namespace OpenTK.Graphics.OpenGL
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")]
public static
- unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString)
+ unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] Int32[] groups)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString);
+ fixed (Int32* groups_ptr = groups)
+ {
+ Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups_ptr);
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")]
+ public static
+ unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] Int32* groups)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")]
+ public static
+ unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32[] groups)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ fixed (UInt32* groups_ptr = groups)
+ {
+ Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups_ptr);
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")]
+ public static
+ unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups);
#if DEBUG
}
#endif
@@ -1149,7 +1134,7 @@ 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] StringBuilder groupString)
+ unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -1184,15 +1169,15 @@ namespace OpenTK.Graphics.OpenGL
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glSelectPerfMonitorCountersAMD")]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")]
public static
- unsafe void SelectPerfMonitorCounters(Int32 monitor, bool enable, Int32 group, Int32 numCounters, [OutAttribute] Int32* counterList)
+ unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)counterList);
+ Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString);
#if DEBUG
}
#endif
@@ -1239,6 +1224,42 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glSelectPerfMonitorCountersAMD")]
+ public static
+ unsafe void SelectPerfMonitorCounters(Int32 monitor, bool enable, Int32 group, Int32 numCounters, [OutAttribute] Int32* counterList)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)counterList);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glSelectPerfMonitorCountersAMD")]
+ public static
+ void SelectPerfMonitorCounters(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, [OutAttribute] UInt32[] counterList)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* counterList_ptr = counterList)
+ {
+ Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)counterList_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glSelectPerfMonitorCountersAMD")]
public static
@@ -1276,27 +1297,6 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glSelectPerfMonitorCountersAMD")]
- public static
- void SelectPerfMonitorCounters(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, [OutAttribute] UInt32[] counterList)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* counterList_ptr = counterList)
- {
- Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)counterList_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "AmdVertexShaderTesselator", Version = "2.0", EntryPoint = "glTessellationFactorAMD")]
public static
void TessellationFactor(Single factor)
@@ -1372,21 +1372,6 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glDeleteFencesAPPLE")]
- public static
- unsafe void DeleteFences(Int32 n, Int32* fences)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glDeleteFencesAPPLE((Int32)n, (UInt32*)fences);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glDeleteFencesAPPLE")]
public static
void DeleteFences(Int32 n, Int32[] fences)
@@ -1430,28 +1415,7 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glDeleteFencesAPPLE")]
public static
- void DeleteFences(Int32 n, ref UInt32 fences)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* fences_ptr = &fences)
- {
- Delegates.glDeleteFencesAPPLE((Int32)n, (UInt32*)fences_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glDeleteFencesAPPLE")]
- public static
- unsafe void DeleteFences(Int32 n, UInt32* fences)
+ unsafe void DeleteFences(Int32 n, Int32* fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -1485,15 +1449,36 @@ namespace OpenTK.Graphics.OpenGL
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glDeleteVertexArraysAPPLE")]
+ [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glDeleteFencesAPPLE")]
public static
- unsafe void DeleteVertexArrays(Int32 n, Int32* arrays)
+ void DeleteFences(Int32 n, ref UInt32 fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glDeleteVertexArraysAPPLE((Int32)n, (UInt32*)arrays);
+ unsafe
+ {
+ fixed (UInt32* fences_ptr = &fences)
+ {
+ Delegates.glDeleteFencesAPPLE((Int32)n, (UInt32*)fences_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glDeleteFencesAPPLE")]
+ public static
+ unsafe void DeleteFences(Int32 n, UInt32* fences)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glDeleteFencesAPPLE((Int32)n, (UInt32*)fences);
#if DEBUG
}
#endif
@@ -1539,6 +1524,42 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glDeleteVertexArraysAPPLE")]
+ public static
+ unsafe void DeleteVertexArrays(Int32 n, Int32* arrays)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glDeleteVertexArraysAPPLE((Int32)n, (UInt32*)arrays);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glDeleteVertexArraysAPPLE")]
+ public static
+ void DeleteVertexArrays(Int32 n, UInt32[] arrays)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (UInt32* arrays_ptr = arrays)
+ {
+ Delegates.glDeleteVertexArraysAPPLE((Int32)n, (UInt32*)arrays_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glDeleteVertexArraysAPPLE")]
public static
@@ -1575,27 +1596,6 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glDeleteVertexArraysAPPLE")]
- public static
- void DeleteVertexArrays(Int32 n, UInt32[] arrays)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* arrays_ptr = arrays)
- {
- Delegates.glDeleteVertexArraysAPPLE((Int32)n, (UInt32*)arrays_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glDisableVertexAttribAPPLE")]
public static
void DisableVertexAttrib(Int32 index, OpenTK.Graphics.OpenGL.AppleVertexProgramEvaluators pname)
@@ -1670,23 +1670,13 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glElementPointerAPPLE")]
public static
- void ElementPointer(OpenTK.Graphics.OpenGL.AppleElementArray type, [InAttribute, OutAttribute] ref T1 pointer)
- where T1 : struct
+ void ElementPointer(OpenTK.Graphics.OpenGL.AppleElementArray type, IntPtr pointer)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned);
- try
- {
- Delegates.glElementPointerAPPLE((OpenTK.Graphics.OpenGL.AppleElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject());
- pointer = (T1)pointer_ptr.Target;
- }
- finally
- {
- pointer_ptr.Free();
- }
+ Delegates.glElementPointerAPPLE((OpenTK.Graphics.OpenGL.AppleElementArray)type, (IntPtr)pointer);
#if DEBUG
}
#endif
@@ -1694,7 +1684,7 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glElementPointerAPPLE")]
public static
- void ElementPointer(OpenTK.Graphics.OpenGL.AppleElementArray type, [InAttribute, OutAttribute] T1[,,] pointer)
+ void ElementPointer(OpenTK.Graphics.OpenGL.AppleElementArray type, [InAttribute, OutAttribute] T1[] pointer)
where T1 : struct
{
#if DEBUG
@@ -1740,7 +1730,7 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glElementPointerAPPLE")]
public static
- void ElementPointer(OpenTK.Graphics.OpenGL.AppleElementArray type, [InAttribute, OutAttribute] T1[] pointer)
+ void ElementPointer(OpenTK.Graphics.OpenGL.AppleElementArray type, [InAttribute, OutAttribute] T1[,,] pointer)
where T1 : struct
{
#if DEBUG
@@ -1763,13 +1753,23 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glElementPointerAPPLE")]
public static
- void ElementPointer(OpenTK.Graphics.OpenGL.AppleElementArray type, IntPtr pointer)
+ void ElementPointer(OpenTK.Graphics.OpenGL.AppleElementArray type, [InAttribute, OutAttribute] ref T1 pointer)
+ where T1 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glElementPointerAPPLE((OpenTK.Graphics.OpenGL.AppleElementArray)type, (IntPtr)pointer);
+ GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glElementPointerAPPLE((OpenTK.Graphics.OpenGL.AppleElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject());
+ pointer = (T1)pointer_ptr.Target;
+ }
+ finally
+ {
+ pointer_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -1863,23 +1863,13 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glFlushVertexArrayRangeAPPLE")]
public static
- void FlushVertexArrayRange(Int32 length, [InAttribute, OutAttribute] ref T1 pointer)
- where T1 : struct
+ void FlushVertexArrayRange(Int32 length, [OutAttribute] IntPtr pointer)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned);
- try
- {
- Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject());
- pointer = (T1)pointer_ptr.Target;
- }
- finally
- {
- pointer_ptr.Free();
- }
+ Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer);
#if DEBUG
}
#endif
@@ -1887,7 +1877,7 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glFlushVertexArrayRangeAPPLE")]
public static
- void FlushVertexArrayRange(Int32 length, [InAttribute, OutAttribute] T1[,,] pointer)
+ void FlushVertexArrayRange(Int32 length, [InAttribute, OutAttribute] T1[] pointer)
where T1 : struct
{
#if DEBUG
@@ -1933,7 +1923,7 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glFlushVertexArrayRangeAPPLE")]
public static
- void FlushVertexArrayRange(Int32 length, [InAttribute, OutAttribute] T1[] pointer)
+ void FlushVertexArrayRange(Int32 length, [InAttribute, OutAttribute] T1[,,] pointer)
where T1 : struct
{
#if DEBUG
@@ -1956,28 +1946,23 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glFlushVertexArrayRangeAPPLE")]
public static
- void FlushVertexArrayRange(Int32 length, [OutAttribute] IntPtr pointer)
+ void FlushVertexArrayRange(Int32 length, [InAttribute, OutAttribute] ref T1 pointer)
+ where T1 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer);
- #if DEBUG
+ GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject());
+ pointer = (T1)pointer_ptr.Target;
}
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glGenFencesAPPLE")]
- public static
- unsafe void GenFences(Int32 n, [OutAttribute] Int32* fences)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
+ finally
{
- #endif
- Delegates.glGenFencesAPPLE((Int32)n, (UInt32*)fences);
+ pointer_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -2027,29 +2012,7 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glGenFencesAPPLE")]
public static
- void GenFences(Int32 n, [OutAttribute] out UInt32 fences)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* fences_ptr = &fences)
- {
- Delegates.glGenFencesAPPLE((Int32)n, (UInt32*)fences_ptr);
- fences = *fences_ptr;
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glGenFencesAPPLE")]
- public static
- unsafe void GenFences(Int32 n, [OutAttribute] UInt32* fences)
+ unsafe void GenFences(Int32 n, [OutAttribute] Int32* fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -2083,15 +2046,37 @@ namespace OpenTK.Graphics.OpenGL
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glGenVertexArraysAPPLE")]
+ [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glGenFencesAPPLE")]
public static
- unsafe void GenVertexArrays(Int32 n, [OutAttribute] Int32* arrays)
+ void GenFences(Int32 n, [OutAttribute] out UInt32 fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGenVertexArraysAPPLE((Int32)n, (UInt32*)arrays);
+ unsafe
+ {
+ fixed (UInt32* fences_ptr = &fences)
+ {
+ Delegates.glGenFencesAPPLE((Int32)n, (UInt32*)fences_ptr);
+ fences = *fences_ptr;
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glGenFencesAPPLE")]
+ public static
+ unsafe void GenFences(Int32 n, [OutAttribute] UInt32* fences)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGenFencesAPPLE((Int32)n, (UInt32*)fences);
#if DEBUG
}
#endif
@@ -2141,29 +2126,7 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glGenVertexArraysAPPLE")]
public static
- void GenVertexArrays(Int32 n, [OutAttribute] out UInt32 arrays)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (UInt32* arrays_ptr = &arrays)
- {
- Delegates.glGenVertexArraysAPPLE((Int32)n, (UInt32*)arrays_ptr);
- arrays = *arrays_ptr;
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glGenVertexArraysAPPLE")]
- public static
- unsafe void GenVertexArrays(Int32 n, [OutAttribute] UInt32* arrays)
+ unsafe void GenVertexArrays(Int32 n, [OutAttribute] Int32* arrays)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -2197,15 +2160,37 @@ namespace OpenTK.Graphics.OpenGL
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glGetObjectParameterivAPPLE")]
+ [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glGenVertexArraysAPPLE")]
public static
- unsafe void GetObjectParameter(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, Int32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable pname, [OutAttribute] Int32* @params)
+ void GenVertexArrays(Int32 n, [OutAttribute] out UInt32 arrays)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetObjectParameterivAPPLE((OpenTK.Graphics.OpenGL.AppleObjectPurgeable)objectType, (UInt32)name, (OpenTK.Graphics.OpenGL.AppleObjectPurgeable)pname, (Int32*)@params);
+ unsafe
+ {
+ fixed (UInt32* arrays_ptr = &arrays)
+ {
+ Delegates.glGenVertexArraysAPPLE((Int32)n, (UInt32*)arrays_ptr);
+ arrays = *arrays_ptr;
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glGenVertexArraysAPPLE")]
+ public static
+ unsafe void GenVertexArrays(Int32 n, [OutAttribute] UInt32* arrays)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGenVertexArraysAPPLE((Int32)n, (UInt32*)arrays);
#if DEBUG
}
#endif
@@ -2255,7 +2240,7 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glGetObjectParameterivAPPLE")]
public static
- unsafe void GetObjectParameter(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable pname, [OutAttribute] Int32* @params)
+ unsafe void GetObjectParameter(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, Int32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable pname, [OutAttribute] Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -2310,25 +2295,16 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
- [AutoGenerated(Category = "AppleTextureRange", Version = "1.2", EntryPoint = "glGetTexParameterPointervAPPLE")]
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glGetObjectParameterivAPPLE")]
public static
- void GetTexParameterPointer(OpenTK.Graphics.OpenGL.AppleTextureRange target, OpenTK.Graphics.OpenGL.AppleTextureRange pname, [InAttribute, OutAttribute] ref T2 @params)
- where T2 : struct
+ unsafe void GetObjectParameter(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable pname, [OutAttribute] Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned);
- try
- {
- Delegates.glGetTexParameterPointervAPPLE((OpenTK.Graphics.OpenGL.AppleTextureRange)target, (OpenTK.Graphics.OpenGL.AppleTextureRange)pname, (IntPtr)@params_ptr.AddrOfPinnedObject());
- @params = (T2)@params_ptr.Target;
- }
- finally
- {
- @params_ptr.Free();
- }
+ Delegates.glGetObjectParameterivAPPLE((OpenTK.Graphics.OpenGL.AppleObjectPurgeable)objectType, (UInt32)name, (OpenTK.Graphics.OpenGL.AppleObjectPurgeable)pname, (Int32*)@params);
#if DEBUG
}
#endif
@@ -2336,7 +2312,21 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleTextureRange", Version = "1.2", EntryPoint = "glGetTexParameterPointervAPPLE")]
public static
- void GetTexParameterPointer(OpenTK.Graphics.OpenGL.AppleTextureRange target, OpenTK.Graphics.OpenGL.AppleTextureRange pname, [InAttribute, OutAttribute] T2[,,] @params)
+ void GetTexParameterPointer(OpenTK.Graphics.OpenGL.AppleTextureRange target, OpenTK.Graphics.OpenGL.AppleTextureRange pname, [OutAttribute] IntPtr @params)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glGetTexParameterPointervAPPLE((OpenTK.Graphics.OpenGL.AppleTextureRange)target, (OpenTK.Graphics.OpenGL.AppleTextureRange)pname, (IntPtr)@params);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [AutoGenerated(Category = "AppleTextureRange", Version = "1.2", EntryPoint = "glGetTexParameterPointervAPPLE")]
+ public static
+ void GetTexParameterPointer(OpenTK.Graphics.OpenGL.AppleTextureRange target, OpenTK.Graphics.OpenGL.AppleTextureRange pname, [InAttribute, OutAttribute] T2[] @params)
where T2 : struct
{
#if DEBUG
@@ -2382,7 +2372,7 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleTextureRange", Version = "1.2", EntryPoint = "glGetTexParameterPointervAPPLE")]
public static
- void GetTexParameterPointer(OpenTK.Graphics.OpenGL.AppleTextureRange target, OpenTK.Graphics.OpenGL.AppleTextureRange pname, [InAttribute, OutAttribute] T2[] @params)
+ void GetTexParameterPointer(OpenTK.Graphics.OpenGL.AppleTextureRange target, OpenTK.Graphics.OpenGL.AppleTextureRange pname, [InAttribute, OutAttribute] T2[,,] @params)
where T2 : struct
{
#if DEBUG
@@ -2405,13 +2395,23 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleTextureRange", Version = "1.2", EntryPoint = "glGetTexParameterPointervAPPLE")]
public static
- void GetTexParameterPointer(OpenTK.Graphics.OpenGL.AppleTextureRange target, OpenTK.Graphics.OpenGL.AppleTextureRange pname, [OutAttribute] IntPtr @params)
+ void GetTexParameterPointer(OpenTK.Graphics.OpenGL.AppleTextureRange target, OpenTK.Graphics.OpenGL.AppleTextureRange pname, [InAttribute, OutAttribute] ref T2 @params)
+ where T2 : struct
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glGetTexParameterPointervAPPLE((OpenTK.Graphics.OpenGL.AppleTextureRange)target, (OpenTK.Graphics.OpenGL.AppleTextureRange)pname, (IntPtr)@params);
+ GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned);
+ try
+ {
+ Delegates.glGetTexParameterPointervAPPLE((OpenTK.Graphics.OpenGL.AppleTextureRange)target, (OpenTK.Graphics.OpenGL.AppleTextureRange)pname, (IntPtr)@params_ptr.AddrOfPinnedObject());
+ @params = (T2)@params_ptr.Target;
+ }
+ finally
+ {
+ @params_ptr.Free();
+ }
#if DEBUG
}
#endif
@@ -2504,21 +2504,6 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib1dAPPLE")]
- public static
- unsafe void MapVertexAttrib1(Int32 index, Int32 size, Double u1, Double u2, Int32 stride, Int32 order, Double* points)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glMapVertexAttrib1dAPPLE((UInt32)index, (UInt32)size, (Double)u1, (Double)u2, (Int32)stride, (Int32)order, (Double*)points);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib1dAPPLE")]
public static
void MapVertexAttrib1(Int32 index, Int32 size, Double u1, Double u2, Int32 stride, Int32 order, Double[] points)
@@ -2562,7 +2547,7 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib1dAPPLE")]
public static
- unsafe void MapVertexAttrib1(UInt32 index, UInt32 size, Double u1, Double u2, Int32 stride, Int32 order, Double* points)
+ unsafe void MapVertexAttrib1(Int32 index, Int32 size, Double u1, Double u2, Int32 stride, Int32 order, Double* points)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -2616,6 +2601,41 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib1dAPPLE")]
+ public static
+ unsafe void MapVertexAttrib1(UInt32 index, UInt32 size, Double u1, Double u2, Int32 stride, Int32 order, Double* points)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glMapVertexAttrib1dAPPLE((UInt32)index, (UInt32)size, (Double)u1, (Double)u2, (Int32)stride, (Int32)order, (Double*)points);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib1fAPPLE")]
+ public static
+ void MapVertexAttrib1(Int32 index, Int32 size, Single u1, Single u2, Int32 stride, Int32 order, Single[] points)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* points_ptr = points)
+ {
+ Delegates.glMapVertexAttrib1fAPPLE((UInt32)index, (UInt32)size, (Single)u1, (Single)u2, (Int32)stride, (Int32)order, (Single*)points_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib1fAPPLE")]
public static
void MapVertexAttrib1(Int32 index, Int32 size, Single u1, Single u2, Int32 stride, Int32 order, ref Single points)
@@ -2651,9 +2671,10 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
+ [System.CLSCompliant(false)]
[AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib1fAPPLE")]
public static
- void MapVertexAttrib1(Int32 index, Int32 size, Single u1, Single u2, Int32 stride, Int32 order, Single[] points)
+ void MapVertexAttrib1(UInt32 index, UInt32 size, Single u1, Single u2, Int32 stride, Int32 order, Single[] points)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -2707,42 +2728,6 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib1fAPPLE")]
- public static
- void MapVertexAttrib1(UInt32 index, UInt32 size, Single u1, Single u2, Int32 stride, Int32 order, Single[] points)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* points_ptr = points)
- {
- Delegates.glMapVertexAttrib1fAPPLE((UInt32)index, (UInt32)size, (Single)u1, (Single)u2, (Int32)stride, (Int32)order, (Single*)points_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib2dAPPLE")]
- public static
- unsafe void MapVertexAttrib2(Int32 index, Int32 size, Double u1, Double u2, Int32 ustride, Int32 uorder, Double v1, Double v2, Int32 vstride, Int32 vorder, Double* points)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glMapVertexAttrib2dAPPLE((UInt32)index, (UInt32)size, (Double)u1, (Double)u2, (Int32)ustride, (Int32)uorder, (Double)v1, (Double)v2, (Int32)vstride, (Int32)vorder, (Double*)points);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib2dAPPLE")]
public static
void MapVertexAttrib2(Int32 index, Int32 size, Double u1, Double u2, Int32 ustride, Int32 uorder, Double v1, Double v2, Int32 vstride, Int32 vorder, Double[] points)
@@ -2786,7 +2771,7 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib2dAPPLE")]
public static
- unsafe void MapVertexAttrib2(UInt32 index, UInt32 size, Double u1, Double u2, Int32 ustride, Int32 uorder, Double v1, Double v2, Int32 vstride, Int32 vorder, Double* points)
+ unsafe void MapVertexAttrib2(Int32 index, Int32 size, Double u1, Double u2, Int32 ustride, Int32 uorder, Double v1, Double v2, Int32 vstride, Int32 vorder, Double* points)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -2840,6 +2825,41 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib2dAPPLE")]
+ public static
+ unsafe void MapVertexAttrib2(UInt32 index, UInt32 size, Double u1, Double u2, Int32 ustride, Int32 uorder, Double v1, Double v2, Int32 vstride, Int32 vorder, Double* points)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glMapVertexAttrib2dAPPLE((UInt32)index, (UInt32)size, (Double)u1, (Double)u2, (Int32)ustride, (Int32)uorder, (Double)v1, (Double)v2, (Int32)vstride, (Int32)vorder, (Double*)points);
+ #if DEBUG
+ }
+ #endif
+ }
+
+ [AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib2fAPPLE")]
+ public static
+ void MapVertexAttrib2(Int32 index, Int32 size, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single[] points)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Single* points_ptr = points)
+ {
+ Delegates.glMapVertexAttrib2fAPPLE((UInt32)index, (UInt32)size, (Single)u1, (Single)u2, (Int32)ustride, (Int32)uorder, (Single)v1, (Single)v2, (Int32)vstride, (Int32)vorder, (Single*)points_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
[AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib2fAPPLE")]
public static
void MapVertexAttrib2(Int32 index, Int32 size, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, ref Single points)
@@ -2875,9 +2895,10 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
+ [System.CLSCompliant(false)]
[AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib2fAPPLE")]
public static
- void MapVertexAttrib2(Int32 index, Int32 size, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single[] points)
+ void MapVertexAttrib2(UInt32 index, UInt32 size, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single[] points)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -2931,42 +2952,6 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleVertexProgramEvaluators", Version = "1.5", EntryPoint = "glMapVertexAttrib2fAPPLE")]
- public static
- void MapVertexAttrib2(UInt32 index, UInt32 size, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single[] points)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- unsafe
- {
- fixed (Single* points_ptr = points)
- {
- Delegates.glMapVertexAttrib2fAPPLE((UInt32)index, (UInt32)size, (Single)u1, (Single)u2, (Int32)ustride, (Int32)uorder, (Single)v1, (Single)v2, (Int32)vstride, (Int32)vorder, (Single*)points_ptr);
- }
- }
- #if DEBUG
- }
- #endif
- }
-
- [System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glMultiDrawElementArrayAPPLE")]
- public static
- unsafe void MultiDrawElementArray(OpenTK.Graphics.OpenGL.BeginMode mode, Int32* first, Int32* count, Int32 primcount)
- {
- #if DEBUG
- using (new ErrorHelper(GraphicsContext.CurrentContext))
- {
- #endif
- Delegates.glMultiDrawElementArrayAPPLE((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32*)first, (Int32*)count, (Int32)primcount);
- #if DEBUG
- }
- #endif
- }
-
[AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glMultiDrawElementArrayAPPLE")]
public static
void MultiDrawElementArray(OpenTK.Graphics.OpenGL.BeginMode mode, Int32[] first, Int32[] count, Int32 primcount)
@@ -3010,15 +2995,15 @@ namespace OpenTK.Graphics.OpenGL
}
[System.CLSCompliant(false)]
- [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glMultiDrawRangeElementArrayAPPLE")]
+ [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glMultiDrawElementArrayAPPLE")]
public static
- unsafe void MultiDrawRangeElementArray(OpenTK.Graphics.OpenGL.BeginMode mode, Int32 start, Int32 end, Int32* first, Int32* count, Int32 primcount)
+ unsafe void MultiDrawElementArray(OpenTK.Graphics.OpenGL.BeginMode mode, Int32* first, Int32* count, Int32 primcount)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glMultiDrawRangeElementArrayAPPLE((OpenTK.Graphics.OpenGL.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32*)first, (Int32*)count, (Int32)primcount);
+ Delegates.glMultiDrawElementArrayAPPLE((OpenTK.Graphics.OpenGL.BeginMode)mode, (Int32*)first, (Int32*)count, (Int32)primcount);
#if DEBUG
}
#endif
@@ -3069,7 +3054,7 @@ namespace OpenTK.Graphics.OpenGL
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glMultiDrawRangeElementArrayAPPLE")]
public static
- unsafe void MultiDrawRangeElementArray(OpenTK.Graphics.OpenGL.BeginMode mode, UInt32 start, UInt32 end, Int32* first, Int32* count, Int32 primcount)
+ unsafe void MultiDrawRangeElementArray(OpenTK.Graphics.OpenGL.BeginMode mode, Int32 start, Int32 end, Int32* first, Int32* count, Int32 primcount)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -3125,6 +3110,21 @@ namespace OpenTK.Graphics.OpenGL
#endif
}
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glMultiDrawRangeElementArrayAPPLE")]
+ public static
+ unsafe void MultiDrawRangeElementArray(OpenTK.Graphics.OpenGL.BeginMode mode, UInt32 start, UInt32 end, Int32* first, Int32* count, Int32 primcount)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glMultiDrawRangeElementArrayAPPLE((OpenTK.Graphics.OpenGL.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32*)first, (Int32*)count, (Int32)primcount);
+ #if DEBUG
+ }
+ #endif
+ }
+
[AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glObjectPurgeableAPPLE")]
public static
System.IntPtr ObjectPurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, Int32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option)
@@ -3272,23 +3272,13 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleTextureRange", Version = "1.2", EntryPoint = "glTextureRangeAPPLE")]
public static
- void TextureRange(OpenTK.Graphics.OpenGL.AppleTextureRange target, Int32 length, [InAttribute, OutAttribute] ref T2 pointer)
- where T2 : struct
+ void TextureRange(OpenTK.Graphics.OpenGL.AppleTextureRange target, Int32 length, IntPtr pointer)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned);
- try
- {
- Delegates.glTextureRangeAPPLE((OpenTK.Graphics.OpenGL.AppleTextureRange)target, (Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject());
- pointer = (T2)pointer_ptr.Target;
- }
- finally
- {
- pointer_ptr.Free();
- }
+ Delegates.glTextureRangeAPPLE((OpenTK.Graphics.OpenGL.AppleTextureRange)target, (Int32)length, (IntPtr)pointer);
#if DEBUG
}
#endif
@@ -3296,7 +3286,7 @@ namespace OpenTK.Graphics.OpenGL
[AutoGenerated(Category = "AppleTextureRange", Version = "1.2", EntryPoint = "glTextureRangeAPPLE")]
public static
- void TextureRange(OpenTK.Graphics.OpenGL.AppleTextureRange target, Int32 length, [InAttribute, OutAttribute] T2[,,] pointer)
+ void TextureRange