Provides methods for creating and interacting with an OpenGL context. More...
Public Member Functions | |
| void | SwapBuffers () |
| Swaps buffers, presenting the rendered scene to the user. | |
| void | MakeCurrent (IWindowInfo window) |
| Makes the GraphicsContext current in the calling thread. | |
| void | Update (IWindowInfo window) |
| Updates the graphics context. This must be called when the region the graphics context is drawn to is resized. | |
Properties | |
| bool | IsCurrent [get] |
| Gets a System.Boolean indicating whether this instance is current in the calling thread. | |
| bool | IsDisposed [get] |
| Gets a System.Boolean indicating whether this instance has been disposed. It is an error to access any instance methods if this property returns true. | |
| bool | VSync [get, set] |
| Gets or sets a value indicating whether VSyncing is enabled. | |
| GraphicsMode | GraphicsMode [get] |
| Gets the GraphicsMode of this instance. | |
| bool | ErrorChecking [get, set] |
| Gets or sets a System.Boolean, indicating whether automatic error checking should be performed. | |
Provides methods for creating and interacting with an OpenGL context.
Definition at line 20 of file IGraphicsContext.cs.
| void OpenTK.Graphics.IGraphicsContext.MakeCurrent | ( | IWindowInfo | window | ) |
Makes the GraphicsContext current in the calling thread.
| window | An OpenTK.Platform.IWindowInfo structure that points to a valid window. |
OpenGL commands in one thread, affect the GraphicsContext which is current in that thread.
It is an error to issue an OpenGL command in a thread without a current GraphicsContext.
Implemented in OpenTK.Graphics.GraphicsContext.
| void OpenTK.Graphics.IGraphicsContext.SwapBuffers | ( | ) |
Swaps buffers, presenting the rendered scene to the user.
Implemented in OpenTK.Graphics.GraphicsContext.
| void OpenTK.Graphics.IGraphicsContext.Update | ( | IWindowInfo | window | ) |
Updates the graphics context. This must be called when the region the graphics context is drawn to is resized.
| window |
Implemented in OpenTK.Graphics.GraphicsContext.
bool OpenTK.Graphics.IGraphicsContext.ErrorChecking [get, set] |
Gets or sets a System.Boolean, indicating whether automatic error checking should be performed.
It is an error to enable error checking inside a Begin()-End() region.
This method only affects the debug version of OpenTK.dll.
Implemented in OpenTK.Graphics.GraphicsContext.
Definition at line 66 of file IGraphicsContext.cs.
GraphicsMode OpenTK.Graphics.IGraphicsContext.GraphicsMode [get] |
Gets the GraphicsMode of this instance.
Implemented in OpenTK.Graphics.GraphicsContext.
Definition at line 57 of file IGraphicsContext.cs.
bool OpenTK.Graphics.IGraphicsContext.IsCurrent [get] |
Gets a System.Boolean indicating whether this instance is current in the calling thread.
Implemented in OpenTK.Graphics.GraphicsContext.
Definition at line 36 of file IGraphicsContext.cs.
bool OpenTK.Graphics.IGraphicsContext.IsDisposed [get] |
Gets a System.Boolean indicating whether this instance has been disposed. It is an error to access any instance methods if this property returns true.
Implemented in OpenTK.Graphics.GraphicsContext.
Definition at line 42 of file IGraphicsContext.cs.
bool OpenTK.Graphics.IGraphicsContext.VSync [get, set] |
Gets or sets a value indicating whether VSyncing is enabled.
Implemented in OpenTK.Graphics.GraphicsContext.
Definition at line 47 of file IGraphicsContext.cs.
1.6.1