Show / Hide Table of Contents

Class ImGuiController

Inheritance
System.Object
ImGuiController
Implements
System.IDisposable
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.ImGuiImp.Desktop
Assembly: Fusee.ImGuiImp.Desktop.dll
Syntax
public class ImGuiController : IDisposable

Constructors

ImGuiController(GameWindow)

Declaration
public ImGuiController(GameWindow gw)
Parameters
Type Name Description
GameWindow gw

Fields

GameWindowHeight

Declaration
public int GameWindowHeight
Field Value
Type Description
System.Int32

GameWindowWidth

Declaration
public int GameWindowWidth
Field Value
Type Description
System.Int32

RecreateFontAtlas

Triggers the recreation of the FontAtlas in the next Update and before ImGui.NextFrame is called. CAUTION: do not try to load and use a new font in the same frame - this will cause a Access Violation.

Declaration
public static bool RecreateFontAtlas
Field Value
Type Description
System.Boolean

Methods

Dispose()

Declaration
public void Dispose()

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

Finalize()

Declaration
protected void Finalize()

InitImGUI(Int32, String)

Init ImGui controller, set font size in px and font texture here

Declaration
public void InitImGUI(int fontSize = 14, string pathToFontTexture = "")
Parameters
Type Name Description
System.Int32 fontSize

size in px

System.String pathToFontTexture

path to texture (e. g. "Assets/Lato-Black.ttf")

RenderImGui()

Declaration
public void RenderImGui()

UpdateImGui(Single)

Declaration
public void UpdateImGui(float DeltaTimeUpdate)
Parameters
Type Name Description
System.Single DeltaTimeUpdate

WindowResized(Int32, Int32)

Declaration
public void WindowResized(int width, int height)
Parameters
Type Name Description
System.Int32 width
System.Int32 height

Implements

System.IDisposable
Generated by DocFX
GitHub Repo
Back to top