Corrected convenience wrappers for Get* and Delete*

GetBoolean, GetInteger6, GetFixedvOES and Delete* are now matched in
the convenience wrapper generator. Methods returning vectors of fixed
size (e.g. 4 ints) are no longer matched.
This commit is contained in:
Stefanos A 2013-11-14 17:40:06 +01:00
parent 0ee72856e4
commit 431202d830
12 changed files with 2392 additions and 56 deletions

View file

@ -842,44 +842,31 @@ namespace Bind
var p = d.Parameters.Last();
var r = d.ReturnType;
var name = GetTrimmedName(d);
bool is_candidate = true;
is_candidate &= d.Name.StartsWith("Get") || d.Name.StartsWith("Gen") ||
d.Name.StartsWith("Delete") || d.Name.StartsWith("New");
is_candidate &= d.Name.EndsWith("v") || d.Name.EndsWith("s");
is_candidate &=
name.StartsWith("Get") || name.StartsWith("Gen") ||
name.StartsWith("Delete") || name.StartsWith("New");
is_candidate &= p.Pointer > 0;
// if there is a specific count set, such as "4", then this function
// returns a vector of specific dimensions and it would be wrong
// to generate an overload that returns a value of different size.
is_candidate &= p.ElementCount == 0 || p.ElementCount == 1;
is_candidate &= r.CurrentType == "void" && r.Pointer == 0;
if (is_candidate && p.Flow == FlowDirection.Out)
{
var f = new Delegate(d);
f.ReturnType = new Type(f.Parameters.Last());
f.ReturnType.Pointer = 0;
f.Parameters.RemoveAt(f.Parameters.Count - 1);
f.ReturnType.WrapperType = WrapperTypes.ConvenienceReturnType;
if (f.Parameters.Count > 0)
{
var p_size = f.Parameters.Last();
if (p_size.CurrentType.ToLower().Contains("int") && p_size.Pointer == 0)
{
f.Parameters.RemoveAt(f.Parameters.Count - 1);
f.ReturnType.WrapperType = WrapperTypes.ConvenienceArrayReturnType;
}
}
// Match Gen*|Get*|New*([Out] int[] names) methods
var f = CreateReturnTypeConvenienceWrapper(d);
yield return f;
}
else if (is_candidate && p.Flow != FlowDirection.Out)
{
// Match *Delete(int count, int[] names) methods
if (d.Parameters.Count == 2)
{
var f = new Delegate(d);
var p_array = f.Parameters.Last();
var p_size = f.Parameters[f.Parameters.Count - 2];
f.Parameters.RemoveAt(f.Parameters.Count - 2);
p_array.WrapperType = WrapperTypes.ConvenienceArrayType;
p_array.Pointer = 0;
var f = CreateArrayReturnTypeConvencienceWrapper(d);
yield return f;
}
}
@ -887,6 +874,39 @@ namespace Bind
}
}
static Delegate CreateReturnTypeConvenienceWrapper(Delegate d)
{
var f = new Delegate(d);
f.ReturnType = new Type(f.Parameters.Last());
f.ReturnType.Pointer = 0;
f.Parameters.RemoveAt(f.Parameters.Count - 1);
f.ReturnType.WrapperType = WrapperTypes.ConvenienceReturnType;
if (d.Name.Contains("GetFixed"))
System.Diagnostics.Debugger.Break();
if (f.Parameters.Count > 0)
{
var p_size = f.Parameters.Last();
if (p_size.CurrentType.ToLower().StartsWith("int") && p_size.Pointer == 0)
{
f.Parameters.RemoveAt(f.Parameters.Count - 1);
f.ReturnType.WrapperType = WrapperTypes.ConvenienceArrayReturnType;
}
}
return f;
}
static Delegate CreateArrayReturnTypeConvencienceWrapper(Delegate d)
{
var f = new Delegate(d);
var p_array = f.Parameters.Last();
var p_size = f.Parameters[f.Parameters.Count - 2];
f.Parameters.RemoveAt(f.Parameters.Count - 2);
p_array.WrapperType = WrapperTypes.ConvenienceArrayType;
p_array.Pointer = 0;
return f;
}
public IEnumerable<Function> WrapParameters(Function func, EnumCollection enums)
{
Function f;

View file

@ -213,6 +213,27 @@ namespace OpenTK.Graphics.ES11
#endif
}
/// <summary>[requires: APPLE_sync]</summary>
[AutoGenerated(Category = "APPLE_sync", Version = "", EntryPoint = "glGetInteger64vAPPLE")]
public static
Int64 GetInteger64(OpenTK.Graphics.ES11.All pname)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
Int64 retval;
Int64* @params_ptr = &retval;
Delegates.glGetInteger64vAPPLE((OpenTK.Graphics.ES11.All)pname, (Int64*)@params_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: APPLE_sync]</summary>
[AutoGenerated(Category = "APPLE_sync", Version = "", EntryPoint = "glGetInteger64vAPPLE")]
public static
@ -6522,6 +6543,39 @@ namespace OpenTK.Graphics.ES11
#endif
}
/// <summary>[requires: v1.0]
/// Return the coefficients of the specified clipping plane
/// </summary>
/// <param name="plane">
/// <para>
/// Specifies a clipping plane. The number of clipping planes depends on the implementation, but at least six clipping planes are supported. They are identified by symbolic names of the form GL_CLIP_PLANE where i ranges from 0 to the value of GL_MAX_CLIP_PLANES - 1.
/// </para>
/// </param>
/// <param name="equation">
/// <para>
/// Returns four double-precision values that are the coefficients of the plane equation of plane in eye coordinates. The initial value is (0, 0, 0, 0).
/// </para>
/// </param>
[AutoGenerated(Category = "VERSION_ES_CM_1_0", Version = "1.0", EntryPoint = "glGetClipPlanef")]
public static
Single GetClipPlane(OpenTK.Graphics.ES11.All plane)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
Single retval;
Single* equation_ptr = &retval;
Delegates.glGetClipPlanef((OpenTK.Graphics.ES11.All)plane, (Single*)equation_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: v1.0]
/// Return the coefficients of the specified clipping plane
/// </summary>
@ -6617,6 +6671,27 @@ namespace OpenTK.Graphics.ES11
#endif
}
/// <summary>[requires: v1.0]</summary>
[AutoGenerated(Category = "VERSION_ES_CM_1_0", Version = "1.0", EntryPoint = "glGetClipPlanex")]
public static
int GetClipPlanex(OpenTK.Graphics.ES11.All plane)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
int retval;
int* equation_ptr = &retval;
Delegates.glGetClipPlanex((OpenTK.Graphics.ES11.All)plane, (int*)equation_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: v1.0]</summary>
[AutoGenerated(Category = "VERSION_ES_CM_1_0", Version = "1.0", EntryPoint = "glGetClipPlanex")]
public static
@ -18749,6 +18824,47 @@ namespace OpenTK.Graphics.ES11
public static partial class NV
{
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glDeleteFencesNV")]
public static
void DeleteFence(Int32 fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* fences_ptr = (UInt32*)&fences;
Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: NV_fence]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glDeleteFencesNV")]
public static
void DeleteFence(UInt32 fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* fences_ptr = (UInt32*)&fences;
Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glDeleteFencesNV")]
public static
@ -18898,6 +19014,28 @@ namespace OpenTK.Graphics.ES11
#endif
}
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glGenFencesNV")]
public static
Int32 GenFence()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* fences_ptr = &retval;
Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glGenFencesNV")]
public static
@ -20064,6 +20202,47 @@ namespace OpenTK.Graphics.ES11
#endif
}
/// <summary>[requires: OES_framebuffer_object]</summary>
[AutoGenerated(Category = "OES_framebuffer_object", Version = "", EntryPoint = "glDeleteFramebuffersOES")]
public static
void DeleteFramebuffer(Int32 framebuffers)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* framebuffers_ptr = (UInt32*)&framebuffers;
Delegates.glDeleteFramebuffersOES((Int32)n, (UInt32*)framebuffers_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_framebuffer_object]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "OES_framebuffer_object", Version = "", EntryPoint = "glDeleteFramebuffersOES")]
public static
void DeleteFramebuffer(UInt32 framebuffers)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* framebuffers_ptr = (UInt32*)&framebuffers;
Delegates.glDeleteFramebuffersOES((Int32)n, (UInt32*)framebuffers_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_framebuffer_object]
/// Delete framebuffer objects
/// </summary>
@ -20254,6 +20433,47 @@ namespace OpenTK.Graphics.ES11
#endif
}
/// <summary>[requires: OES_framebuffer_object]</summary>
[AutoGenerated(Category = "OES_framebuffer_object", Version = "", EntryPoint = "glDeleteRenderbuffersOES")]
public static
void DeleteRenderbuffer(Int32 renderbuffers)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers;
Delegates.glDeleteRenderbuffersOES((Int32)n, (UInt32*)renderbuffers_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_framebuffer_object]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "OES_framebuffer_object", Version = "", EntryPoint = "glDeleteRenderbuffersOES")]
public static
void DeleteRenderbuffer(UInt32 renderbuffers)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers;
Delegates.glDeleteRenderbuffersOES((Int32)n, (UInt32*)renderbuffers_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_framebuffer_object]
/// Delete renderbuffer objects
/// </summary>
@ -20444,6 +20664,47 @@ namespace OpenTK.Graphics.ES11
#endif
}
/// <summary>[requires: OES_vertex_array_object]</summary>
[AutoGenerated(Category = "OES_vertex_array_object", Version = "", EntryPoint = "glDeleteVertexArraysOES")]
public static
void DeleteVertexArray(Int32 arrays)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* arrays_ptr = (UInt32*)&arrays;
Delegates.glDeleteVertexArraysOES((Int32)n, (UInt32*)arrays_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_vertex_array_object]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "OES_vertex_array_object", Version = "", EntryPoint = "glDeleteVertexArraysOES")]
public static
void DeleteVertexArray(UInt32 arrays)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* arrays_ptr = (UInt32*)&arrays;
Delegates.glDeleteVertexArraysOES((Int32)n, (UInt32*)arrays_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_vertex_array_object]
/// Delete vertex array objects
/// </summary>
@ -21387,6 +21648,28 @@ namespace OpenTK.Graphics.ES11
#endif
}
/// <summary>[requires: OES_framebuffer_object]</summary>
[AutoGenerated(Category = "OES_framebuffer_object", Version = "", EntryPoint = "glGenFramebuffersOES")]
public static
Int32 GenFramebuffer()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* framebuffers_ptr = &retval;
Delegates.glGenFramebuffersOES((Int32)n, (UInt32*)framebuffers_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_framebuffer_object]
/// Generate framebuffer object names
/// </summary>
@ -21579,6 +21862,28 @@ namespace OpenTK.Graphics.ES11
#endif
}
/// <summary>[requires: OES_framebuffer_object]</summary>
[AutoGenerated(Category = "OES_framebuffer_object", Version = "", EntryPoint = "glGenRenderbuffersOES")]
public static
Int32 GenRenderbuffer()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* renderbuffers_ptr = &retval;
Delegates.glGenRenderbuffersOES((Int32)n, (UInt32*)renderbuffers_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_framebuffer_object]
/// Generate renderbuffer object names
/// </summary>
@ -21771,6 +22076,28 @@ namespace OpenTK.Graphics.ES11
#endif
}
/// <summary>[requires: OES_vertex_array_object]</summary>
[AutoGenerated(Category = "OES_vertex_array_object", Version = "", EntryPoint = "glGenVertexArraysOES")]
public static
Int32 GenVertexArray()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* arrays_ptr = &retval;
Delegates.glGenVertexArraysOES((Int32)n, (UInt32*)arrays_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_vertex_array_object]
/// Generate vertex array object names
/// </summary>
@ -22288,6 +22615,27 @@ namespace OpenTK.Graphics.ES11
#endif
}
/// <summary>[requires: OES_fixed_point]</summary>
[AutoGenerated(Category = "OES_fixed_point", Version = "", EntryPoint = "glGetFixedvOES")]
public static
int GetFixed(OpenTK.Graphics.ES11.All pname)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
int retval;
int* @params_ptr = &retval;
Delegates.glGetFixedvOES((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_fixed_point]</summary>
[AutoGenerated(Category = "OES_fixed_point", Version = "", EntryPoint = "glGetFixedvOES")]
public static

View file

@ -74,7 +74,48 @@ namespace OpenTK.Graphics.ES20
/// <summary>[requires: AMD_performance_monitor]</summary>
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, [OutAttribute] Int32[] monitors)
void DeletePerfMonitor(Int32 monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* monitors_ptr = (UInt32*)&monitors;
Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: AMD_performance_monitor]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitor(UInt32 monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* monitors_ptr = (UInt32*)&monitors;
Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: AMD_performance_monitor]</summary>
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, Int32[] monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -95,7 +136,7 @@ namespace OpenTK.Graphics.ES20
/// <summary>[requires: AMD_performance_monitor]</summary>
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, [OutAttribute] out Int32 monitors)
void DeletePerfMonitors(Int32 n, ref Int32 monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -106,7 +147,6 @@ namespace OpenTK.Graphics.ES20
fixed (Int32* monitors_ptr = &monitors)
{
Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
monitors = *monitors_ptr;
}
}
#if DEBUG
@ -118,7 +158,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
unsafe void DeletePerfMonitors(Int32 n, [OutAttribute] Int32* monitors)
unsafe void DeletePerfMonitors(Int32 n, Int32* monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -134,7 +174,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, [OutAttribute] UInt32[] monitors)
void DeletePerfMonitors(Int32 n, UInt32[] monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -156,7 +196,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, [OutAttribute] out UInt32 monitors)
void DeletePerfMonitors(Int32 n, ref UInt32 monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -167,7 +207,6 @@ namespace OpenTK.Graphics.ES20
fixed (UInt32* monitors_ptr = &monitors)
{
Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
monitors = *monitors_ptr;
}
}
#if DEBUG
@ -179,7 +218,7 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
unsafe void DeletePerfMonitors(Int32 n, [OutAttribute] UInt32* monitors)
unsafe void DeletePerfMonitors(Int32 n, UInt32* monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -222,6 +261,28 @@ namespace OpenTK.Graphics.ES20
#endif
}
/// <summary>[requires: AMD_performance_monitor]</summary>
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glGenPerfMonitorsAMD")]
public static
Int32 GenPerfMonitor()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* monitors_ptr = &retval;
Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: AMD_performance_monitor]</summary>
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glGenPerfMonitorsAMD")]
public static
@ -2393,6 +2454,49 @@ namespace OpenTK.Graphics.ES20
#endif
}
/// <summary>[requires: APPLE_sync]</summary>
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "APPLE_sync", Version = "", EntryPoint = "glGetInteger64vAPPLE")]
public static
Int64 GetInteger64(OpenTK.Graphics.ES20.All pname)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
Int64 retval;
Int64* @params_ptr = &retval;
Delegates.glGetInteger64vAPPLE((OpenTK.Graphics.ES20.GetPName)pname, (Int64*)@params_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: APPLE_sync]</summary>
[AutoGenerated(Category = "APPLE_sync", Version = "", EntryPoint = "glGetInteger64vAPPLE")]
public static
Int64 GetInteger64(OpenTK.Graphics.ES20.GetPName pname)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
Int64 retval;
Int64* @params_ptr = &retval;
Delegates.glGetInteger64vAPPLE((OpenTK.Graphics.ES20.GetPName)pname, (Int64*)@params_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: APPLE_sync]</summary>
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "APPLE_sync", Version = "", EntryPoint = "glGetInteger64vAPPLE")]
@ -34963,6 +35067,47 @@ namespace OpenTK.Graphics.ES20
#endif
}
/// <summary>[requires: EXT_separate_shader_objects]</summary>
[AutoGenerated(Category = "EXT_separate_shader_objects", Version = "", EntryPoint = "glDeleteProgramPipelinesEXT")]
public static
void DeleteProgramPipeline(Int32 pipelines)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* pipelines_ptr = (UInt32*)&pipelines;
Delegates.glDeleteProgramPipelinesEXT((Int32)n, (UInt32*)pipelines_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_separate_shader_objects]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "EXT_separate_shader_objects", Version = "", EntryPoint = "glDeleteProgramPipelinesEXT")]
public static
void DeleteProgramPipeline(UInt32 pipelines)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* pipelines_ptr = (UInt32*)&pipelines;
Delegates.glDeleteProgramPipelinesEXT((Int32)n, (UInt32*)pipelines_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_separate_shader_objects]
/// Delete program pipeline objects
/// </summary>
@ -35153,6 +35298,47 @@ namespace OpenTK.Graphics.ES20
#endif
}
/// <summary>[requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean]</summary>
[AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glDeleteQueriesEXT")]
public static
void DeleteQuery(Int32 ids)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* ids_ptr = (UInt32*)&ids;
Delegates.glDeleteQueriesEXT((Int32)n, (UInt32*)ids_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glDeleteQueriesEXT")]
public static
void DeleteQuery(UInt32 ids)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* ids_ptr = (UInt32*)&ids;
Delegates.glDeleteQueriesEXT((Int32)n, (UInt32*)ids_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean]
/// Delete named query objects
/// </summary>
@ -36353,6 +36539,28 @@ namespace OpenTK.Graphics.ES20
#endif
}
/// <summary>[requires: EXT_separate_shader_objects]</summary>
[AutoGenerated(Category = "EXT_separate_shader_objects", Version = "", EntryPoint = "glGenProgramPipelinesEXT")]
public static
Int32 GenProgramPipeline()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* pipelines_ptr = &retval;
Delegates.glGenProgramPipelinesEXT((Int32)n, (UInt32*)pipelines_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_separate_shader_objects]
/// Reserve program pipeline object names
/// </summary>
@ -36545,6 +36753,28 @@ namespace OpenTK.Graphics.ES20
#endif
}
/// <summary>[requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean]</summary>
[AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glGenQueriesEXT")]
public static
Int32 GenQuery()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* ids_ptr = &retval;
Delegates.glGenQueriesEXT((Int32)n, (UInt32*)ids_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean]
/// Generate query object names
/// </summary>
@ -51796,6 +52026,47 @@ namespace OpenTK.Graphics.ES20
#endif
}
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glDeleteFencesNV")]
public static
void DeleteFence(Int32 fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* fences_ptr = (UInt32*)&fences;
Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: NV_fence]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glDeleteFencesNV")]
public static
void DeleteFence(UInt32 fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* fences_ptr = (UInt32*)&fences;
Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glDeleteFencesNV")]
public static
@ -52710,6 +52981,28 @@ namespace OpenTK.Graphics.ES20
#endif
}
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glGenFencesNV")]
public static
Int32 GenFence()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* fences_ptr = &retval;
Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glGenFencesNV")]
public static
@ -55165,6 +55458,47 @@ namespace OpenTK.Graphics.ES20
#endif
}
/// <summary>[requires: OES_vertex_array_object]</summary>
[AutoGenerated(Category = "OES_vertex_array_object", Version = "", EntryPoint = "glDeleteVertexArraysOES")]
public static
void DeleteVertexArray(Int32 arrays)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* arrays_ptr = (UInt32*)&arrays;
Delegates.glDeleteVertexArraysOES((Int32)n, (UInt32*)arrays_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_vertex_array_object]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "OES_vertex_array_object", Version = "", EntryPoint = "glDeleteVertexArraysOES")]
public static
void DeleteVertexArray(UInt32 arrays)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* arrays_ptr = (UInt32*)&arrays;
Delegates.glDeleteVertexArraysOES((Int32)n, (UInt32*)arrays_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_vertex_array_object]
/// Delete vertex array objects
/// </summary>
@ -55416,6 +55750,28 @@ namespace OpenTK.Graphics.ES20
#endif
}
/// <summary>[requires: OES_vertex_array_object]</summary>
[AutoGenerated(Category = "OES_vertex_array_object", Version = "", EntryPoint = "glGenVertexArraysOES")]
public static
Int32 GenVertexArray()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* arrays_ptr = &retval;
Delegates.glGenVertexArraysOES((Int32)n, (UInt32*)arrays_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_vertex_array_object]
/// Generate vertex array object names
/// </summary>

