Show / Hide Table of Contents

Struct ImDrawData

Stores universal data for all elements rendered.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: InitialPrefabs.NimGui.Render
Assembly: InitialPrefabs.ImGui.dll
Syntax
public struct ImDrawData

Fields

Arguments

Extraneous arguments to help decipher the draw data. This is arbitrary data.

Declaration
public sbyte Arguments
Field Value
Type Description
System.SByte

Color

Stores the vertex color of the mesh.

Declaration
public Color32 Color
Field Value
Type Description
UnityEngine.Color32

Cutoff

Since we are using SDFs, it is important that each element in a "draw call" determine the cutoff for the SDF.

For example, with text, you may want a cutoff of 0.5. But for solid blocks, you may want a cutoff of 0 so that the rect is full.

Declaration
public float Cutoff
Field Value
Type Description
System.Single

Rect

Stores the general bounds of the UI element.

Declaration
public ImRect Rect
Field Value
Type Description
ImRect

Type

Stores the type of element we intend to render

Declaration
public ImDrawCommandType Type
Field Value
Type Description
ImDrawCommandType
In This Article
Back to top Generated by DocFX