SKGLControl Constructors
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.
Overloads
| Name | Description |
|---|---|
| SKGLControl() |
Initializes a new instance of the SKGLControl class. |
| SKGLControl(GraphicsMode) |
Initializes a new instance of the SKGLControl class with the specified graphics mode. |
| SKGLControl(GraphicsMode, Int32, Int32, GraphicsContextFlags) |
Initializes a new instance of the SKGLControl class with the specified graphics mode, OpenGL version, and context flags. |
SKGLControl()
SKGLControl(GraphicsMode)
Initializes a new instance of the SKGLControl class with the specified graphics mode.
public SKGLControl(OpenTK.Graphics.GraphicsMode mode);
Parameters
- mode
- GraphicsMode
The OpenTK graphics mode that defines the color, depth, stencil, and accumulation buffer configuration for the control.
Applies to
SKGLControl(GraphicsMode, Int32, Int32, GraphicsContextFlags)
Initializes a new instance of the SKGLControl class with the specified graphics mode, OpenGL version, and context flags.
public SKGLControl(OpenTK.Graphics.GraphicsMode mode, int major, int minor, OpenTK.Graphics.GraphicsContextFlags flags);
Parameters
- mode
- GraphicsMode
The OpenTK graphics mode that defines the color, depth, stencil, and accumulation buffer configuration.
- major
- Int32
The major version number of the OpenGL context to create.
- minor
- Int32
The minor version number of the OpenGL context to create.
- flags
- GraphicsContextFlags
A bitwise combination of GraphicsContextFlags values that control context creation.