View file

@ -218,7 +218,7 @@ namespace OpenTK.Graphics.ES20
internal extern static unsafe void DeleteFramebuffers(Int32 n, UInt32* framebuffers);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeletePerfMonitorsAMD", ExactSpelling = true)]
internal extern static unsafe void DeletePerfMonitorsAMD(Int32 n, [OutAttribute] UInt32* monitors);
internal extern static unsafe void DeletePerfMonitorsAMD(Int32 n, UInt32* monitors);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteProgram", ExactSpelling = true)]
internal extern static void DeleteProgram(UInt32 program);

View file

@ -216,7 +216,7 @@ namespace OpenTK.Graphics.ES20
internal unsafe delegate void DeleteFramebuffers(Int32 n, UInt32* framebuffers);
internal unsafe static DeleteFramebuffers glDeleteFramebuffers;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DeletePerfMonitorsAMD(Int32 n, [OutAttribute] UInt32* monitors);
internal unsafe delegate void DeletePerfMonitorsAMD(Int32 n, UInt32* monitors);
internal unsafe static DeletePerfMonitorsAMD glDeletePerfMonitorsAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void DeleteProgram(UInt32 program);

View file

@ -74,7 +74,48 @@ namespace OpenTK.Graphics.ES30
/// <summary>[requires: AMD_performance_monitor]</summary>
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, [OutAttribute] Int32[] monitors)
void DeletePerfMonitor(Int32 monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* monitors_ptr = (UInt32*)&monitors;
Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: AMD_performance_monitor]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitor(UInt32 monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* monitors_ptr = (UInt32*)&monitors;
Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: AMD_performance_monitor]</summary>
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, Int32[] monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -95,7 +136,7 @@ namespace OpenTK.Graphics.ES30
/// <summary>[requires: AMD_performance_monitor]</summary>
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, [OutAttribute] out Int32 monitors)
void DeletePerfMonitors(Int32 n, ref Int32 monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -106,7 +147,6 @@ namespace OpenTK.Graphics.ES30
fixed (Int32* monitors_ptr = &monitors)
{
Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
monitors = *monitors_ptr;
}
}
#if DEBUG
@ -118,7 +158,7 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
unsafe void DeletePerfMonitors(Int32 n, [OutAttribute] Int32* monitors)
unsafe void DeletePerfMonitors(Int32 n, Int32* monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -134,7 +174,7 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, [OutAttribute] UInt32[] monitors)
void DeletePerfMonitors(Int32 n, UInt32[] monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -156,7 +196,7 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
void DeletePerfMonitors(Int32 n, [OutAttribute] out UInt32 monitors)
void DeletePerfMonitors(Int32 n, ref UInt32 monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -167,7 +207,6 @@ namespace OpenTK.Graphics.ES30
fixed (UInt32* monitors_ptr = &monitors)
{
Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
monitors = *monitors_ptr;
}
}
#if DEBUG
@ -179,7 +218,7 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)]
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glDeletePerfMonitorsAMD")]
public static
unsafe void DeletePerfMonitors(Int32 n, [OutAttribute] UInt32* monitors)
unsafe void DeletePerfMonitors(Int32 n, UInt32* monitors)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -222,6 +261,28 @@ namespace OpenTK.Graphics.ES30
#endif
}
/// <summary>[requires: AMD_performance_monitor]</summary>
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glGenPerfMonitorsAMD")]
public static
Int32 GenPerfMonitor()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* monitors_ptr = &retval;
Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: AMD_performance_monitor]</summary>
[AutoGenerated(Category = "AMD_performance_monitor", Version = "", EntryPoint = "glGenPerfMonitorsAMD")]
public static
@ -2393,6 +2454,49 @@ namespace OpenTK.Graphics.ES30
#endif
}
/// <summary>[requires: APPLE_sync]</summary>
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "APPLE_sync", Version = "", EntryPoint = "glGetInteger64vAPPLE")]
public static
Int64 GetInteger64(OpenTK.Graphics.ES30.All pname)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
Int64 retval;
Int64* @params_ptr = &retval;
Delegates.glGetInteger64vAPPLE((OpenTK.Graphics.ES30.GetPName)pname, (Int64*)@params_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: APPLE_sync]</summary>
[AutoGenerated(Category = "APPLE_sync", Version = "", EntryPoint = "glGetInteger64vAPPLE")]
public static
Int64 GetInteger64(OpenTK.Graphics.ES30.GetPName pname)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
Int64 retval;
Int64* @params_ptr = &retval;
Delegates.glGetInteger64vAPPLE((OpenTK.Graphics.ES30.GetPName)pname, (Int64*)@params_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: APPLE_sync]</summary>
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "APPLE_sync", Version = "", EntryPoint = "glGetInteger64vAPPLE")]
@ -53497,6 +53601,47 @@ namespace OpenTK.Graphics.ES30
#endif
}
/// <summary>[requires: EXT_separate_shader_objects]</summary>
[AutoGenerated(Category = "EXT_separate_shader_objects", Version = "", EntryPoint = "glDeleteProgramPipelinesEXT")]
public static
void DeleteProgramPipeline(Int32 pipelines)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* pipelines_ptr = (UInt32*)&pipelines;
Delegates.glDeleteProgramPipelinesEXT((Int32)n, (UInt32*)pipelines_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_separate_shader_objects]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "EXT_separate_shader_objects", Version = "", EntryPoint = "glDeleteProgramPipelinesEXT")]
public static
void DeleteProgramPipeline(UInt32 pipelines)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* pipelines_ptr = (UInt32*)&pipelines;
Delegates.glDeleteProgramPipelinesEXT((Int32)n, (UInt32*)pipelines_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_separate_shader_objects]
/// Delete program pipeline objects
/// </summary>
@ -53687,6 +53832,47 @@ namespace OpenTK.Graphics.ES30
#endif
}
/// <summary>[requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean]</summary>
[AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glDeleteQueriesEXT")]
public static
void DeleteQuery(Int32 ids)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* ids_ptr = (UInt32*)&ids;
Delegates.glDeleteQueriesEXT((Int32)n, (UInt32*)ids_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glDeleteQueriesEXT")]
public static
void DeleteQuery(UInt32 ids)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* ids_ptr = (UInt32*)&ids;
Delegates.glDeleteQueriesEXT((Int32)n, (UInt32*)ids_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean]
/// Delete named query objects
/// </summary>
@ -54887,6 +55073,28 @@ namespace OpenTK.Graphics.ES30
#endif
}
/// <summary>[requires: EXT_separate_shader_objects]</summary>
[AutoGenerated(Category = "EXT_separate_shader_objects", Version = "", EntryPoint = "glGenProgramPipelinesEXT")]
public static
Int32 GenProgramPipeline()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* pipelines_ptr = &retval;
Delegates.glGenProgramPipelinesEXT((Int32)n, (UInt32*)pipelines_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_separate_shader_objects]
/// Reserve program pipeline object names
/// </summary>
@ -55079,6 +55287,28 @@ namespace OpenTK.Graphics.ES30
#endif
}
/// <summary>[requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean]</summary>
[AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glGenQueriesEXT")]
public static
Int32 GenQuery()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* ids_ptr = &retval;
Delegates.glGenQueriesEXT((Int32)n, (UInt32*)ids_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean]
/// Generate query object names
/// </summary>
@ -70330,6 +70560,47 @@ namespace OpenTK.Graphics.ES30
#endif
}
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glDeleteFencesNV")]
public static
void DeleteFence(Int32 fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* fences_ptr = (UInt32*)&fences;
Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: NV_fence]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glDeleteFencesNV")]
public static
void DeleteFence(UInt32 fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* fences_ptr = (UInt32*)&fences;
Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glDeleteFencesNV")]
public static
@ -71244,6 +71515,28 @@ namespace OpenTK.Graphics.ES30
#endif
}
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glGenFencesNV")]
public static
Int32 GenFence()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* fences_ptr = &retval;
Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: NV_fence]</summary>
[AutoGenerated(Category = "NV_fence", Version = "", EntryPoint = "glGenFencesNV")]
public static
@ -73699,6 +73992,47 @@ namespace OpenTK.Graphics.ES30
#endif
}
/// <summary>[requires: OES_vertex_array_object]</summary>
[AutoGenerated(Category = "OES_vertex_array_object", Version = "", EntryPoint = "glDeleteVertexArraysOES")]
public static
void DeleteVertexArray(Int32 arrays)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* arrays_ptr = (UInt32*)&arrays;
Delegates.glDeleteVertexArraysOES((Int32)n, (UInt32*)arrays_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_vertex_array_object]</summary>
[System.CLSCompliant(false)]
[AutoGenerated(Category = "OES_vertex_array_object", Version = "", EntryPoint = "glDeleteVertexArraysOES")]
public static
void DeleteVertexArray(UInt32 arrays)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
UInt32* arrays_ptr = (UInt32*)&arrays;
Delegates.glDeleteVertexArraysOES((Int32)n, (UInt32*)arrays_ptr);
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_vertex_array_object]
/// Delete vertex array objects
/// </summary>
@ -73950,6 +74284,28 @@ namespace OpenTK.Graphics.ES30
#endif
}
/// <summary>[requires: OES_vertex_array_object]</summary>
[AutoGenerated(Category = "OES_vertex_array_object", Version = "", EntryPoint = "glGenVertexArraysOES")]
public static
Int32 GenVertexArray()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 n = 1;
Int32 retval;
Int32* arrays_ptr = &retval;
Delegates.glGenVertexArraysOES((Int32)n, (UInt32*)arrays_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: OES_vertex_array_object]
/// Generate vertex array object names
/// </summary>

