Class BlazorProgramm
A BlazorProgramm contains some runtime variables, like canvasName, the canvas clear color as well as the render loop action
Inheritance
System.Object
BlazorProgramm
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Base.Imp.Blazor
Assembly: Fusee.Engine.Imp.Graphics.Blazor.dll
Syntax
public class BlazorProgramm
Fields
Runtime
The JS Runtime
Declaration
public static IJSRuntime Runtime
Field Value
Type | Description |
---|---|
IJSRuntime |
Methods
Loop(Double)
Main application loop, triggered via Javascript RequestAnimationFrame Runs with 60 fps if possible
Declaration
public void Loop(double milliseconds = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Double | milliseconds |
OnResize(Int32, Int32)
Called on resize from Javascript
Declaration
public static void OnResize(int newX, int newY)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | newX | |
System.Int32 | newY |
Start(BlazorBase, IJSRuntime)
Starts the WASM program
Declaration
public void Start(BlazorBase wasm, IJSRuntime runtime)
Parameters
Type | Name | Description |
---|---|---|
BlazorBase | wasm | |
IJSRuntime | runtime |