Show / Hide Table of Contents

Class GL.Angle

Inheritance
Object
GL.Angle
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: OpenTK.Graphics.ES20
Assembly: OpenTK.dll
Syntax
public static class Angle

Methods

BlitFramebuffer(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, All, All)

[requires: ANGLE_framebuffer_blit] Copy a block of pixels from the read framebuffer to the draw framebuffer

Declaration
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "ANGLE_framebuffer_blit", Version = "", EntryPoint = "glBlitFramebufferANGLE")]
public static void BlitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, All mask, All filter)
Parameters
Type Name Description
Int32 srcX0

Specify the bounds of the source rectangle within the read buffer of the read framebuffer.

Int32 srcY0

Specify the bounds of the source rectangle within the read buffer of the read framebuffer.

Int32 srcX1

Specify the bounds of the source rectangle within the read buffer of the read framebuffer.

Int32 srcY1

Specify the bounds of the source rectangle within the read buffer of the read framebuffer.

Int32 dstX0

Specify the bounds of the destination rectangle within the write buffer of the write framebuffer.

Int32 dstY0

Specify the bounds of the destination rectangle within the write buffer of the write framebuffer.

Int32 dstX1

Specify the bounds of the destination rectangle within the write buffer of the write framebuffer.

Int32 dstY1

Specify the bounds of the destination rectangle within the write buffer of the write framebuffer.

All mask

The bitwise OR of the flags indicating which buffers are to be copied. The allowed flags are ColorBufferBit, DepthBufferBit and StencilBufferBit.

All filter

Specifies the interpolation to be applied if the image is stretched. Must be Nearest or Linear.

BlitFramebuffer(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, ClearBufferMask, BlitFramebufferFilter)

[requires: ANGLE_framebuffer_blit] Copy a block of pixels from the read framebuffer to the draw framebuffer

Declaration
[AutoGenerated(Category = "ANGLE_framebuffer_blit", Version = "", EntryPoint = "glBlitFramebufferANGLE")]
public static void BlitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, ClearBufferMask mask, BlitFramebufferFilter filter)
Parameters
Type Name Description
Int32 srcX0

Specify the bounds of the source rectangle within the read buffer of the read framebuffer.

Int32 srcY0

Specify the bounds of the source rectangle within the read buffer of the read framebuffer.

Int32 srcX1

Specify the bounds of the source rectangle within the read buffer of the read framebuffer.

Int32 srcY1

Specify the bounds of the source rectangle within the read buffer of the read framebuffer.

Int32 dstX0

Specify the bounds of the destination rectangle within the write buffer of the write framebuffer.

Int32 dstY0

Specify the bounds of the destination rectangle within the write buffer of the write framebuffer.

Int32 dstX1

Specify the bounds of the destination rectangle within the write buffer of the write framebuffer.

Int32 dstY1

Specify the bounds of the destination rectangle within the write buffer of the write framebuffer.

ClearBufferMask mask

The bitwise OR of the flags indicating which buffers are to be copied. The allowed flags are ColorBufferBit, DepthBufferBit and StencilBufferBit.

BlitFramebufferFilter filter

Specifies the interpolation to be applied if the image is stretched. Must be Nearest or Linear.

