GraphicsContext 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.
Represents and provides methods to manipulate an OpenGL render context.
public sealed class GraphicsContext : IDisposable, OpenTK.Graphics.IGraphicsContext, OpenTK.Graphics.IGraphicsContextInternal
type GraphicsContext = class
interface IGraphicsContext
interface IDisposable
interface IGraphicsContextInternal
- Inheritance
-
GraphicsContext
- Implements
Constructors
Properties
CurrentContext |
Gets the GraphicsContext that is current in the calling thread. |
DirectRendering |
Gets or sets a System.Boolean, indicating whether GraphicsContexts will perform direct rendering. |
ErrorChecking |
Gets or sets a System.Boolean, indicating whether automatic error checking should be performed. Influences the debug version of OpenTK.dll, only. |
GraphicsMode |
Gets the GraphicsMode of the context. |
IsCurrent |
Gets a Boolean indicating whether this instance is current in the calling thread. |
IsDisposed |
Gets a Boolean indicating whether this instance has been disposed. It is an error to access any instance methods if this property returns true. |
ShareContexts |
Gets or sets a System.Boolean, indicating whether GraphicsContext resources are shared |
SwapInterval | |
VSync |
Obsolete.
Gets or sets a value indicating whether VSync is enabled. |
Methods
Assert() |
Checks if a GraphicsContext exists in the calling thread and throws a GraphicsContextMissingException if it doesn't. |
CreateDummyContext() | |
CreateDummyContext(ContextHandle) | |
Dispose() |
Disposes of the GraphicsContext. |
Equals(Object) | |
Finalize() | |
GetHashCode() | |
LoadAll() | |
MakeCurrent(IWindowInfo) | |
SwapBuffers() |
Swaps buffers on a context. This presents the rendered scene to the user. |
ToString() | |
Update(IWindowInfo) |
Explicit Interface Implementations
IGraphicsContextInternal.Context |
Gets a handle to the OpenGL rendering context. |
IGraphicsContextInternal.GetAddress(String) |
Gets the address of an OpenGL extension function. |
IGraphicsContextInternal.Implementation |
Gets the platform-specific implementation of this IGraphicsContext. |