Table of Contents

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

GFX

Services

The service container for managing services.

public ServiceContainer Services { get; }

Property Value

ServiceContainer

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

title string
viewport Viewport
windowState Window.WindowState

Returns

Window

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

float

GetWindow()

Gets the current window.

public Window GetWindow()

Returns

Window

Exceptions

InvalidOperationException

SetTime(float)

Sets the current time in seconds.

public void SetTime(float time)

Parameters

time float