Interface IBackend
Platform API operations
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public interface IBackend
Properties
GraphicsApi
Returns the current Graphics API in use
Declaration
GraphicsApi GraphicsApi { get; }
Property Value
| Type | Description |
|---|---|
| GraphicsApi |
Methods
IsGraphicsApiSupported(GraphicsApi)
Returns whether a certain Graphis API is supported by the current platform
Declaration
bool IsGraphicsApiSupported(GraphicsApi api)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsApi | api | The Graphis API to test |
Returns
| Type | Description |
|---|---|
| System.Boolean |
SetGraphicsApi(GraphicsApi)
Sets new Graphis API (will not action if platform is not supported or requested API is the same as that currently in use) Note: upon any API change, all framework resources will be destroyed and a call to [re-]CreateResources in the application will be made
Declaration
void SetGraphicsApi(GraphicsApi api)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsApi | api | The Graphis API requested |