Class ImGuiRenderUtils
Inheritance
Inherited Members
Namespace: InitialPrefabs.NimGui.Render
Assembly: InitialPrefabs.ImGui.dll
Syntax
public static class ImGuiRenderUtils
Methods
GetFontFace()
The primary font face used for rendering the entire UI.
Declaration
public static ref ImFontFace GetFontFace()
Returns
| Type | Description |
|---|---|
| ImFontFace | A reference to the FontFace. |
GetGlyphs()
The primary glyphs associated with the FontFace. All glyphs are sorted with their unicode values.
Declaration
public static UnsafeArray<ImGlyph> GetGlyphs()
Returns
| Type | Description |
|---|---|
| InitialPrefabs.NimGui.Collections.UnsafeArray<ImGlyph> | The sorted glyphs. |
GetMaterial()
The primary material used for rendering the entire UI.
Declaration
public static Material GetMaterial()
Returns
| Type | Description |
|---|---|
| UnityEngine.Material | A reference to the material. |
PushCheckmark(ImWindow, in ImRect, in Color32, Single)
Queues a draw command to draw a checkmark.
Declaration
public static void PushCheckmark(this ImWindow window, in ImRect rect, in Color32 color, float cutoff = 0.5F)
Parameters
| Type | Name | Description |
|---|---|---|
| ImWindow | window | The window to enqueue the draw command to. |
| ImRect | rect | The size of the checkmark. |
| UnityEngine.Color32 | color | The color of the checkmark. |
| System.Single | cutoff | Optional cutoff, typically this should be set to 0.5 for minimal cutoff. |
PushHamburgerMenu(ImWindow, in ImRect, in Color32, Single)
Queues a draw command to draw an X.
Declaration
public static void PushHamburgerMenu(this ImWindow window, in ImRect rect, in Color32 color, float cutoff = 0.5F)
Parameters
| Type | Name | Description |
|---|---|---|
| ImWindow | window | The window to enqueue to draw command to. |
| ImRect | rect | The size of the x. |
| UnityEngine.Color32 | color | The color of the x. |
| System.Single | cutoff | Optional cutoff, typically this should be set to 0.5 for minimal cutoff. |
PushSolidBox(ImWindow, in ImRect, in Color32, Single)
Queues a draw command to draw a solid colored box.
Declaration
public static void PushSolidBox(this ImWindow window, in ImRect rect, in Color32 color, float cutoff = 0F)
Parameters
| Type | Name | Description |
|---|---|---|
| ImWindow | window | The window to enqueue the draw command to. |
| ImRect | rect | The size of the box. |
| UnityEngine.Color32 | color | The color of the box. |
| System.Single | cutoff | Optional cutoff, typically this should be set to 0 for no cutoff. |
PushX(ImWindow, in ImRect, in Color32, Single)
Queues a draw command to draw an X.
Declaration
public static void PushX(this ImWindow window, in ImRect rect, in Color32 color, float cutoff = 0.5F)
Parameters
| Type | Name | Description |
|---|---|---|
| ImWindow | window | The window to enqueue to draw command to. |
| ImRect | rect | The size of the x. |
| UnityEngine.Color32 | color | The color of the x. |
| System.Single | cutoff | Optional cutoff, typically this should be set to 0.5 for minimal cutoff. |