Class PlatformComponents
Used to create platform specific version of components.
Inherited Members
Namespace: OpenTK.Platform.Native
Assembly: OpenTK.Platform.dll
Syntax
public static class PlatformComponents
Properties
PreferANGLE
Declaration
public static bool PreferANGLE { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
PreferSDL2
Set this to true to prefer loading the SDL backend on all platforms. We will fall back to platform specifc backends if SDL cannot be loaded.
Declaration
public static bool PreferSDL2 { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
CreateClipboardComponent()
Creates a platform specific component.
Declaration
public static IClipboardComponent CreateClipboardComponent()
Returns
| Type | Description |
|---|---|
| IClipboardComponent | The platform specific component |
CreateCursorComponent()
Creates a platform specific component.
Declaration
public static ICursorComponent CreateCursorComponent()
Returns
| Type | Description |
|---|---|
| ICursorComponent | The platform specific component |
CreateDialogComponent()
Creates a platform specific component.
Declaration
public static IDialogComponent CreateDialogComponent()
Returns
| Type | Description |
|---|---|
| IDialogComponent | The platform specific component |
CreateDisplayComponent()
Creates a platform specific component.
Declaration
public static IDisplayComponent CreateDisplayComponent()
Returns
| Type | Description |
|---|---|
| IDisplayComponent | The platform specific component |
CreateIconComponent()
Creates a platform specific component.
Declaration
public static IIconComponent CreateIconComponent()
Returns
| Type | Description |
|---|---|
| IIconComponent | The platform specific component |
CreateJoystickComponent()
Creates a platform specific component.
Declaration
public static IJoystickComponent CreateJoystickComponent()
Returns
| Type | Description |
|---|---|
| IJoystickComponent | The platform specific component |
CreateKeyboardComponent()
Creates a platform specific component.
Declaration
public static IKeyboardComponent CreateKeyboardComponent()
Returns
| Type | Description |
|---|---|
| IKeyboardComponent | The platform specific component |
CreateMouseComponent()
Creates a platform specific component.
Declaration
public static IMouseComponent CreateMouseComponent()
Returns
| Type | Description |
|---|---|
| IMouseComponent | The platform specific component |
CreateOpenGLComponent()
Creates a platform specific component.
Declaration
public static IOpenGLComponent CreateOpenGLComponent()
Returns
| Type | Description |
|---|---|
| IOpenGLComponent | The platform specific component |
CreateShellComponent()
Creates a platform specific component.
Declaration
public static IShellComponent CreateShellComponent()
Returns
| Type | Description |
|---|---|
| IShellComponent | The platform specific component |
CreateSurfaceComponent()
Creates a platform specific component.
Declaration
public static ISurfaceComponent CreateSurfaceComponent()
Returns
| Type | Description |
|---|---|
| ISurfaceComponent | The platform specific component |
CreateVulkanComponent()
Creates a platform specific component.
Declaration
public static IVulkanComponent CreateVulkanComponent()
Returns
| Type | Description |
|---|---|
| IVulkanComponent | The platform specific component |
CreateWindowComponent()
Creates a platform specific component.
Declaration
public static IWindowComponent CreateWindowComponent()
Returns
| Type | Description |
|---|---|
| IWindowComponent | The platform specific component |
GetBackend()
Returns the backend that will be used to create components.
Declaration
public static Backend GetBackend()
Returns
| Type | Description |
|---|---|
| Backend | The backend that will be used to create components. |