Interface IGraphicsContext
Defines the interface for OpenGL context management.
Namespace: OpenTK.Windowing.Common
Assembly: OpenTK.Windowing.Common.dll
Syntax
public interface IGraphicsContext
Properties
IsCurrent
Gets a value indicating whether the context is the current active on of the current thread.
Declaration
bool IsCurrent { get; }
Property Value
Type | Description |
---|---|
bool |
SwapInterval
Gets or sets the swap interval (the number of screen updates to wait between swapping front and back buffers. See SwapBuffers()).
Declaration
int SwapInterval { get; set; }
Property Value
Type | Description |
---|---|
int | The swap interval. |
Methods
MakeCurrent()
Makes the GraphicsContext current on the calling thread.
Declaration
void MakeCurrent()
MakeNoneCurrent()
Makes no GraphicsContext current one on the calling thread.
Declaration
void MakeNoneCurrent()
SwapBuffers()
Swaps the front and back buffers of the current GraphicsContext, presenting the rendered scene to the user.
Declaration
void SwapBuffers()