View file

@ -269,7 +269,7 @@ namespace OpenTK.Graphics.ES30
internal extern static unsafe void DeleteFramebuffers(Int32 n, UInt32* framebuffers);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeletePerfMonitorsAMD", ExactSpelling = true)]
internal extern static unsafe void DeletePerfMonitorsAMD(Int32 n, [OutAttribute] UInt32* monitors);
internal extern static unsafe void DeletePerfMonitorsAMD(Int32 n, UInt32* monitors);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteProgram", ExactSpelling = true)]
internal extern static void DeleteProgram(UInt32 program);

View file

@ -267,7 +267,7 @@ namespace OpenTK.Graphics.ES30
internal unsafe delegate void DeleteFramebuffers(Int32 n, UInt32* framebuffers);
internal unsafe static DeleteFramebuffers glDeleteFramebuffers;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DeletePerfMonitorsAMD(Int32 n, [OutAttribute] UInt32* monitors);
internal unsafe delegate void DeletePerfMonitorsAMD(Int32 n, UInt32* monitors);
internal unsafe static DeletePerfMonitorsAMD glDeletePerfMonitorsAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void DeleteProgram(UInt32 program);

File diff suppressed because it is too large Load diff

View file

@ -1160,7 +1160,7 @@ namespace OpenTK.Graphics.OpenGL
internal extern static void DeletePathsNV(UInt32 path, Int32 range);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeletePerfMonitorsAMD", ExactSpelling = true)]
internal extern static unsafe void DeletePerfMonitorsAMD(Int32 n, [OutAttribute] UInt32* monitors);
internal extern static unsafe void DeletePerfMonitorsAMD(Int32 n, UInt32* monitors);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteProgram", ExactSpelling = true)]
internal extern static void DeleteProgram(UInt32 program);

