Class GL
OpenGL bindings for .NET, implementing the full OpenGL API, including extensions.
Inherited Members
Namespace: OpenTK.Graphics.OpenGL
Assembly: cs.temp.dll.dll
Syntax
public sealed class GL : GraphicsBindingsBase
Remarks
This class contains all OpenGL enums and functions defined in the latest OpenGL specification. The official .spec files can be found at: http://opengl.org/registry/.
A valid OpenGL context must be created before calling any OpenGL function.
Use the GL.Load and GL.LoadAll methods to prepare function entry points prior to use. To maintain cross-platform compatibility, this must be done for both core and extension functions. The GameWindow and the GLControl class will take care of this automatically.
You can use the GL.SupportsExtension method to check whether any given category of extension functions exists in the current OpenGL context. Keep in mind that different OpenGL contexts may support different extensions, and under different entry points. Always check if all required extensions are still supported when changing visuals or pixel formats.
You may retrieve the entry point for an OpenGL function using the GL.GetDelegate method.
Constructors
GL()
Constructs a new instance.
Declaration
public GL()
Properties
SyncRoot
Returns a synchronization token unique for the GL class.
Declaration
protected override object SyncRoot { get; }
Property Value
Type | Description |
---|---|
System.Object |
Overrides
Methods
BlendColor(Color)
[requires: v1.4 or ARB_imaging|VERSION_1_4] Set the blend color.
Declaration
public static void BlendColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The blend color to set. |
BlendColor(Color4)
[requires: v1.4 or ARB_imaging|VERSION_1_4] Set the blend color.
Declaration
public static void BlendColor(Color4 color)
Parameters
Type | Name | Description |
---|---|---|
Color4 | color | The blend color to set. |
ClearColor(Color)
[requires: v1.0] Specify clear values for the color buffers.
Declaration
public static void ClearColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color to set as the clear value. |
ClearColor(Color4)
[requires: v1.0] Specify clear values for the color buffers.
Declaration
public static void ClearColor(Color4 color)
Parameters
Type | Name | Description |
---|---|---|
Color4 | color | The color to set as the clear value. |
Color3(Color)
[requires: v1.0][deprecated: v3.2] Set the RGB values of the current color.
Declaration
public static void Color3(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color to set. |
Color3(Vector3)
[requires: v1.0][deprecated: v3.2] Set the RGB values of the current color.
Declaration
public static void Color3(Vector3 color)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | color | The color to set. |
Color4(Color)
[requires: v1.0][deprecated: v3.2] Set the current color.
Declaration
public static void Color4(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color to set. |
Color4(Color4)
[requires: v1.0][deprecated: v3.2] Set the current color.
Declaration
public static void Color4(Color4 color)
Parameters
Type | Name | Description |
---|---|---|
Color4 | color | The color to set. |
Color4(Vector4)
[requires: v1.0][deprecated: v3.2] Set the current color.
Declaration
public static void Color4(Vector4 color)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | color | The color to set. |
ColorPointer(Int32, ColorPointerType, Int32, Int32)
[requires: v1.1][deprecated: v3.2] Define an array of colors.
Declaration
public static void ColorPointer(int size, ColorPointerType type, int stride, int offset)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | size | Specifies the number of components per color. Must be 3 or 4. The initial value is 4. |
ColorPointerType | type | Specifies the data type of each color component in the array. Symbolic constants Byte, UnsignedByte, Short, UnsignedShort, Int, UnsignedInt, Float, and Double are accepted. The initial value is Float. |
System.Int32 | stride | Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. |
System.Int32 | offset | Specifies the first component of the first color element in the array. The initial value is 0. |
EdgeFlagPointer(Int32, Int32)
[requires: v1.1][deprecated: v3.2] Define an array of edge flags.
Declaration
public static void EdgeFlagPointer(int stride, int offset)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | stride | Specifies the byte offset between consecutive edge flags. If stride is 0, the edge flags are understood to be tightly packed in the array. The initial value is 0. |
System.Int32 | offset | Specifies the first edge flag in the array. The initial value is 0. |
FogCoordPointer(FogPointerType, Int32, Int32)
[requires: v1.4][deprecated: v3.2] Define an array of fog coordinates.
Declaration
public static void FogCoordPointer(FogPointerType type, int stride, int offset)
Parameters
Type | Name | Description |
---|---|---|
FogPointerType | type | Specifies the data type of each fog coordinate. Symbolic constants Float, or Double are accepted. The initial value is Float. |
System.Int32 | stride | Specifies the byte offset between consecutive fog coordinates. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. |
System.Int32 | offset | Specifies the first coordinate of the first fog coordinate in the array. The initial value is 0. |
GetActiveAttrib(Int32, Int32, out Int32, out ActiveAttribType)
[requires: v2.0] Returns information about an active attribute variable for the specified program object.
Declaration
public static string GetActiveAttrib(int program, int index, out int size, out ActiveAttribType type)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the program object to be queried. |
System.Int32 | index | Specifies the index of the attribute variable to be queried. |
System.Int32 | size | Returns the size of the attribute variable. |
ActiveAttribType | type | Returns the data type of the attribute variable. |
Returns
Type | Description |
---|---|
System.String | The name of the attribute variable. |
GetActiveUniform(Int32, Int32, out Int32, out ActiveUniformType)
[requires: v2.0] Returns information about an active uniform variable for the specified program object.
Declaration
public static string GetActiveUniform(int program, int uniformIndex, out int size, out ActiveUniformType type)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the program object to be queried. |
System.Int32 | uniformIndex | Specifies the index of the uniform variable to be queried. |
System.Int32 | size | [length: 1] Returns the size of the uniform variable. |
ActiveUniformType | type | [length: 1] Returns the data type of the uniform variable. |
Returns
Type | Description |
---|---|
System.String | [length: bufSize] The name of the uniform variable. |
GetActiveUniformBlockName(Int32, Int32)
[requires: v3.1 or ARB_uniform_buffer_object|VERSION_3_1] Retrieve the name of an active uniform block.
Declaration
public static string GetActiveUniformBlockName(int program, int uniformIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the name of a program containing the uniform block. |
System.Int32 | uniformIndex | Specifies the index of the uniform block within program. |
Returns
Type | Description |
---|---|
System.String | The name of the uniform block at uniformIndex. |
GetActiveUniformName(Int32, Int32)
[requires: v3.1 or ARB_uniform_buffer_object|VERSION_3_1] Query the name of an active uniform.
Declaration
public static string GetActiveUniformName(int program, int uniformIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the program containing the active uniform index uniformIndex. |
System.Int32 | uniformIndex | Specifies the index of the active uniform whose name to query. |
Returns
Type | Description |
---|---|
System.String | The name of the active uniform at uniformIndex within program. |
GetAttachedShaders(Int32, Int32, Int32*, Int32[])
Returns the handles of the shader objects attached to a program object
Declaration
[CLSCompliant(false)]
[AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetAttachedShaders")]
[Obsolete("Use GetAttachedShaders out/array overload instead")]
public static void GetAttachedShaders(int program, int maxCount, int *count, int[] obj)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the program object to be queried. |
System.Int32 | maxCount | Specifies the size of the array for storing the returned object names. |
System.Int32* | count | Returns the number of names actually returned in objects. |
System.Int32[] | obj | Specifies an array that is used to return the names of attached shader objects. |
GetAttachedShaders(UInt32, Int32, Int32*, UInt32[])
Returns the handles of the shader objects attached to a program object
Declaration
[CLSCompliant(false)]
[AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetAttachedShaders")]
[Obsolete("Use GetAttachedShaders out/array overload instead")]
public static void GetAttachedShaders(uint program, int maxCount, int *count, uint[] obj)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | program | Specifies the program object to be queried. |
System.Int32 | maxCount | Specifies the size of the array for storing the returned object names. |
System.Int32* | count | Returns the number of names actually returned in objects. |
System.UInt32[] | obj | Specifies an array that is used to return the names of attached shader objects. |
GetDouble(GetPName, out Matrix4d)
[requires: v1.0] Gets a series of consequtive 64-bit float values as a matrix.
Declaration
public static void GetDouble(GetPName pname, out Matrix4d matrix)
Parameters
Type | Name | Description |
---|---|---|
GetPName | pname | The name of the property that holds the values. |
Matrix4d | matrix | The matrix which will hold the values. |
GetDouble(GetPName, out Vector2d)
[requires: v1.0] Gets a series of consequtive 64-bit float values as a vector.
Declaration
public static void GetDouble(GetPName pname, out Vector2d vector)
Parameters
Type | Name | Description |
---|---|---|
GetPName | pname | The name of the property that holds the values. |
Vector2d | vector | The vector which will hold the values. |
GetDouble(GetPName, out Vector3d)
[requires: v1.0] Gets a series of consequtive 64-bit float values as a vector.
Declaration
public static void GetDouble(GetPName pname, out Vector3d vector)
Parameters
Type | Name | Description |
---|---|---|
GetPName | pname | The name of the property that holds the values. |
Vector3d | vector | The vector which will hold the values. |
GetDouble(GetPName, out Vector4d)
[requires: v1.0] Gets a series of consequtive 64-bit float values as a vector.
Declaration
public static void GetDouble(GetPName pname, out Vector4d vector)
Parameters
Type | Name | Description |
---|---|---|
GetPName | pname | The name of the property that holds the values. |
Vector4d | vector | The vector which will hold the values. |
GetFloat(GetPName, out Matrix4)
[requires: v1.0] Gets a series of consequtive float values as a matrix.
Declaration
public static void GetFloat(GetPName pname, out Matrix4 matrix)
Parameters
Type | Name | Description |
---|---|---|
GetPName | pname | The name of the property that holds the values. |
Matrix4 | matrix | The matrix which will hold the values. |
GetFloat(GetPName, out Vector2)
[requires: v1.0] Gets a series of consequtive float values as a vector.
Declaration
public static void GetFloat(GetPName pname, out Vector2 vector)
Parameters
Type | Name | Description |
---|---|---|
GetPName | pname | The name of the property that holds the values. |
Vector2 | vector | The vector which will hold the values. |
GetFloat(GetPName, out Vector3)
[requires: v1.0] Gets a series of consequtive float values as a vector.
Declaration
public static void GetFloat(GetPName pname, out Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
GetPName | pname | The name of the property that holds the values. |
Vector3 | vector | The vector which will hold the values. |
GetFloat(GetPName, out Vector4)
[requires: v1.0] Gets a series of consequtive float values as a vector.
Declaration
public static void GetFloat(GetPName pname, out Vector4 vector)
Parameters
Type | Name | Description |
---|---|---|
GetPName | pname | The name of the property that holds the values. |
Vector4 | vector | The vector which will hold the values. |
GetProgramInfoLog(Int32)
[requires: v2.0] Returns the information log for a program object.
Declaration
public static string GetProgramInfoLog(int program)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the program object whose information log is to be queried. |
Returns
Type | Description |
---|---|
System.String | The information log. |
GetProgramInfoLog(Int32, out String)
[requires: v2.0] Returns the information log for a program object.
Declaration
public static void GetProgramInfoLog(int program, out string info)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the program object whose information log is to be queried. |
System.String | info | [length: bufSize] Specifies a string that is used to return the information log. |
GetSeparableFilter<T5>(SeparableTarget, PixelFormat, PixelType, IntPtr, IntPtr, ref T5)
Get separable convolution filter kernel images
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glGetSeparableFilter")]
[Obsolete("Use GetSeparableFilter<T3, T4, T5> overload instead")]
public static void GetSeparableFilter<T5>(SeparableTarget target, PixelFormat format, PixelType type, IntPtr row, IntPtr column, ref T5 span)where T5 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | The separable filter to be retrieved. Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelFormat | format | Format of the output images. Must be one of GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR GL_RGBA, GL_BGRA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | Data type of components in the output images. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to storage for the row filter image. |
System.IntPtr | column | Pointer to storage for the column filter image. |
T5 | span | Pointer to storage for the span filter image (currently unused). |
Type Parameters
Name | Description |
---|---|
T5 |
GetSeparableFilter<T5>(SeparableTarget, PixelFormat, PixelType, IntPtr, IntPtr, T5[])
Get separable convolution filter kernel images
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glGetSeparableFilter")]
[Obsolete("Use GetSeparableFilter<T3, T4, T5> overload instead")]
[CLSCompliant(false)]
public static void GetSeparableFilter<T5>(SeparableTarget target, PixelFormat format, PixelType type, IntPtr row, IntPtr column, T5[] span)where T5 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | The separable filter to be retrieved. Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelFormat | format | Format of the output images. Must be one of GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR GL_RGBA, GL_BGRA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | Data type of components in the output images. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to storage for the row filter image. |
System.IntPtr | column | Pointer to storage for the column filter image. |
T5[] | span | Pointer to storage for the span filter image (currently unused). |
Type Parameters
Name | Description |
---|---|
T5 |
GetSeparableFilter<T5>(SeparableTarget, PixelFormat, PixelType, IntPtr, IntPtr, T5[,,])
Get separable convolution filter kernel images
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glGetSeparableFilter")]
[Obsolete("Use GetSeparableFilter<T3, T4, T5> overload instead")]
[CLSCompliant(false)]
public static void GetSeparableFilter<T5>(SeparableTarget target, PixelFormat format, PixelType type, IntPtr row, IntPtr column, T5[,, ] span)where T5 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | The separable filter to be retrieved. Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelFormat | format | Format of the output images. Must be one of GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR GL_RGBA, GL_BGRA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | Data type of components in the output images. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to storage for the row filter image. |
System.IntPtr | column | Pointer to storage for the column filter image. |
T5[,,] | span | Pointer to storage for the span filter image (currently unused). |
Type Parameters
Name | Description |
---|---|
T5 |
GetSeparableFilter<T5>(SeparableTarget, PixelFormat, PixelType, IntPtr, IntPtr, T5[,])
Get separable convolution filter kernel images
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glGetSeparableFilter")]
[Obsolete("Use GetSeparableFilter<T3, T4, T5> overload instead")]
[CLSCompliant(false)]
public static void GetSeparableFilter<T5>(SeparableTarget target, PixelFormat format, PixelType type, IntPtr row, IntPtr column, T5[, ] span)where T5 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | The separable filter to be retrieved. Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelFormat | format | Format of the output images. Must be one of GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR GL_RGBA, GL_BGRA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | Data type of components in the output images. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to storage for the row filter image. |
System.IntPtr | column | Pointer to storage for the column filter image. |
T5[,] | span | Pointer to storage for the span filter image (currently unused). |
Type Parameters
Name | Description |
---|---|
T5 |
GetSeparableFilter<T4, T5>(SeparableTarget, PixelFormat, PixelType, IntPtr, ref T4, T5[,,])
Get separable convolution filter kernel images
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glGetSeparableFilter")]
[Obsolete("Use GetSeparableFilter<T3, T4, T5> overload instead")]
[CLSCompliant(false)]
public static void GetSeparableFilter<T4, T5>(SeparableTarget target, PixelFormat format, PixelType type, IntPtr row, ref T4 column, T5[,, ] span)where T4 : struct where T5 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | The separable filter to be retrieved. Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelFormat | format | Format of the output images. Must be one of GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR GL_RGBA, GL_BGRA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | Data type of components in the output images. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to storage for the row filter image. |
T4 | column | Pointer to storage for the column filter image. |
T5[,,] | span | Pointer to storage for the span filter image (currently unused). |
Type Parameters
Name | Description |
---|---|
T4 | |
T5 |
GetSeparableFilter<T4, T5>(SeparableTarget, PixelFormat, PixelType, IntPtr, T4[], T5[,,])
Get separable convolution filter kernel images
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glGetSeparableFilter")]
[Obsolete("Use GetSeparableFilter<T3, T4, T5> overload instead")]
[CLSCompliant(false)]
public static void GetSeparableFilter<T4, T5>(SeparableTarget target, PixelFormat format, PixelType type, IntPtr row, T4[] column, T5[,, ] span)where T4 : struct where T5 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | The separable filter to be retrieved. Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelFormat | format | Format of the output images. Must be one of GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR GL_RGBA, GL_BGRA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | Data type of components in the output images. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to storage for the row filter image. |
T4[] | column | Pointer to storage for the column filter image. |
T5[,,] | span | Pointer to storage for the span filter image (currently unused). |
Type Parameters
Name | Description |
---|---|
T4 | |
T5 |
GetSeparableFilter<T4, T5>(SeparableTarget, PixelFormat, PixelType, IntPtr, T4[,,], T5[,,])
Get separable convolution filter kernel images
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glGetSeparableFilter")]
[Obsolete("Use GetSeparableFilter<T3, T4, T5> overload instead")]
[CLSCompliant(false)]
public static void GetSeparableFilter<T4, T5>(SeparableTarget target, PixelFormat format, PixelType type, IntPtr row, T4[,, ] column, T5[,, ] span)where T4 : struct where T5 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | The separable filter to be retrieved. Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelFormat | format | Format of the output images. Must be one of GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR GL_RGBA, GL_BGRA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | Data type of components in the output images. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to storage for the row filter image. |
T4[,,] | column | Pointer to storage for the column filter image. |
T5[,,] | span | Pointer to storage for the span filter image (currently unused). |
Type Parameters
Name | Description |
---|---|
T4 | |
T5 |
GetSeparableFilter<T4, T5>(SeparableTarget, PixelFormat, PixelType, IntPtr, T4[,], T5[,,])
Get separable convolution filter kernel images
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glGetSeparableFilter")]
[Obsolete("Use GetSeparableFilter<T3, T4, T5> overload instead")]
[CLSCompliant(false)]
public static void GetSeparableFilter<T4, T5>(SeparableTarget target, PixelFormat format, PixelType type, IntPtr row, T4[, ] column, T5[,, ] span)where T4 : struct where T5 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | The separable filter to be retrieved. Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelFormat | format | Format of the output images. Must be one of GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR GL_RGBA, GL_BGRA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | Data type of components in the output images. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to storage for the row filter image. |
T4[,] | column | Pointer to storage for the column filter image. |
T5[,,] | span | Pointer to storage for the span filter image (currently unused). |
Type Parameters
Name | Description |
---|---|
T4 | |
T5 |
GetSeparableFilter<T3, T4, T5>(SeparableTarget, PixelFormat, PixelType, ref T3, T4[,,], T5[,,])
Get separable convolution filter kernel images
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glGetSeparableFilter")]
[Obsolete("Use GetSeparableFilter<T3, T4, T5> with three ref arguments instead")]
public static void GetSeparableFilter<T3, T4, T5>(SeparableTarget target, PixelFormat format, PixelType type, ref T3 row, T4[,, ] column, T5[,, ] span)where T3 : struct where T4 : struct where T5 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | The separable filter to be retrieved. Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelFormat | format | Format of the output images. Must be one of GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR GL_RGBA, GL_BGRA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | Data type of components in the output images. Symbolic constants 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 are accepted. |
T3 | row | Pointer to storage for the row filter image. |
T4[,,] | column | Pointer to storage for the column filter image. |
T5[,,] | span | Pointer to storage for the span filter image (currently unused). |
Type Parameters
Name | Description |
---|---|
T3 | |
T4 | |
T5 |
GetSeparableFilter<T3, T4, T5>(SeparableTarget, PixelFormat, PixelType, T3[], T4[,,], T5[,,])
Get separable convolution filter kernel images
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glGetSeparableFilter")]
[Obsolete("Use GetSeparableFilter<T3, T4, T5> overload with equal array dimensions instead")]
[CLSCompliant(false)]
public static void GetSeparableFilter<T3, T4, T5>(SeparableTarget target, PixelFormat format, PixelType type, T3[] row, T4[,, ] column, T5[,, ] span)where T3 : struct where T4 : struct where T5 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | The separable filter to be retrieved. Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelFormat | format | Format of the output images. Must be one of GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR GL_RGBA, GL_BGRA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | Data type of components in the output images. Symbolic constants 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 are accepted. |
T3[] | row | Pointer to storage for the row filter image. |
T4[,,] | column | Pointer to storage for the column filter image. |
T5[,,] | span | Pointer to storage for the span filter image (currently unused). |
Type Parameters
Name | Description |
---|---|
T3 | |
T4 | |
T5 |
GetSeparableFilter<T3, T4, T5>(SeparableTarget, PixelFormat, PixelType, T3[,], T4[,,], T5[,,])
Get separable convolution filter kernel images
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glGetSeparableFilter")]
[Obsolete("Use GetSeparableFilter<T3, T4, T5> overload with equal array dimensions instead")]
[CLSCompliant(false)]
public static void GetSeparableFilter<T3, T4, T5>(SeparableTarget target, PixelFormat format, PixelType type, T3[, ] row, T4[,, ] column, T5[,, ] span)where T3 : struct where T4 : struct where T5 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | The separable filter to be retrieved. Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelFormat | format | Format of the output images. Must be one of GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR GL_RGBA, GL_BGRA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | Data type of components in the output images. Symbolic constants 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 are accepted. |
T3[,] | row | Pointer to storage for the row filter image. |
T4[,,] | column | Pointer to storage for the column filter image. |
T5[,,] | span | Pointer to storage for the span filter image (currently unused). |
Type Parameters
Name | Description |
---|---|
T3 | |
T4 | |
T5 |
GetShaderInfoLog(Int32)
[requires: v2.0] Returns the information log for a shader object.
Declaration
public static string GetShaderInfoLog(int shader)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | shader | Specifies the shader object whose information log is to be queried. |
Returns
Type | Description |
---|---|
System.String | The information log. |
GetShaderInfoLog(Int32, out String)
[requires: v2.0] Returns the information log for a shader object.
Declaration
public static void GetShaderInfoLog(int shader, out string info)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | shader | Specifies the shader object whose information log is to be queried. |
System.String | info | [length: bufSize] Specifies a string that is used to return the information log. |
GetSync(IntPtr, ArbSync, Int32, Int32*, Int32[])
Declaration
[CLSCompliant(false)]
[AutoGenerated(Category = "ArbSync", Version = "1.2", EntryPoint = "glGetSynciv")]
[Obsolete("Use out/array overload instead")]
public static void GetSync(IntPtr sync, ArbSync pname, int bufSize, int *length, int[] values)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | sync | |
OpenTK.Graphics.OpenGL.ArbSync | pname | |
System.Int32 | bufSize | |
System.Int32* | length | |
System.Int32[] | values |
IndexPointer(IndexPointerType, Int32, Int32)
[requires: v1.1][deprecated: v3.2] Define an array of color indexes.
Declaration
public static void IndexPointer(IndexPointerType type, int stride, int offset)
Parameters
Type | Name | Description |
---|---|---|
IndexPointerType | type | Specifies the data type of each color index in the array. Symbolic constants UnsignedByte, Short, Int, Float, and Double are accepted. The initial value is Float. |
System.Int32 | stride | Specifies the byte offset between consecutive color indexes. If stride is 0, the color indexes are understood to be tightly packed in the array. The initial value is 0. |
System.Int32 | offset | Specifies the first index in the array. The initial value is 0. |
Light(LightName, LightParameter, Color4)
[requires: v1.0][deprecated: v3.2] Set light source parameters
Declaration
public static void Light(LightName name, LightParameter pname, Color4 params)
Parameters
Type | Name | Description |
---|---|---|
LightName | name | Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form Light , where i ranges from 0 to the value of MaxLights - 1. |
LightParameter | pname | Specifies a single-valued light source parameter for light. SpotExponent, SpotCutoff, ConstantAttenuation, LinearAttenuation, and QuadraticAttenuation are accepted. |
Color4 | params | [length: pname] Specifies the value that parameter pname of light source light will be set to. |
Light(LightName, LightParameter, Vector4)
[requires: v1.0][deprecated: v3.2] Set light source parameters
Declaration
public static void Light(LightName name, LightParameter pname, Vector4 params)
Parameters
Type | Name | Description |
---|---|---|
LightName | name | Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form Light , where i ranges from 0 to the value of MaxLights - 1. |
LightParameter | pname | Specifies a single-valued light source parameter for light. SpotExponent, SpotCutoff, ConstantAttenuation, LinearAttenuation, and QuadraticAttenuation are accepted. |
Vector4 | params | [length: pname] Specifies the value that parameter pname of light source light will be set to. |
LoadMatrix(ref Matrix4)
[requires: v1.0][deprecated: v3.2] Replace the current matrix with the specified matrix
Declaration
public static void LoadMatrix(ref Matrix4 mat)
Parameters
Type | Name | Description |
---|---|---|
Matrix4 | mat | The matrix to replace the current one with. |
LoadMatrix(ref Matrix4d)
[requires: v1.0][deprecated: v3.2] Replace the current matrix with the specified matrix
Declaration
public static void LoadMatrix(ref Matrix4d mat)
Parameters
Type | Name | Description |
---|---|---|
Matrix4d | mat | The matrix to replace the current one with. |
LoadTransposeMatrix(ref Matrix4)
[requires: v1.3][deprecated: v3.2] Replace the current matrix with the specified row-major ordered matrix.
Declaration
public static void LoadTransposeMatrix(ref Matrix4 mat)
Parameters
Type | Name | Description |
---|---|---|
Matrix4 | mat | The matrix to replace the current one with. |
LoadTransposeMatrix(ref Matrix4d)
[requires: v1.3][deprecated: v3.2] Replace the current matrix with the specified row-major ordered matrix.
Declaration
public static void LoadTransposeMatrix(ref Matrix4d mat)
Parameters
Type | Name | Description |
---|---|---|
Matrix4d | mat | The matrix to replace the current one with. |
Material(MaterialFace, MaterialParameter, Color4)
[requires: v1.0][deprecated: v3.2] Specify material parameters for the lighting model.
Declaration
public static void Material(MaterialFace face, MaterialParameter pname, Color4 params)
Parameters
Type | Name | Description |
---|---|---|
MaterialFace | face | Specifies which face or faces are being updated. Must be one of Front, Back, or FrontAndBack. |
MaterialParameter | pname | Specifies the single-valued material parameter of the face or faces that is being updated. Must be Shininess. |
Color4 | params | [length: pname] Specifies the value that parameter Shininess will be set to. |
Material(MaterialFace, MaterialParameter, Vector4)
[requires: v1.0][deprecated: v3.2] Specify material parameters for the lighting model.
Declaration
public static void Material(MaterialFace face, MaterialParameter pname, Vector4 params)
Parameters
Type | Name | Description |
---|---|---|
MaterialFace | face | Specifies which face or faces are being updated. Must be one of Front, Back, or FrontAndBack. |
MaterialParameter | pname | Specifies the single-valued material parameter of the face or faces that is being updated. Must be Shininess. |
Vector4 | params | [length: pname] Specifies the value that parameter Shininess will be set to. |
MultiTexCoord2(TextureUnit, ref Vector2)
[requires: v1.3][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void MultiTexCoord2(TextureUnit target, ref Vector2 v)
Parameters
Type | Name | Description |
---|---|---|
TextureUnit | target | Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of Texture, where i ranges from 0 to MaxTextureCoords - 1, which is an implementation-dependent value. |
Vector2 | v | Specifies the s and t texture coordinates for target texture unit. |
MultiTexCoord2(TextureUnit, ref Vector2d)
[requires: v1.3][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void MultiTexCoord2(TextureUnit target, ref Vector2d v)
Parameters
Type | Name | Description |
---|---|---|
TextureUnit | target | Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of Texture, where i ranges from 0 to MaxTextureCoords - 1, which is an implementation-dependent value. |
Vector2d | v | Specifies the s and t texture coordinates for target texture unit. |
MultiTexCoord3(TextureUnit, ref Vector3)
[requires: v1.3][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void MultiTexCoord3(TextureUnit target, ref Vector3 v)
Parameters
Type | Name | Description |
---|---|---|
TextureUnit | target | Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of Texture, where i ranges from 0 to MaxTextureCoords - 1, which is an implementation-dependent value. |
Vector3 | v | Specifies the s, t, and r texture coordinates for target texture unit. |
MultiTexCoord3(TextureUnit, ref Vector3d)
[requires: v1.3][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void MultiTexCoord3(TextureUnit target, ref Vector3d v)
Parameters
Type | Name | Description |
---|---|---|
TextureUnit | target | Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of Texture, where i ranges from 0 to MaxTextureCoords - 1, which is an implementation-dependent value. |
Vector3d | v | Specifies the s, t, and r texture coordinates for target texture unit. |
MultiTexCoord4(TextureUnit, ref Vector4)
[requires: v1.3][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void MultiTexCoord4(TextureUnit target, ref Vector4 v)
Parameters
Type | Name | Description |
---|---|---|
TextureUnit | target | Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of Texture, where i ranges from 0 to MaxTextureCoords - 1, which is an implementation-dependent value. |
Vector4 | v | Specifies the s, t, r, and q texture coordinates for target texture unit. |
MultiTexCoord4(TextureUnit, ref Vector4d)
[requires: v1.3][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void MultiTexCoord4(TextureUnit target, ref Vector4d v)
Parameters
Type | Name | Description |
---|---|---|
TextureUnit | target | Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of Texture, where i ranges from 0 to MaxTextureCoords - 1, which is an implementation-dependent value. |
Vector4d | v | Specifies the s, t, r, and q texture coordinates for target texture unit. |
MultMatrix(ref Matrix4)
[requires: v1.0][deprecated: v3.2] Multiply the current matrix with the specified matrix.
Declaration
public static void MultMatrix(ref Matrix4 mat)
Parameters
Type | Name | Description |
---|---|---|
Matrix4 | mat | The matrix to multiply the current one with. |
MultMatrix(ref Matrix4d)
[requires: v1.0][deprecated: v3.2] Multiply the current matrix with the specified matrix.
Declaration
public static void MultMatrix(ref Matrix4d mat)
Parameters
Type | Name | Description |
---|---|---|
Matrix4d | mat | The matrix to multiply the current one with. |
MultTransposeMatrix(ref Matrix4)
[requires: v1.3][deprecated: v3.2] Multiply the current matrix with the specified row-major ordered matrix
Declaration
public static void MultTransposeMatrix(ref Matrix4 mat)
Parameters
Type | Name | Description |
---|---|---|
Matrix4 | mat | The matrix to multiply the current one with. |
MultTransposeMatrix(ref Matrix4d)
[requires: v1.3][deprecated: v3.2] Multiply the current matrix with the specified row-major ordered matrix
Declaration
public static void MultTransposeMatrix(ref Matrix4d mat)
Parameters
Type | Name | Description |
---|---|---|
Matrix4d | mat | The matrix to multiply the current one with. |
Normal3(Vector3)
[requires: v1.0][deprecated: v3.2] Set the current normal vector.
Declaration
public static void Normal3(Vector3 normal)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | normal | Specify the x, y, and z coordinates of the new current normal. The initial value of the current normal is the unit vector, (0, 0, 1). |
Normal3(Vector3d)
[requires: v1.0][deprecated: v3.2] Set the current normal vector.
Declaration
public static void Normal3(Vector3d normal)
Parameters
Type | Name | Description |
---|---|---|
Vector3d | normal | Specify the x, y, and z coordinates of the new current normal. The initial value of the current normal is the unit vector, (0, 0, 1). |
NormalPointer(NormalPointerType, Int32, Int32)
[requires: v1.1][deprecated: v3.2] Define an array of normals.
Declaration
public static void NormalPointer(NormalPointerType type, int stride, int offset)
Parameters
Type | Name | Description |
---|---|---|
NormalPointerType | type | Specifies the data type of each coordinate in the array. Symbolic constants Byte, Short, Int, Float, and Double are accepted. The initial value is Float. |
System.Int32 | stride | Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. |
System.Int32 | offset | [length: type,stride] Specifies the first coordinate of the first normal in the array. The initial value is 0. |
PointParameter(PointSpriteCoordOriginParameter)
Helper function that defines the coordinate origin of the Point Sprite.
Declaration
public static void PointParameter(PointSpriteCoordOriginParameter param)
Parameters
Type | Name | Description |
---|---|---|
PointSpriteCoordOriginParameter | param | A OpenTK.Graphics.OpenGL.GL.PointSpriteCoordOriginParameter token, denoting the origin of the Point Sprite. |
ProgramUniform2(Int32, Int32, Vector2)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Vector2 uniform variable for the specified program object.
Declaration
public static void ProgramUniform2(int program, int location, Vector2 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector2 | vector | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniform2(Int32, Int32, ref Vector2)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Vector2 uniform variable for the specified program object.
Declaration
[CLSCompliant(false)]
public static void ProgramUniform2(int program, int location, ref Vector2 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector2 | vector | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniform3(Int32, Int32, Vector3)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Vector3 uniform variable for the specified program object.
Declaration
public static void ProgramUniform3(int program, int location, Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector3 | vector | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniform3(Int32, Int32, ref Vector3)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Vector3 uniform variable for the specified program object.
Declaration
[CLSCompliant(false)]
public static void ProgramUniform3(int program, int location, ref Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector3 | vector | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniform4(Int32, Int32, Color4)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Color4 uniform variable for the specified program object. In shader code, this is represented as a Vector4.
Declaration
public static void ProgramUniform4(int program, int location, Color4 color)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Color4 | color | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniform4(Int32, Int32, Quaternion)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Quaternion uniform variable for the specified program object. In shader code, this is represented as a Vector4.
Declaration
public static void ProgramUniform4(int program, int location, Quaternion quaternion)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Quaternion | quaternion | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniform4(Int32, Int32, Vector4)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Vector4 uniform variable for the specified program object.
Declaration
public static void ProgramUniform4(int program, int location, Vector4 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector4 | vector | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniform4(Int32, Int32, ref Vector4)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Vector4 uniform variable for the specified program object.
Declaration
[CLSCompliant(false)]
public static void ProgramUniform4(int program, int location, ref Vector4 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector4 | vector | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix2(Int32, Int32, Boolean, ref Matrix2)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix2 uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix2(int program, int location, bool transpose, ref Matrix2 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2 | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix2(Int32, Int32, Boolean, ref Matrix2d)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix2d uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix2(int program, int location, bool transpose, ref Matrix2d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2d | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix2x3(Int32, Int32, Boolean, ref Matrix2x3)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix2x3 uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix2x3(int program, int location, bool transpose, ref Matrix2x3 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2x3 | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix2x3(Int32, Int32, Boolean, ref Matrix2x3d)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix2x3d uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix2x3(int program, int location, bool transpose, ref Matrix2x3d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2x3d | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix2x4(Int32, Int32, Boolean, ref Matrix2x4)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix2x4 uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix2x4(int program, int location, bool transpose, ref Matrix2x4 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2x4 | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix2x4(Int32, Int32, Boolean, ref Matrix2x4d)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix2x4d uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix2x4(int program, int location, bool transpose, ref Matrix2x4d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2x4d | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix3(Int32, Int32, Boolean, ref Matrix3)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix3 uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix3(int program, int location, bool transpose, ref Matrix3 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3 | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix3(Int32, Int32, Boolean, ref Matrix3d)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix3d uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix3(int program, int location, bool transpose, ref Matrix3d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3d | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix3x2(Int32, Int32, Boolean, ref Matrix3x2)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix3x2 uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix3x2(int program, int location, bool transpose, ref Matrix3x2 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3x2 | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix3x2(Int32, Int32, Boolean, ref Matrix3x2d)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix3x2d uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix3x2(int program, int location, bool transpose, ref Matrix3x2d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3x2d | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix3x4(Int32, Int32, Boolean, ref Matrix3x4)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix3x4 uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix3x4(int program, int location, bool transpose, ref Matrix3x4 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3x4 | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix3x4(Int32, Int32, Boolean, ref Matrix3x4d)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix3x4d uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix3x4(int program, int location, bool transpose, ref Matrix3x4d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3x4d | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix4(Int32, Int32, Boolean, ref Matrix4)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix4 uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix4(int program, int location, bool transpose, ref Matrix4 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4 | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix4(Int32, Int32, Boolean, ref Matrix4d)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix4d uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix4(int program, int location, bool transpose, ref Matrix4d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4d | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix4x2(Int32, Int32, Boolean, ref Matrix4x2)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix4x2 uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix4x2(int program, int location, bool transpose, ref Matrix4x2 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4x2 | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix4x2(Int32, Int32, Boolean, ref Matrix4x2d)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix4x2d uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix4x2(int program, int location, bool transpose, ref Matrix4x2d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4x2d | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix4x3(Int32, Int32, Boolean, ref Matrix4x3)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix4x3 uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix4x3(int program, int location, bool transpose, ref Matrix4x3 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4x3 | matrix | Specifies the new vector to be used for the specified uniform variable. |
ProgramUniformMatrix4x3(Int32, Int32, Boolean, ref Matrix4x3d)
[requires: v4.1 or ARB_separate_shader_objects|VERSION_4_1] Specify the value of a Matrix4x3d uniform variable for the current program object.
Declaration
public static void ProgramUniformMatrix4x3(int program, int location, bool transpose, ref Matrix4x3d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | program | Specifies the handle of the program containing the uniform variable to be modified. |
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4x3d | matrix | Specifies the new vector to be used for the specified uniform variable. |
RasterPos2(Vector2)
[requires: v1.0][deprecated: v3.2] Specify the raster position for pixel operations.
Declaration
public static void RasterPos2(Vector2 pos)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | pos | Specify the x and y object coordinates (if present) for the raster position. |
RasterPos2(Vector2d)
[requires: v1.0][deprecated: v3.2] Specify the raster position for pixel operations.
Declaration
public static void RasterPos2(Vector2d pos)
Parameters
Type | Name | Description |
---|---|---|
Vector2d | pos | Specify the x and y object coordinates (if present) for the raster position. |
RasterPos3(Vector3)
[requires: v1.0][deprecated: v3.2] Specify the raster position for pixel operations.
Declaration
public static void RasterPos3(Vector3 pos)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | pos | Specify the x, y, and z object coordinates (if present) for the raster position. |
RasterPos3(Vector3d)
[requires: v1.0][deprecated: v3.2] Specify the raster position for pixel operations.
Declaration
public static void RasterPos3(Vector3d pos)
Parameters
Type | Name | Description |
---|---|---|
Vector3d | pos | Specify the x, y and z object coordinates (if present) for the raster position. |
RasterPos4(Vector4)
[requires: v1.0][deprecated: v3.2] Specify the raster position for pixel operations.
Declaration
public static void RasterPos4(Vector4 pos)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | pos | Specify the x, y, z, and w object coordinates (if present) for the raster position. |
RasterPos4(Vector4d)
[requires: v1.0][deprecated: v3.2] Specify the raster position for pixel operations.
Declaration
public static void RasterPos4(Vector4d pos)
Parameters
Type | Name | Description |
---|---|---|
Vector4d | pos | Specify the x, y, z and w object coordinates (if present) for the raster position. |
Rect(Rectangle)
[requires: v1.0][deprecated: v3.2] Draw a rectangle.
Declaration
[CLSCompliant(false)]
public static void Rect(Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | rect | Specifies the vertices of the rectangle. |
Rect(ref Rectangle)
[requires: v1.0][deprecated: v3.2] Draw a rectangle.
Declaration
[CLSCompliant(false)]
public static void Rect(ref Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | rect | Specifies the vertices of the rectangle. |
Rect(RectangleF)
[requires: v1.0][deprecated: v3.2] Draw a rectangle.
Declaration
[CLSCompliant(false)]
public static void Rect(RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
RectangleF | rect | Specifies the vertices of the rectangle. |
Rect(ref RectangleF)
[requires: v1.0][deprecated: v3.2] Draw a rectangle.
Declaration
[CLSCompliant(false)]
public static void Rect(ref RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
RectangleF | rect | Specifies the vertices of the rectangle. |
Rotate(Double, Vector3d)
[requires: v1.0][deprecated: v3.2] Multiply the current matrix by a rotation matrix.
Declaration
public static void Rotate(double angle, Vector3d axis)
Parameters
Type | Name | Description |
---|---|---|
System.Double | angle | Specifies the angle of rotation, in degrees. |
Vector3d | axis | Specifies the axis of rotation. |
Rotate(Single, Vector3)
[requires: v1.0][deprecated: v3.2] Multiply the current matrix by a rotation matrix.
Declaration
public static void Rotate(float angle, Vector3 axis)
Parameters
Type | Name | Description |
---|---|---|
System.Single | angle | Specifies the angle of rotation, in degrees. |
Vector3 | axis | Specifies the axis of rotation. |
Scale(Vector3)
[requires: v1.0][deprecated: v3.2] Multiply the current matrix by a general scaling matrix.
Declaration
public static void Scale(Vector3 scale)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | scale | Specifies scale factors along the x, y, and z axes. |
Scale(Vector3d)
[requires: v1.0][deprecated: v3.2] Multiply the current matrix by a general scaling matrix.
Declaration
public static void Scale(Vector3d scale)
Parameters
Type | Name | Description |
---|---|---|
Vector3d | scale | Specifies scale factors along the x, y, and z axes. |
SeparableFilter2D<T7>(SeparableTarget, PixelInternalFormat, Int32, Int32, PixelFormat, PixelType, IntPtr, ref T7)
Define a separable two-dimensional convolution filter
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glSeparableFilter2D")]
[Obsolete("Use overload with equal array dimensions instead")]
public static void SeparableFilter2D<T7>(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr row, ref T7 column)where T7 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelInternalFormat | internalformat | The internal format of the convolution filter kernel. The allowable values are GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, 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, or GL_RGBA16. |
System.Int32 | width | The number of elements in the pixel array referenced by row. (This is the width of the separable filter kernel.) |
System.Int32 | height | The number of elements in the pixel array referenced by column. (This is the height of the separable filter kernel.) |
OpenTK.Graphics.OpenGL.PixelFormat | format | The format of the pixel data in row and column. The allowable values are GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_INTENSITY, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | The type of the pixel data in row and column. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to a one-dimensional array of pixel data that is processed to build the row filter kernel. |
T7 | column | Pointer to a one-dimensional array of pixel data that is processed to build the column filter kernel. |
Type Parameters
Name | Description |
---|---|
T7 |
SeparableFilter2D<T7>(SeparableTarget, PixelInternalFormat, Int32, Int32, PixelFormat, PixelType, IntPtr, T7[])
Define a separable two-dimensional convolution filter
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glSeparableFilter2D")]
[Obsolete("Use overload with equal array dimensions instead")]
[CLSCompliant(false)]
public static void SeparableFilter2D<T7>(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr row, T7[] column)where T7 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelInternalFormat | internalformat | The internal format of the convolution filter kernel. The allowable values are GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, 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, or GL_RGBA16. |
System.Int32 | width | The number of elements in the pixel array referenced by row. (This is the width of the separable filter kernel.) |
System.Int32 | height | The number of elements in the pixel array referenced by column. (This is the height of the separable filter kernel.) |
OpenTK.Graphics.OpenGL.PixelFormat | format | The format of the pixel data in row and column. The allowable values are GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_INTENSITY, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | The type of the pixel data in row and column. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to a one-dimensional array of pixel data that is processed to build the row filter kernel. |
T7[] | column | Pointer to a one-dimensional array of pixel data that is processed to build the column filter kernel. |
Type Parameters
Name | Description |
---|---|
T7 |
SeparableFilter2D<T7>(SeparableTarget, PixelInternalFormat, Int32, Int32, PixelFormat, PixelType, IntPtr, T7[,,])
Define a separable two-dimensional convolution filter
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glSeparableFilter2D")]
[Obsolete("Use overload with equal array dimensions instead")]
[CLSCompliant(false)]
public static void SeparableFilter2D<T7>(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr row, T7[,, ] column)where T7 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelInternalFormat | internalformat | The internal format of the convolution filter kernel. The allowable values are GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, 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, or GL_RGBA16. |
System.Int32 | width | The number of elements in the pixel array referenced by row. (This is the width of the separable filter kernel.) |
System.Int32 | height | The number of elements in the pixel array referenced by column. (This is the height of the separable filter kernel.) |
OpenTK.Graphics.OpenGL.PixelFormat | format | The format of the pixel data in row and column. The allowable values are GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_INTENSITY, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | The type of the pixel data in row and column. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to a one-dimensional array of pixel data that is processed to build the row filter kernel. |
T7[,,] | column | Pointer to a one-dimensional array of pixel data that is processed to build the column filter kernel. |
Type Parameters
Name | Description |
---|---|
T7 |
SeparableFilter2D<T7>(SeparableTarget, PixelInternalFormat, Int32, Int32, PixelFormat, PixelType, IntPtr, T7[,])
Define a separable two-dimensional convolution filter
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glSeparableFilter2D")]
[Obsolete("Use overload with equal array dimensions instead")]
[CLSCompliant(false)]
public static void SeparableFilter2D<T7>(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, IntPtr row, T7[, ] column)where T7 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelInternalFormat | internalformat | The internal format of the convolution filter kernel. The allowable values are GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, 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, or GL_RGBA16. |
System.Int32 | width | The number of elements in the pixel array referenced by row. (This is the width of the separable filter kernel.) |
System.Int32 | height | The number of elements in the pixel array referenced by column. (This is the height of the separable filter kernel.) |
OpenTK.Graphics.OpenGL.PixelFormat | format | The format of the pixel data in row and column. The allowable values are GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_INTENSITY, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | The type of the pixel data in row and column. Symbolic constants 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 are accepted. |
System.IntPtr | row | Pointer to a one-dimensional array of pixel data that is processed to build the row filter kernel. |
T7[,] | column | Pointer to a one-dimensional array of pixel data that is processed to build the column filter kernel. |
Type Parameters
Name | Description |
---|---|
T7 |
SeparableFilter2D<T6, T7>(ExtConvolution, PixelInternalFormat, Int32, Int32, PixelFormat, PixelType, ref T6, T7[,,])
Define a separable two-dimensional convolution filter
Declaration
[AutoGenerated(Category = "ExtConvolution", Version = "1.0", EntryPoint = "glSeparableFilter2DEXT")]
[Obsolete("Use ref/array overloads instead")]
public static void SeparableFilter2D<T6, T7>(ExtConvolution target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, ref T6 row, T7[,, ] column)where T6 : struct where T7 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.ExtConvolution | target | Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelInternalFormat | internalformat | The internal format of the convolution filter kernel. The allowable values are GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, 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, or GL_RGBA16. |
System.Int32 | width | The number of elements in the pixel array referenced by row. (This is the width of the separable filter kernel.) |
System.Int32 | height | The number of elements in the pixel array referenced by column. (This is the height of the separable filter kernel.) |
OpenTK.Graphics.OpenGL.PixelFormat | format | The format of the pixel data in row and column. The allowable values are GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_INTENSITY, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | The type of the pixel data in row and column. Symbolic constants 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 are accepted. |
T6 | row | Pointer to a one-dimensional array of pixel data that is processed to build the row filter kernel. |
T7[,,] | column | Pointer to a one-dimensional array of pixel data that is processed to build the column filter kernel. |
Type Parameters
Name | Description |
---|---|
T6 | |
T7 |
SeparableFilter2D<T6, T7>(SeparableTarget, PixelInternalFormat, Int32, Int32, PixelFormat, PixelType, ref T6, T7[,,])
Define a separable two-dimensional convolution filter
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glSeparableFilter2D")]
[Obsolete("Use overload with equal array dimensions instead")]
[CLSCompliant(false)]
public static void SeparableFilter2D<T6, T7>(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, ref T6 row, T7[,, ] column)where T6 : struct where T7 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelInternalFormat | internalformat | The internal format of the convolution filter kernel. The allowable values are GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, 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, or GL_RGBA16. |
System.Int32 | width | The number of elements in the pixel array referenced by row. (This is the width of the separable filter kernel.) |
System.Int32 | height | The number of elements in the pixel array referenced by column. (This is the height of the separable filter kernel.) |
OpenTK.Graphics.OpenGL.PixelFormat | format | The format of the pixel data in row and column. The allowable values are GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_INTENSITY, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | The type of the pixel data in row and column. Symbolic constants 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 are accepted. |
T6 | row | Pointer to a one-dimensional array of pixel data that is processed to build the row filter kernel. |
T7[,,] | column | Pointer to a one-dimensional array of pixel data that is processed to build the column filter kernel. |
Type Parameters
Name | Description |
---|---|
T6 | |
T7 |
SeparableFilter2D<T6, T7>(SeparableTarget, PixelInternalFormat, Int32, Int32, PixelFormat, PixelType, T6[], T7[,,])
Define a separable two-dimensional convolution filter
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glSeparableFilter2D")]
[Obsolete("Use overload with equal array dimensions instead")]
[CLSCompliant(false)]
public static void SeparableFilter2D<T6, T7>(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, T6[] row, T7[,, ] column)where T6 : struct where T7 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelInternalFormat | internalformat | The internal format of the convolution filter kernel. The allowable values are GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, 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, or GL_RGBA16. |
System.Int32 | width | The number of elements in the pixel array referenced by row. (This is the width of the separable filter kernel.) |
System.Int32 | height | The number of elements in the pixel array referenced by column. (This is the height of the separable filter kernel.) |
OpenTK.Graphics.OpenGL.PixelFormat | format | The format of the pixel data in row and column. The allowable values are GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_INTENSITY, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | The type of the pixel data in row and column. Symbolic constants 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 are accepted. |
T6[] | row | Pointer to a one-dimensional array of pixel data that is processed to build the row filter kernel. |
T7[,,] | column | Pointer to a one-dimensional array of pixel data that is processed to build the column filter kernel. |
Type Parameters
Name | Description |
---|---|
T6 | |
T7 |
SeparableFilter2D<T6, T7>(SeparableTarget, PixelInternalFormat, Int32, Int32, PixelFormat, PixelType, T6[,], T7[,,])
Define a separable two-dimensional convolution filter
Declaration
[AutoGenerated(Category = "Version12Deprecated", Version = "1.2", EntryPoint = "glSeparableFilter2D")]
[Obsolete("Use overload with equal array dimensions instead")]
[CLSCompliant(false)]
public static void SeparableFilter2D<T6, T7>(SeparableTarget target, PixelInternalFormat internalformat, int width, int height, PixelFormat format, PixelType type, T6[, ] row, T7[,, ] column)where T6 : struct where T7 : struct
Parameters
Type | Name | Description |
---|---|---|
OpenTK.Graphics.OpenGL.SeparableTarget | target | Must be GL_SEPARABLE_2D. |
OpenTK.Graphics.OpenGL.PixelInternalFormat | internalformat | The internal format of the convolution filter kernel. The allowable values are GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, 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, or GL_RGBA16. |
System.Int32 | width | The number of elements in the pixel array referenced by row. (This is the width of the separable filter kernel.) |
System.Int32 | height | The number of elements in the pixel array referenced by column. (This is the height of the separable filter kernel.) |
OpenTK.Graphics.OpenGL.PixelFormat | format | The format of the pixel data in row and column. The allowable values are GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_INTENSITY, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. |
OpenTK.Graphics.OpenGL.PixelType | type | The type of the pixel data in row and column. Symbolic constants 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 are accepted. |
T6[,] | row | Pointer to a one-dimensional array of pixel data that is processed to build the row filter kernel. |
T7[,,] | column | Pointer to a one-dimensional array of pixel data that is processed to build the column filter kernel. |
Type Parameters
Name | Description |
---|---|
T6 | |
T7 |
ShaderSource(Int32, String)
[requires: v2.0] Replaces the source code in a shader object.
Declaration
public static void ShaderSource(int shader, string string)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | shader | Specifies the handle of the shader object whose source code is to be replaced. |
System.String | string | Specifies a string containing the source code to be loaded into the shader. |
TexCoord2(Vector2)
[requires: v1.0][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void TexCoord2(Vector2 v)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | v | Specifies the s and t texture coordinates. |
TexCoord2(Vector2d)
[requires: v1.0][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void TexCoord2(Vector2d v)
Parameters
Type | Name | Description |
---|---|---|
Vector2d | v | Specifies the s and t texture coordinates. |
TexCoord3(Vector3)
[requires: v1.0][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void TexCoord3(Vector3 v)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | v | Specifies the s, t and r texture coordinates. |
TexCoord3(Vector3d)
[requires: v1.0][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void TexCoord3(Vector3d v)
Parameters
Type | Name | Description |
---|---|---|
Vector3d | v | Specifies the s, t and r texture coordinates. |
TexCoord4(Vector4)
[requires: v1.0][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void TexCoord4(Vector4 v)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | v | Specifies the s, t, r and q texture coordinates. |
TexCoord4(Vector4d)
[requires: v1.0][deprecated: v3.2] Set the current texture coordinates.
Declaration
public static void TexCoord4(Vector4d v)
Parameters
Type | Name | Description |
---|---|---|
Vector4d | v | Specifies the s, t, r and q texture coordinates. |
TexCoordPointer(Int32, TexCoordPointerType, Int32, Int32)
[requires: v1.1][deprecated: v3.2] Define an array of texture coordinates.
Declaration
public static void TexCoordPointer(int size, TexCoordPointerType type, int stride, int offset)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | size | Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. |
TexCoordPointerType | type | Specifies the data type of each texture coordinate. Symbolic constants Short, Int, Float, or Double are accepted. The initial value is Float. |
System.Int32 | stride | Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. |
System.Int32 | offset | Specifies the first coordinate of the first texture coordinate set in the array. The initial value is 0. |
TexEnv(TextureEnvTarget, TextureEnvParameter, Color)
[requires: v1.0][deprecated: v3.2] Set texture environment parameters.
Declaration
public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, Color color)
Parameters
Type | Name | Description |
---|---|---|
TextureEnvTarget | target | Specifies a texture environment. May be TextureEnv, TextureFilterControl or PointSprite. |
TextureEnvParameter | pname | Specifies the symbolic name of a single-valued texture environment parameter. May be either TextureEnvMode, TextureLodBias, CombineRgb, CombineAlpha, Src0Rgb, Src1Rgb, Src2Rgb, Src0Alpha, Src1Alpha, Src2Alpha, Operand0Rgb, Operand1Rgb, Operand2Rgb, Operand0Alpha, Operand1Alpha, Operand2Alpha, RgbScale, AlphaScale, or CoordReplace. |
Color | color | Specifies the color to apply. |
TexEnv(TextureEnvTarget, TextureEnvParameter, Color4)
[requires: v1.0][deprecated: v3.2] Set texture environment parameters.
Declaration
public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, Color4 color)
Parameters
Type | Name | Description |
---|---|---|
TextureEnvTarget | target | Specifies a texture environment. May be TextureEnv, TextureFilterControl or PointSprite. |
TextureEnvParameter | pname | Specifies the symbolic name of a single-valued texture environment parameter. May be either TextureEnvMode, TextureLodBias, CombineRgb, CombineAlpha, Src0Rgb, Src1Rgb, Src2Rgb, Src0Alpha, Src1Alpha, Src2Alpha, Operand0Rgb, Operand1Rgb, Operand2Rgb, Operand0Alpha, Operand1Alpha, Operand2Alpha, RgbScale, AlphaScale, or CoordReplace. |
Color4 | color | Specifies the color to apply. |
Translate(Vector3)
[requires: v1.0][deprecated: v3.2] Multiply the current matrix by a translation matrix.
Declaration
public static void Translate(Vector3 trans)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | trans | Specifies the x, y, and z coordinates with which to translate. |
Translate(Vector3d)
[requires: v1.0][deprecated: v3.2] Multiply the current matrix by a translation matrix.
Declaration
public static void Translate(Vector3d trans)
Parameters
Type | Name | Description |
---|---|---|
Vector3d | trans | Specifies the x, y, and z coordinates with which to translate. |
Uniform2(Int32, Vector2)
[requires: v2.0] Specify the value of a Vector2 uniform variable for the current program object.
Declaration
public static void Uniform2(int location, Vector2 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector2 | vector | Specifies the new vector to be used for the specified uniform variable. |
Uniform2(Int32, ref Vector2)
[requires: v2.0] Specify the value of a Vector2 uniform variable for the current program object.
Declaration
[CLSCompliant(false)]
public static void Uniform2(int location, ref Vector2 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector2 | vector | Specifies the new vector to be used for the specified uniform variable. |
Uniform3(Int32, Vector3)
[requires: v2.0] Specify the value of a Vector3 uniform variable for the current program object.
Declaration
public static void Uniform3(int location, Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector3 | vector | Specifies the new vector to be used for the specified uniform variable. |
Uniform3(Int32, ref Vector3)
[requires: v2.0] Specify the value of a Vector3 uniform variable for the current program object.
Declaration
[CLSCompliant(false)]
public static void Uniform3(int location, ref Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector3 | vector | Specifies the new vector to be used for the specified uniform variable. |
Uniform4(Int32, Color4)
[requires: v2.0] Specify the value of a Color4 uniform variable for the current program object. In shader code, this is represented as a Vector4.
Declaration
public static void Uniform4(int location, Color4 color)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Color4 | color | Specifies the new vector to be used for the specified uniform variable. |
Uniform4(Int32, Quaternion)
[requires: v2.0] Specify the value of a Quaternion uniform variable for the current program object. In shader code, this is represented as a Vector4.
Declaration
public static void Uniform4(int location, Quaternion quaternion)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Quaternion | quaternion | Specifies the new vector to be used for the specified uniform variable. |
Uniform4(Int32, Vector4)
[requires: v2.0] Specify the value of a Vector4 uniform variable for the current program object.
Declaration
public static void Uniform4(int location, Vector4 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector4 | vector | Specifies the new vector to be used for the specified uniform variable. |
Uniform4(Int32, ref Vector4)
[requires: v2.0] Specify the value of a Vector4 uniform variable for the current program object.
Declaration
[CLSCompliant(false)]
public static void Uniform4(int location, ref Vector4 vector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
Vector4 | vector | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix2(Int32, Boolean, ref Matrix2)
[requires: v2.0] Specify the value of a Matrix2 uniform variable for the current program object.
Declaration
public static void UniformMatrix2(int location, bool transpose, ref Matrix2 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2 | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix2(Int32, Boolean, ref Matrix2d)
[requires: v4.0 or ARB_gpu_shader_fp64|VERSION_4_0] Specify the value of a Matrix2d uniform variable for the current program object.
Declaration
public static void UniformMatrix2(int location, bool transpose, ref Matrix2d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2d | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix2x3(Int32, Boolean, ref Matrix2x3)
[requires: v2.0] Specify the value of a Matrix2x3 uniform variable for the current program object.
Declaration
public static void UniformMatrix2x3(int location, bool transpose, ref Matrix2x3 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2x3 | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix2x3(Int32, Boolean, ref Matrix2x3d)
[requires: v4.0 or ARB_gpu_shader_fp64|VERSION_4_0] Specify the value of a Matrix2x3d uniform variable for the current program object.
Declaration
public static void UniformMatrix2x3(int location, bool transpose, ref Matrix2x3d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2x3d | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix2x4(Int32, Boolean, ref Matrix2x4)
[requires: v2.1] Specify the value of a Matrix2x4 uniform variable for the current program object.
Declaration
public static void UniformMatrix2x4(int location, bool transpose, ref Matrix2x4 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2x4 | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix2x4(Int32, Boolean, ref Matrix2x4d)
[requires: v4.0 or ARB_gpu_shader_fp64|VERSION_4_0] Specify the value of a Matrix2x4d uniform variable for the current program object.
Declaration
public static void UniformMatrix2x4(int location, bool transpose, ref Matrix2x4d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix2x4d | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix3(Int32, Boolean, ref Matrix3)
[requires: v2.0] Specify the value of a Matrix3 uniform variable for the current program object.
Declaration
public static void UniformMatrix3(int location, bool transpose, ref Matrix3 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3 | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix3(Int32, Boolean, ref Matrix3d)
[requires: v4.0 or ARB_gpu_shader_fp64|VERSION_4_0] Specify the value of a Matrix3 uniform variable for the current program object.
Declaration
public static void UniformMatrix3(int location, bool transpose, ref Matrix3d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3d | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix3x2(Int32, Boolean, ref Matrix3x2)
[requires: v2.1] Specify the value of a Matrix3x2 uniform variable for the current program object.
Declaration
public static void UniformMatrix3x2(int location, bool transpose, ref Matrix3x2 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3x2 | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix3x2(Int32, Boolean, ref Matrix3x2d)
[requires: v4.0 or ARB_gpu_shader_fp64|VERSION_4_0] Specify the value of a Matrix3x2d uniform variable for the current program object.
Declaration
public static void UniformMatrix3x2(int location, bool transpose, ref Matrix3x2d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3x2d | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix3x4(Int32, Boolean, ref Matrix3x4)
[requires: v2.1] Specify the value of a Matrix3 uniform variable for the current program object.
Declaration
public static void UniformMatrix3x4(int location, bool transpose, ref Matrix3x4 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3x4 | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix3x4(Int32, Boolean, ref Matrix3x4d)
[requires: v4.0 or ARB_gpu_shader_fp64|VERSION_4_0] Specify the value of a Matrix3x4d uniform variable for the current program object.
Declaration
public static void UniformMatrix3x4(int location, bool transpose, ref Matrix3x4d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix3x4d | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix4(Int32, Boolean, ref Matrix4)
[requires: v2.0] Specify the value of a Matrix4 uniform variable for the current program object.
Declaration
public static void UniformMatrix4(int location, bool transpose, ref Matrix4 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4 | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix4(Int32, Boolean, ref Matrix4d)
[requires: v4.0 or ARB_gpu_shader_fp64|VERSION_4_0] Specify the value of a Matrix4d uniform variable for the current program object.
Declaration
public static void UniformMatrix4(int location, bool transpose, ref Matrix4d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4d | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix4x2(Int32, Boolean, ref Matrix4x2)
[requires: v2.1] Specify the value of a Matrix4x2 uniform variable for the current program object.
Declaration
public static void UniformMatrix4x2(int location, bool transpose, ref Matrix4x2 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4x2 | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix4x2(Int32, Boolean, ref Matrix4x2d)
[requires: v4.0 or ARB_gpu_shader_fp64|VERSION_4_0] Specify the value of a Matrix4x2d uniform variable for the current program object.
Declaration
public static void UniformMatrix4x2(int location, bool transpose, ref Matrix4x2d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4x2d | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix4x3(Int32, Boolean, ref Matrix4x3)
[requires: v2.1] Specify the value of a Matrix4x3 uniform variable for the current program object.
Declaration
public static void UniformMatrix4x3(int location, bool transpose, ref Matrix4x3 matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4x3 | matrix | Specifies the new vector to be used for the specified uniform variable. |
UniformMatrix4x3(Int32, Boolean, ref Matrix4x3d)
[requires: v4.0 or ARB_gpu_shader_fp64|VERSION_4_0] Specify the value of a Matrix4x3d uniform variable for the current program object.
Declaration
public static void UniformMatrix4x3(int location, bool transpose, ref Matrix4x3d matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | location | Specifies the location of the uniform variable to be modified. |
System.Boolean | transpose | Whether or not the matrix should be transposed. |
Matrix4x3d | matrix | Specifies the new vector to be used for the specified uniform variable. |
Vertex2(Vector2)
[requires: v1.0][deprecated: v3.2] Specify a vertex.
Declaration
public static void Vertex2(Vector2 v)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | v | Specifies the x and y coordinates of a vertex. |
Vertex2(Vector2d)
[requires: v1.0][deprecated: v3.2] Specify a vertex.
Declaration
public static void Vertex2(Vector2d v)
Parameters
Type | Name | Description |
---|---|---|
Vector2d | v | Specifies the x and y coordinates of a vertex. |
Vertex3(Vector3)
[requires: v1.0][deprecated: v3.2] Specify a vertex.
Declaration
public static void Vertex3(Vector3 v)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | v | Specifies the x, y and z coordinates of a vertex. |
Vertex3(Vector3d)
[requires: v1.0][deprecated: v3.2] Specify a vertex.
Declaration
public static void Vertex3(Vector3d v)
Parameters
Type | Name | Description |
---|---|---|
Vector3d | v | Specifies the x, y and z coordinates of a vertex. |
Vertex4(Vector4)
[requires: v1.0][deprecated: v3.2] Specify a vertex.
Declaration
public static void Vertex4(Vector4 v)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | v | Specifies the x, y, z and w coordinates of a vertex. |
Vertex4(Vector4d)
[requires: v1.0][deprecated: v3.2] Specify a vertex.
Declaration
public static void Vertex4(Vector4d v)
Parameters
Type | Name | Description |
---|---|---|
Vector4d | v | Specifies the x, y, z and w coordinates of a vertex. |
VertexAttrib2(Int32, Vector2)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
public static void VertexAttrib2(int index, Vector2 v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector2 | v | Specifies the new x and y values to be used for the specified vertex attribute. |
VertexAttrib2(Int32, ref Vector2)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
[CLSCompliant(false)]
public static void VertexAttrib2(int index, ref Vector2 v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector2 | v | Specifies the new x and y values to be used for the specified vertex attribute. |
VertexAttrib2(Int32, Vector2d)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
public static void VertexAttrib2(int index, Vector2d v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector2d | v | Specifies the new x and y values to be used for the specified vertex attribute. |
VertexAttrib2(Int32, ref Vector2d)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
[CLSCompliant(false)]
public static void VertexAttrib2(int index, ref Vector2d v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector2d | v | Specifies the new x and y values to be used for the specified vertex attribute. |
VertexAttrib3(Int32, Vector3)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
public static void VertexAttrib3(int index, Vector3 v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector3 | v | Specifies the new x, y and z values to be used for the specified vertex attribute. |
VertexAttrib3(Int32, ref Vector3)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
[CLSCompliant(false)]
public static void VertexAttrib3(int index, ref Vector3 v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector3 | v | Specifies the new x, y and z values to be used for the specified vertex attribute. |
VertexAttrib3(Int32, Vector3d)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
public static void VertexAttrib3(int index, Vector3d v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector3d | v | Specifies the new x, y and z values to be used for the specified vertex attribute. |
VertexAttrib3(Int32, ref Vector3d)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
[CLSCompliant(false)]
public static void VertexAttrib3(int index, ref Vector3d v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector3d | v | Specifies the new x, y and z values to be used for the specified vertex attribute. |
VertexAttrib4(Int32, Vector4)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
public static void VertexAttrib4(int index, Vector4 v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector4 | v | Specifies the new x, y, z and w values to be used for the specified vertex attribute. |
VertexAttrib4(Int32, ref Vector4)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
[CLSCompliant(false)]
public static void VertexAttrib4(int index, ref Vector4 v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector4 | v | Specifies the new x, y, z and w values to be used for the specified vertex attribute. |
VertexAttrib4(Int32, Vector4d)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
public static void VertexAttrib4(int index, Vector4d v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector4d | v | Specifies the new x, y, z and w values to be used for the specified vertex attribute. |
VertexAttrib4(Int32, ref Vector4d)
[requires: v2.0] Specifies the value of a generic vertex attribute.
Declaration
[CLSCompliant(false)]
public static void VertexAttrib4(int index, ref Vector4d v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
Vector4d | v | Specifies the new x, y, z and w values to be used for the specified vertex attribute. |
VertexAttribPointer(Int32, Int32, VertexAttribPointerType, Boolean, Int32, Int32)
[requires: v2.0] Define an array of generic vertex attribute data.
Declaration
public static void VertexAttribPointer(int index, int size, VertexAttribPointerType type, bool normalized, int stride, int offset)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Specifies the index of the generic vertex attribute to be modified. |
System.Int32 | size | Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, 4. Additionally, the symbolic constant Bgra is accepted by glVertexAttribPointer. The initial value is 4. |
VertexAttribPointerType | type | Specifies the data type of each component in the array. The symbolic constants Byte, UnsignedByte, Short, UnsignedShort, Int, and UnsignedInt are accepted by glVertexAttribPointer and glVertexAttribIPointer. Additionally HalfFloat, Float, Double, Fixed, Int2101010Rev, UnsignedInt2101010Rev and UnsignedInt10F11F11FRev are accepted by glVertexAttribPointer. Double is also accepted by glVertexAttribLPointer and is the only token accepted by the type parameter for that function. The initial value is Float. |
System.Boolean | normalized | For glVertexAttribPointer, specifies whether fixed-point data values should be normalized (True) or converted directly as fixed-point values (False) when they are accessed. |
System.Int32 | stride | 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. |
System.Int32 | offset | Specifies the first component of the first generic vertex attribute in the array in the data store of the buffer currently bound to the ArrayBuffer target. The initial value is 0. |
VertexPointer(Int32, VertexPointerType, Int32, Int32)
[requires: v1.1][deprecated: v3.2] Define an array of vertex data.
Declaration
public static void VertexPointer(int size, VertexPointerType type, int stride, int offset)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | size | Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. |
VertexPointerType | type | Specifies the data type of each coordinate in the array. Symbolic constants Short, Int, Float, or Double are accepted. The initial value is Float. |
System.Int32 | stride | Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. |
System.Int32 | offset | Specifies the first coordinate of the first vertex in the array. The initial value is 0. |
Viewport(Point, Size)
[requires: v1.0] Set the viewport.
Declaration
public static void Viewport(Point location, Size size)
Parameters
Type | Name | Description |
---|---|---|
Point | location | Specifies the lower left corner of the viewport. |
Size | size | Specifies the width and height of the viewport. When a GL context is first attached to a window, width and height are set to the dimensions of that window. |
Viewport(Rectangle)
[requires: v1.0] Set the viewport.
Declaration
public static void Viewport(Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | rectangle | Specifies the lower left corner, as well as the width and height of the viewport. When a GL context is first attached to a window, width and height are set to the dimensions of that window. |
Viewport(Size)
[requires: v1.0] Set the viewport. This function assumes a lower left corner of (0, 0).
Declaration
public static void Viewport(Size size)
Parameters
Type | Name | Description |
---|---|---|
Size | size | Specifies the width and height of the viewport. When a GL context is first attached to a window, width and height are set to the dimensions of that window. |