GL Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Constructors
GL() |
Fields
Library |
Properties
SyncRoot | (Inherited from BindingsBase) |
Methods
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)>