View file

@ -1158,7 +1158,7 @@ namespace OpenTK.Graphics.OpenGL
internal delegate void DeletePathsNV(UInt32 path, Int32 range);
internal static DeletePathsNV glDeletePathsNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DeletePerfMonitorsAMD(Int32 n, [OutAttribute] UInt32* monitors);
internal unsafe delegate void DeletePerfMonitorsAMD(Int32 n, UInt32* monitors);
internal unsafe static DeletePerfMonitorsAMD glDeletePerfMonitorsAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void DeleteProgram(UInt32 program);

View file

@ -2756,6 +2756,28 @@ namespace OpenTK.Graphics.OpenGL4
#endif
}
/// <summary>[requires: ARB_robustness]</summary>
[AutoGenerated(Category = "ARB_robustness", Version = "", EntryPoint = "glGetnPolygonStippleARB")]
public static
Byte GetnPolygonStipple()
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
unsafe
{
const Int32 bufSize = 1;
Byte retval;
Byte* pattern_ptr = &retval;
Delegates.glGetnPolygonStippleARB((Int32)bufSize, (Byte*)pattern_ptr);
return retval;
}
#if DEBUG
}
#endif
}
/// <summary>[requires: ARB_robustness]</summary>
[AutoGenerated(Category = "ARB_robustness", Version = "", EntryPoint = "glGetnPolygonStippleARB")]
public static