DrawArraysInstanced(All, Int32, Int32, Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a range of elements

Declaration
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawArraysInstancedANGLE")]
public static void DrawArraysInstanced(All mode, int first, int count, int primcount)
Parameters
Type Name Description
All mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, TriangleStrip, TriangleFan, TrianglesLinesAdjacency, LineStripAdjacency, TrianglesAdjacency, TriangleStripAdjacency and Patches are accepted.

Int32 first

Specifies the starting index in the enabled arrays.

Int32 count

Specifies the number of indices to be rendered.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

DrawArraysInstanced(PrimitiveType, Int32, Int32, Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a range of elements

Declaration
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawArraysInstancedANGLE")]
public static void DrawArraysInstanced(PrimitiveType mode, int first, int count, int primcount)
Parameters
Type Name Description
PrimitiveType mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, TriangleStrip, TriangleFan, TrianglesLinesAdjacency, LineStripAdjacency, TrianglesAdjacency, TriangleStripAdjacency and Patches are accepted.

Int32 first

Specifies the starting index in the enabled arrays.

Int32 count

Specifies the number of indices to be rendered.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

DrawElementsInstanced(All, Int32, All, IntPtr, Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a set of elements

Declaration
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawElementsInstancedANGLE")]
public static void DrawElementsInstanced(All mode, int count, All type, [Count(Computed = "count,type")] IntPtr indices, int primcount)
Parameters
Type Name Description
All mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, LineStripAdjacency, LinesAdjacency, TriangleStrip, TriangleFan, Triangles, TriangleStripAdjacency, TrianglesAdjacency and Patches are accepted.

Int32 count

Specifies the number of elements to be rendered.

All type

Specifies the type of the values in indices. Must be one of UnsignedByte, UnsignedShort, or UnsignedInt.

IntPtr indices

[length: COMPSIZE(count,type)] Specifies a pointer to the location where the indices are stored.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

DrawElementsInstanced(PrimitiveType, Int32, DrawElementsType, IntPtr, Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a set of elements

Declaration
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawElementsInstancedANGLE")]
public static void DrawElementsInstanced(PrimitiveType mode, int count, DrawElementsType type, [Count(Computed = "count,type")] IntPtr indices, int primcount)
Parameters
Type Name Description
PrimitiveType mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, LineStripAdjacency, LinesAdjacency, TriangleStrip, TriangleFan, Triangles, TriangleStripAdjacency, TrianglesAdjacency and Patches are accepted.

Int32 count

Specifies the number of elements to be rendered.

DrawElementsType type

Specifies the type of the values in indices. Must be one of UnsignedByte, UnsignedShort, or UnsignedInt.

IntPtr indices

[length: COMPSIZE(count,type)] Specifies a pointer to the location where the indices are stored.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

DrawElementsInstanced<T3>(All, Int32, All, ref T3, Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a set of elements

Declaration
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawElementsInstancedANGLE")]
public static void DrawElementsInstanced<T3>(All mode, int count, All type, [Count(Computed = "count,type")] ref T3 indices, int primcount)
    where T3 : struct
Parameters
Type Name Description
All mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, LineStripAdjacency, LinesAdjacency, TriangleStrip, TriangleFan, Triangles, TriangleStripAdjacency, TrianglesAdjacency and Patches are accepted.

Int32 count

Specifies the number of elements to be rendered.

All type

Specifies the type of the values in indices. Must be one of UnsignedByte, UnsignedShort, or UnsignedInt.

T3 indices

[length: COMPSIZE(count,type)] Specifies a pointer to the location where the indices are stored.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

Type Parameters
Name Description
T3

DrawElementsInstanced<T3>(All, Int32, All, T3[], Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a set of elements

Declaration
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawElementsInstancedANGLE")]
[CLSCompliant(false)]
public static void DrawElementsInstanced<T3>(All mode, int count, All type, [Count(Computed = "count,type")] T3[] indices, int primcount)
    where T3 : struct
Parameters
Type Name Description
All mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, LineStripAdjacency, LinesAdjacency, TriangleStrip, TriangleFan, Triangles, TriangleStripAdjacency, TrianglesAdjacency and Patches are accepted.

Int32 count

Specifies the number of elements to be rendered.

All type

Specifies the type of the values in indices. Must be one of UnsignedByte, UnsignedShort, or UnsignedInt.

T3[] indices

[length: COMPSIZE(count,type)] Specifies a pointer to the location where the indices are stored.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

Type Parameters
Name Description
T3

DrawElementsInstanced<T3>(All, Int32, All, T3[,,], Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a set of elements

Declaration
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawElementsInstancedANGLE")]
[CLSCompliant(false)]
public static void DrawElementsInstanced<T3>(All mode, int count, All type, [Count(Computed = "count,type")] T3[,, ] indices, int primcount)
    where T3 : struct
Parameters
Type Name Description
All mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, LineStripAdjacency, LinesAdjacency, TriangleStrip, TriangleFan, Triangles, TriangleStripAdjacency, TrianglesAdjacency and Patches are accepted.

Int32 count

Specifies the number of elements to be rendered.

All type

Specifies the type of the values in indices. Must be one of UnsignedByte, UnsignedShort, or UnsignedInt.

T3[,,] indices

[length: COMPSIZE(count,type)] Specifies a pointer to the location where the indices are stored.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

Type Parameters
Name Description
T3

DrawElementsInstanced<T3>(All, Int32, All, T3[,], Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a set of elements

Declaration
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawElementsInstancedANGLE")]
[CLSCompliant(false)]
public static void DrawElementsInstanced<T3>(All mode, int count, All type, [Count(Computed = "count,type")] T3[, ] indices, int primcount)
    where T3 : struct
Parameters
Type Name Description
All mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, LineStripAdjacency, LinesAdjacency, TriangleStrip, TriangleFan, Triangles, TriangleStripAdjacency, TrianglesAdjacency and Patches are accepted.

Int32 count

Specifies the number of elements to be rendered.

All type

Specifies the type of the values in indices. Must be one of UnsignedByte, UnsignedShort, or UnsignedInt.

T3[,] indices

[length: COMPSIZE(count,type)] Specifies a pointer to the location where the indices are stored.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

Type Parameters
Name Description
T3

DrawElementsInstanced<T3>(PrimitiveType, Int32, DrawElementsType, ref T3, Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a set of elements

Declaration
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawElementsInstancedANGLE")]
public static void DrawElementsInstanced<T3>(PrimitiveType mode, int count, DrawElementsType type, [Count(Computed = "count,type")] ref T3 indices, int primcount)
    where T3 : struct
Parameters
Type Name Description
PrimitiveType mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, LineStripAdjacency, LinesAdjacency, TriangleStrip, TriangleFan, Triangles, TriangleStripAdjacency, TrianglesAdjacency and Patches are accepted.

Int32 count

Specifies the number of elements to be rendered.

DrawElementsType type

Specifies the type of the values in indices. Must be one of UnsignedByte, UnsignedShort, or UnsignedInt.

T3 indices

[length: COMPSIZE(count,type)] Specifies a pointer to the location where the indices are stored.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

Type Parameters
Name Description
T3

DrawElementsInstanced<T3>(PrimitiveType, Int32, DrawElementsType, T3[], Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a set of elements

Declaration
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawElementsInstancedANGLE")]
[CLSCompliant(false)]
public static void DrawElementsInstanced<T3>(PrimitiveType mode, int count, DrawElementsType type, [Count(Computed = "count,type")] T3[] indices, int primcount)
    where T3 : struct
Parameters
Type Name Description
PrimitiveType mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, LineStripAdjacency, LinesAdjacency, TriangleStrip, TriangleFan, Triangles, TriangleStripAdjacency, TrianglesAdjacency and Patches are accepted.

Int32 count

Specifies the number of elements to be rendered.

DrawElementsType type

Specifies the type of the values in indices. Must be one of UnsignedByte, UnsignedShort, or UnsignedInt.

T3[] indices

[length: COMPSIZE(count,type)] Specifies a pointer to the location where the indices are stored.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

Type Parameters
Name Description
T3

DrawElementsInstanced<T3>(PrimitiveType, Int32, DrawElementsType, T3[,,], Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a set of elements

Declaration
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawElementsInstancedANGLE")]
[CLSCompliant(false)]
public static void DrawElementsInstanced<T3>(PrimitiveType mode, int count, DrawElementsType type, [Count(Computed = "count,type")] T3[,, ] indices, int primcount)
    where T3 : struct
Parameters
Type Name Description
PrimitiveType mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, LineStripAdjacency, LinesAdjacency, TriangleStrip, TriangleFan, Triangles, TriangleStripAdjacency, TrianglesAdjacency and Patches are accepted.

Int32 count

Specifies the number of elements to be rendered.

DrawElementsType type

Specifies the type of the values in indices. Must be one of UnsignedByte, UnsignedShort, or UnsignedInt.

T3[,,] indices

[length: COMPSIZE(count,type)] Specifies a pointer to the location where the indices are stored.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

Type Parameters
Name Description
T3

DrawElementsInstanced<T3>(PrimitiveType, Int32, DrawElementsType, T3[,], Int32)

[requires: ANGLE_instanced_arrays] Draw multiple instances of a set of elements

Declaration
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glDrawElementsInstancedANGLE")]
[CLSCompliant(false)]
public static void DrawElementsInstanced<T3>(PrimitiveType mode, int count, DrawElementsType type, [Count(Computed = "count,type")] T3[, ] indices, int primcount)
    where T3 : struct
Parameters
Type Name Description
PrimitiveType mode

Specifies what kind of primitives to render. Symbolic constants Points, LineStrip, LineLoop, Lines, LineStripAdjacency, LinesAdjacency, TriangleStrip, TriangleFan, Triangles, TriangleStripAdjacency, TrianglesAdjacency and Patches are accepted.

Int32 count

Specifies the number of elements to be rendered.

DrawElementsType type

Specifies the type of the values in indices. Must be one of UnsignedByte, UnsignedShort, or UnsignedInt.

T3[,] indices

[length: COMPSIZE(count,type)] Specifies a pointer to the location where the indices are stored.

Int32 primcount

Specifies the number of instances of the specified range of indices to be rendered.

Type Parameters
Name Description
T3

GetTranslatedShaderSource(Int32, Int32, Int32*, out String)

[requires: ANGLE_translated_shader_source]

Declaration
[AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")]
[CLSCompliant(false)]
public static void GetTranslatedShaderSource(int shader, int bufsize, [Count(Count = 1)] int *length, [Count(Parameter = "bufsize")] out string source)
Parameters
Type Name Description
Int32 shader
Int32 bufsize
Int32* length

[length: 1]

String source

[length: bufsize]

GetTranslatedShaderSource(Int32, Int32, out Int32, out String)

[requires: ANGLE_translated_shader_source]

Declaration
[AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")]
[CLSCompliant(false)]
public static void GetTranslatedShaderSource(int shader, int bufsize, [Count(Count = 1)] out int length, [Count(Parameter = "bufsize")] out string source)
Parameters
Type Name Description
Int32 shader
Int32 bufsize
Int32 length

[length: 1]

String source

[length: bufsize]

GetTranslatedShaderSource(Int32, Int32, Int32[], out String)

[requires: ANGLE_translated_shader_source]

Declaration
[Obsolete("Use out overload instead")]
[AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")]
[CLSCompliant(false)]
public static void GetTranslatedShaderSource(int shader, int bufsize, [Count(Count = 1)] int[] length, [Count(Parameter = "bufsize")] out string source)
Parameters
Type Name Description
Int32 shader
Int32 bufsize
Int32[] length

[length: 1]

String source

[length: bufsize]

GetTranslatedShaderSource(UInt32, Int32, Int32*, out String)

[requires: ANGLE_translated_shader_source]

Declaration
[AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")]
[CLSCompliant(false)]
public static void GetTranslatedShaderSource(uint shader, int bufsize, [Count(Count = 1)] int *length, [Count(Parameter = "bufsize")] out string source)
Parameters
Type Name Description
UInt32 shader
Int32 bufsize
Int32* length

[length: 1]

String source

[length: bufsize]

GetTranslatedShaderSource(UInt32, Int32, out Int32, out String)

[requires: ANGLE_translated_shader_source]

Declaration
[AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")]
[CLSCompliant(false)]
public static void GetTranslatedShaderSource(uint shader, int bufsize, [Count(Count = 1)] out int length, [Count(Parameter = "bufsize")] out string source)
Parameters
Type Name Description
UInt32 shader
Int32 bufsize
Int32 length

[length: 1]

String source

[length: bufsize]

GetTranslatedShaderSource(UInt32, Int32, Int32[], out String)

[requires: ANGLE_translated_shader_source]

Declaration
[Obsolete("Use out overload instead")]
[AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")]
[CLSCompliant(false)]
public static void GetTranslatedShaderSource(uint shader, int bufsize, [Count(Count = 1)] int[] length, [Count(Parameter = "bufsize")] out string source)
Parameters
Type Name Description
UInt32 shader
Int32 bufsize
Int32[] length

[length: 1]

String source

[length: bufsize]

RenderbufferStorageMultisample(All, Int32, All, Int32, Int32)

[requires: ANGLE_framebuffer_multisample] Establish data storage, format, dimensions and sample count of a renderbuffer object's image

Declaration
[Obsolete("Use strongly-typed overload instead")]
[AutoGenerated(Category = "ANGLE_framebuffer_multisample", Version = "", EntryPoint = "glRenderbufferStorageMultisampleANGLE")]
public static void RenderbufferStorageMultisample(All target, int samples, All internalformat, int width, int height)
Parameters
Type Name Description
All target

Specifies a binding to which the target of the allocation and must be Renderbuffer.

Int32 samples

Specifies the number of samples to be used for the renderbuffer object's storage.

All internalformat

Specifies the internal format to use for the renderbuffer object's image.

Int32 width

Specifies the width of the renderbuffer, in pixels.

Int32 height

Specifies the height of the renderbuffer, in pixels.

RenderbufferStorageMultisample(RenderbufferTarget, Int32, RenderbufferInternalFormat, Int32, Int32)

[requires: ANGLE_framebuffer_multisample] Establish data storage, format, dimensions and sample count of a renderbuffer object's image

Declaration
[AutoGenerated(Category = "ANGLE_framebuffer_multisample", Version = "", EntryPoint = "glRenderbufferStorageMultisampleANGLE")]
public static void RenderbufferStorageMultisample(RenderbufferTarget target, int samples, RenderbufferInternalFormat internalformat, int width, int height)
Parameters
Type Name Description
RenderbufferTarget target

Specifies a binding to which the target of the allocation and must be Renderbuffer.

Int32 samples

Specifies the number of samples to be used for the renderbuffer object's storage.

RenderbufferInternalFormat internalformat

Specifies the internal format to use for the renderbuffer object's image.

Int32 width

Specifies the width of the renderbuffer, in pixels.

Int32 height

Specifies the height of the renderbuffer, in pixels.

VertexAttribDivisor(Int32, Int32)

[requires: ANGLE_instanced_arrays] Modify the rate at which generic vertex attributes advance during instanced rendering

Declaration
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glVertexAttribDivisorANGLE")]
[CLSCompliant(false)]
public static void VertexAttribDivisor(int index, int divisor)
Parameters
Type Name Description
Int32 index

Specify the index of the generic vertex attribute.

Int32 divisor

Specify the number of instances that will pass between updates of the generic attribute at slot index.

VertexAttribDivisor(UInt32, UInt32)

[requires: ANGLE_instanced_arrays] Modify the rate at which generic vertex attributes advance during instanced rendering

Declaration
[AutoGenerated(Category = "ANGLE_instanced_arrays", Version = "", EntryPoint = "glVertexAttribDivisorANGLE")]
[CLSCompliant(false)]
public static void VertexAttribDivisor(uint index, uint divisor)
Parameters
Type Name Description
UInt32 index

Specify the index of the generic vertex attribute.

UInt32 divisor

Specify the number of instances that will pass between updates of the generic attribute at slot index.

In This Article
Back to top Generated by DocFX