Class WebWindowsSystem
Web windows system.
Implements
Inherited Members
Namespace: Evergine.Web
Assembly: Evergine.Web.dll
Syntax
public class WebWindowsSystem : WindowsSystem, IGetNativePointers
Constructors
WebWindowsSystem()
Initializes a new instance of the WebWindowsSystem class.
Declaration
public WebWindowsSystem()
Methods
CreateLoopThread(Action, Action)
Creates a looping thread.
Declaration
protected override void CreateLoopThread(Action loadAction, Action renderCallback)
Parameters
Type | Name | Description |
---|---|---|
Action | loadAction | The loading action. |
Action | renderCallback | The rendering callback action. |
Overrides
CreateSurface(object)
Creates a WebGL rendering context from a canvas element nativeSurface
with its original
size.
Declaration
public override Surface CreateSurface(object nativeSurface)
Parameters
Type | Name | Description |
---|---|---|
object | nativeSurface | The canvas element. |
Returns
Type | Description |
---|---|
Surface | The surface. |
Overrides
CreateSurface(uint, uint)
Creates a surface.
Declaration
public override Surface CreateSurface(uint width, uint height)
Parameters
Type | Name | Description |
---|---|---|
uint | width | The width of the surface. |
uint | height | The height of the surface. |
Returns
Type | Description |
---|---|
Surface | A surface instance. |
Overrides
CreateWindow(string, uint, uint, bool)
Creates a window.
Declaration
public override Window CreateWindow(string title, uint width, uint height, bool visible = true)
Parameters
Type | Name | Description |
---|---|---|
string | title | Window title. |
uint | width | Window width. |
uint | height | Window height. |
bool | visible | Window visibility. |
Returns
Type | Description |
---|---|
Window | Window instance. |
Overrides
Destroy()
Destroys all resources.
Declaration
protected override void Destroy()