Class GFX
- Namespace
- LibGFX
- Assembly
- LibGFX.dll
Singleton class for managing graphics resources and window creation.
public class GFX
- Inheritance
-
GFX
- Inherited Members
Properties
Instance
Singleton instance of the GFX class.
public static GFX Instance { get; }
Property Value
Services
The service container for managing services.
public ServiceContainer Services { get; }
Property Value
Methods
CreateWindow(string, Viewport, WindowState)
Creates a new window with the specified title, viewport, and window state.
public Window CreateWindow(string title, Viewport viewport, Window.WindowState windowState)
Parameters
titlestringviewportViewportwindowStateWindow.WindowState
Returns
Dispose()
Disposes the GFX instance and clears all assets.
public void Dispose()
GetDeltaTime()
Gets the delta time since the last frame in seconds.
public float GetDeltaTime()
Returns
GetWindow()
Gets the current window.
public Window GetWindow()
Returns
Exceptions
SetTime(float)
Sets the current time in seconds.
public void SetTime(float time)
Parameters
timefloat