編輯

共用方式為


GL Class

Definition

Provides access to OpenGL ES 1.1 methods.

public sealed class GL : OpenTK.Graphics.GraphicsBindingsBase
type GL = class
    inherit GraphicsBindingsBase
Inheritance

Remarks

This class contains all OpenGL enums and functions defined in the 3.1 specification. The official .spec files can be found at: https://opengl.org/registry/.

A valid OpenGL context must be created before calling any OpenGL function.

Use the ES.Load and ES.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 ES.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 ES.GetDelegate method.

Opengl.org/Registry

Constructors

GL()

Fields

Library

Properties

SyncRoot (Inherited from BindingsBase)

Methods

ActiveTexture(All)
AlphaFunc(All, Single)
AlphaFuncx(All, Int32)
BindBuffer(All, Int32)
BindBuffer(All, UInt32)
BindTexture(All, Int32)
BindTexture(All, UInt32)
BlendFunc(All, All)
BufferData(All, IntPtr, IntPtr, All)
BufferData<T2>(All, IntPtr, T2, All)
BufferData<T2>(All, IntPtr, T2[,,], All)
BufferData<T2>(All, IntPtr, T2[,], All)
BufferData<T2>(All, IntPtr, T2[], All)
BufferSubData(All, IntPtr, IntPtr, IntPtr)
BufferSubData<T3>(All, IntPtr, IntPtr, T3)
BufferSubData<T3>(All, IntPtr, IntPtr, T3[,,])
BufferSubData<T3>(All, IntPtr, IntPtr, T3[,])
BufferSubData<T3>(All, IntPtr, IntPtr, T3[])
Clear(ClearBufferMask)
Clear(Int32)
Clear(UInt32)
ClearColor(Single, Single, Single, Single)
ClearColorx(Int32, Int32, Int32, Int32)
ClearDepth(Single)
ClearDepthx(Int32)
ClearStencil(Int32)
ClientActiveTexture(All)
ClipPlane(All, Single)
ClipPlane(All, Single[])
ClipPlane(All, Single*)
ClipPlanex(All, Int32)
ClipPlanex(All, Int32[])
ClipPlanex(All, Int32*)
Color4(Byte, Byte, Byte, Byte)
Color4(Single, Single, Single, Single)
Color4x(Int32, Int32, Int32, Int32)
ColorMask(Boolean, Boolean, Boolean, Boolean)
ColorPointer(Int32, All, Int32, IntPtr)
ColorPointer<T3>(Int32, All, Int32, T3)
ColorPointer<T3>(Int32, All, Int32, T3[,,])
ColorPointer<T3>(Int32, All, Int32, T3[,])
ColorPointer<T3>(Int32, All, Int32, T3[])
CompressedTexImage2D(All, Int32, All, Int32, Int32, Int32, Int32, IntPtr)
CompressedTexImage2D<T7>(All, Int32, All, Int32, Int32, Int32, Int32, T7)
CompressedTexImage2D<T7>(All, Int32, All, Int32, Int32, Int32, Int32, T7[,,])
CompressedTexImage2D<T7>(All, Int32, All, Int32, Int32, Int32, Int32, T7[,])
CompressedTexImage2D<T7>(All, Int32, All, Int32, Int32, Int32, Int32, T7[])
CompressedTexSubImage2D(All, Int32, Int32, Int32, Int32, Int32, All, Int32, IntPtr)
CompressedTexSubImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, Int32, T8)
CompressedTexSubImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, Int32, T8[,,])
CompressedTexSubImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, Int32, T8[,])
CompressedTexSubImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, Int32, T8[])
CopyTexImage2D(All, Int32, All, Int32, Int32, Int32, Int32, Int32)
CopyTexSubImage2D(All, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
CullFace(All)
DeleteBuffers(Int32, Int32)
DeleteBuffers(Int32, Int32[])
DeleteBuffers(Int32, Int32*)
DeleteBuffers(Int32, UInt32)
DeleteBuffers(Int32, UInt32[])
DeleteBuffers(Int32, UInt32*)
DeleteTextures(Int32, Int32)
DeleteTextures(Int32, Int32[])
DeleteTextures(Int32, Int32*)
DeleteTextures(Int32, UInt32)
DeleteTextures(Int32, UInt32[])
DeleteTextures(Int32, UInt32*)
DepthFunc(All)
DepthMask(Boolean)
DepthRange(Single, Single)
DepthRangex(Int32, Int32)
Disable(All)
DisableClientState(All)
DrawArrays(All, Int32, Int32)
DrawElements(All, Int32, All, IntPtr)
DrawElements<T3>(All, Int32, All, T3)
DrawElements<T3>(All, Int32, All, T3[,,])
DrawElements<T3>(All, Int32, All, T3[,])
DrawElements<T3>(All, Int32, All, T3[])
Enable(All)
EnableClientState(All)
Finish()
Flush()
Fog(All, Single)
Fog(All, Single[])
Fog(All, Single*)
Fogx(All, Int32)
Fogx(All, Int32[])
Fogx(All, Int32*)
FrontFace(All)
Frustum(Single, Single, Single, Single, Single, Single)
Frustumx(Int32, Int32, Int32, Int32, Int32, Int32)
GenBuffers(Int32, Int32)
GenBuffers(Int32, Int32[])
GenBuffers(Int32, Int32*)
GenBuffers(Int32, UInt32)
GenBuffers(Int32, UInt32[])
GenBuffers(Int32, UInt32*)
GenTextures(Int32, Int32)
GenTextures(Int32, Int32[])
GenTextures(Int32, Int32*)
GenTextures(Int32, UInt32)
GenTextures(Int32, UInt32[])
GenTextures(Int32, UInt32*)
GetBoolean(All, Boolean)
GetBoolean(All, Boolean[])
GetBoolean(All, Boolean*)
GetBufferParameter(All, All, Int32)
GetBufferParameter(All, All, Int32[])
GetBufferParameter(All, All, Int32*)
GetClipPlane(All, Single)
GetClipPlane(All, Single[])
GetClipPlane(All, Single*)
GetClipPlanex(All, Int32)
GetClipPlanex(All, Int32[])
GetClipPlanex(All, Int32*)
GetError()
GetFixed(All, Int32)
GetFixed(All, Int32[])
GetFixed(All, Int32*)
GetFloat(All, Single)
GetFloat(All, Single[])
GetFloat(All, Single*)
GetInteger(All, Int32)
GetInteger(All, Int32[])
GetInteger(All, Int32*)
GetLight(All, All, Single)
GetLight(All, All, Single[])
GetLight(All, All, Single*)
GetLightx(All, All, Int32)
GetLightx(All, All, Int32[])
GetLightx(All, All, Int32*)
GetMaterial(All, All, Single)
GetMaterial(All, All, Single[])
GetMaterial(All, All, Single*)
GetMaterialx(All, All, Int32)
GetMaterialx(All, All, Int32[])
GetMaterialx(All, All, Int32*)
GetPointer(All, IntPtr)
GetPointer<T1>(All, T1)
GetPointer<T1>(All, T1[,,])
GetPointer<T1>(All, T1[,])
GetPointer<T1>(All, T1[])
GetString(All)
GetTexEnv(All, All, Int32)
GetTexEnv(All, All, Int32[])
GetTexEnv(All, All, Int32*)
GetTexEnv(All, All, Single)
GetTexEnv(All, All, Single[])
GetTexEnv(All, All, Single*)
GetTexEnvx(All, All, Int32)
GetTexEnvx(All, All, Int32[])
GetTexEnvx(All, All, Int32*)
GetTexParameter(All, All, Int32)
GetTexParameter(All, All, Int32[])
GetTexParameter(All, All, Int32*)
GetTexParameter(All, All, Single)
GetTexParameter(All, All, Single[])
GetTexParameter(All, All, Single*)
GetTexParameterx(All, All, Int32)
GetTexParameterx(All, All, Int32[])
GetTexParameterx(All, All, Int32*)
Hint(All, All)
IsBuffer(Int32)
IsBuffer(UInt32)
IsEnabled(All)
IsTexture(Int32)
IsTexture(UInt32)
Light(All, All, Single)
Light(All, All, Single[])
Light(All, All, Single*)
LightModel(All, Single)
LightModel(All, Single[])
LightModel(All, Single*)
LightModelx(All, Int32)
LightModelx(All, Int32[])
LightModelx(All, Int32*)
Lightx(All, All, Int32)
Lightx(All, All, Int32[])
Lightx(All, All, Int32*)
LineWidth(Single)
LineWidthx(Int32)
LoadIdentity()
LoadMatrix(Single)
LoadMatrix(Single[])
LoadMatrix(Single*)
LoadMatrixx(Int32)
LoadMatrixx(Int32[])
LoadMatrixx(Int32*)
LogicOp(All)
Material(All, All, Single)
Material(All, All, Single[])
Material(All, All, Single*)
Materialx(All, All, Int32)
Materialx(All, All, Int32[])
Materialx(All, All, Int32*)
MatrixMode(All)
MultiTexCoord4(All, Single, Single, Single, Single)
MultiTexCoord4x(All, Int32, Int32, Int32, Int32)
MultMatrix(Single)
MultMatrix(Single[])
MultMatrix(Single*)
MultMatrixx(Int32)
MultMatrixx(Int32[])
MultMatrixx(Int32*)
Normal3(Single, Single, Single)
Normal3x(Int32, Int32, Int32)
NormalPointer(All, Int32, IntPtr)
NormalPointer<T2>(All, Int32, T2)
NormalPointer<T2>(All, Int32, T2[,,])
NormalPointer<T2>(All, Int32, T2[,])
NormalPointer<T2>(All, Int32, T2[])
Ortho(Single, Single, Single, Single, Single, Single)
Orthox(Int32, Int32, Int32, Int32, Int32, Int32)
PixelStore(All, Int32)
PointParameter(All, Single)
PointParameter(All, Single[])
PointParameter(All, Single*)
PointParameterx(All, Int32)
PointParameterx(All, Int32[])
PointParameterx(All, Int32*)
PointSize(Single)
PointSizex(Int32)
PolygonOffset(Single, Single)
PolygonOffsetx(Int32, Int32)
PopMatrix()
PushMatrix()
ReadPixels(Int32, Int32, Int32, Int32, All, All, IntPtr)
ReadPixels<T6>(Int32, Int32, Int32, Int32, All, All, T6)
ReadPixels<T6>(Int32, Int32, Int32, Int32, All, All, T6[,,])
ReadPixels<T6>(Int32, Int32, Int32, Int32, All, All, T6[,])
ReadPixels<T6>(Int32, Int32, Int32, Int32, All, All, T6[])
Rotate(Single, Single, Single, Single)
Rotatex(Int32, Int32, Int32, Int32)
SampleCoverage(Single, Boolean)
SampleCoveragex(Int32, Boolean)
Scale(Single, Single, Single)
Scalex(Int32, Int32, Int32)
Scissor(Int32, Int32, Int32, Int32)
ShadeModel(All)
StencilFunc(All, Int32, Int32)
StencilFunc(All, Int32, UInt32)
StencilMask(Int32)
StencilMask(UInt32)
StencilOp(All, All, All)
TexCoordPointer(Int32, All, Int32, IntPtr)
TexCoordPointer<T3>(Int32, All, Int32, T3)
TexCoordPointer<T3>(Int32, All, Int32, T3[,,])
TexCoordPointer<T3>(Int32, All, Int32, T3[,])
TexCoordPointer<T3>(Int32, All, Int32, T3[])
TexEnv(All, All, Int32)
TexEnv(All, All, Int32[])
TexEnv(All, All, Int32*)
TexEnv(All, All, Single)
TexEnv(All, All, Single[])
TexEnv(All, All, Single*)
TexEnvx(All, All, Int32)
TexEnvx(All, All, Int32[])
TexEnvx(All, All, Int32*)
TexImage2D(All, Int32, Int32, Int32, Int32, Int32, All, All, IntPtr)
TexImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, All, T8)
TexImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, All, T8[,,])
TexImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, All, T8[,])
TexImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, All, T8[])
TexParameter(All, All, Int32)
TexParameter(All, All, Int32[])
TexParameter(All, All, Int32*)
TexParameter(All, All, Single)
TexParameter(All, All, Single[])
TexParameter(All, All, Single*)
TexParameterx(All, All, Int32)
TexParameterx(All, All, Int32[])
TexParameterx(All, All, Int32*)
TexSubImage2D(All, Int32, Int32, Int32, Int32, Int32, All, All, IntPtr)
TexSubImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, All, T8)
TexSubImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, All, T8[,,])
TexSubImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, All, T8[,])
TexSubImage2D<T8>(All, Int32, Int32, Int32, Int32, Int32, All, All, T8[])
Translate(Single, Single, Single)
Translatex(Int32, Int32, Int32)
VertexPointer(Int32, All, Int32, IntPtr)
VertexPointer<T3>(Int32, All, Int32, T3)
VertexPointer<T3>(Int32, All, Int32, T3[,,])
VertexPointer<T3>(Int32, All, Int32, T3[,])
VertexPointer<T3>(Int32, All, Int32, T3[])
Viewport(Int32, Int32, Int32, Int32)

Applies to

See also

  • <xref:OpenTK.Graphics.ES11.ES.SupportsExtension(System.String)>
  • <xref:OpenTK.Graphics.ES11.ES.GetDelegate(System.String)>
  • <xref:OpenTK.Graphics.ES11.ES.LoadAll>
  • <xref:OpenTK.Graphics.ES11.ES.Load(System.String)>