// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable using System.Runtime.CompilerServices; namespace Brutal.ImGuiApi { /// /// /// A single vertex (pos + uv + col = 20 bytes by default. Override layout with /// IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT) /// /// /// C++: /// imgui.h:180 ///
struct ImDrawVert ///
///
/// /// /// Forward declarations: ImDrawList, ImFontAtlas layer /// /// [StructLayout(LayoutKind.Explicit, Size = 20)] public partial struct ImDrawVert { /// /// /// C++: /// imgui.h:3258 ///
ImVec2 pos ///
///
/// /// /// Vertex layout /// /// [FieldOffset(0)] public float2 pos; /// /// /// C++: /// imgui.h:3259 ///
ImVec2 uv ///
///
/// /// /// Vertex layout /// /// [FieldOffset(8)] public float2 uv; /// /// /// C++: /// imgui.h:3260 ///
ImU32 col ///
///
/// /// /// Vertex layout /// /// [FieldOffset(16)] public uint col; } /// /// /// A single vertex (pos + uv + col = 20 bytes by default. Override layout with /// IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT) /// /// /// C++: /// imgui.h:180 ///
struct ImDrawVert ///
///
/// /// /// Forward declarations: ImDrawList, ImFontAtlas layer /// /// public unsafe partial struct ImDrawVertPtr(ImDrawVert* ptr) : INullable { private ImDrawVert* _ptr = ptr; public ImDrawVert* Ptr => _ptr; public bool IsNull() => _ptr is null; public static implicit operator ImDrawVertPtr(ImDrawVert* ptr) => new(ptr); public static implicit operator ImDrawVert*(ImDrawVertPtr wrapper) => wrapper.Ptr; /// /// /// C++: /// imgui.h:3258 ///
ImVec2 pos ///
///
/// /// /// Vertex layout /// /// public ref float2 pos => ref Unsafe.AsRef(&_ptr->pos); /// /// /// C++: /// imgui.h:3259 ///
ImVec2 uv ///
///
/// /// /// Vertex layout /// /// public ref float2 uv => ref Unsafe.AsRef(&_ptr->uv); /// /// /// C++: /// imgui.h:3260 ///
ImU32 col ///
///
/// /// /// Vertex layout /// /// public ref uint col => ref Unsafe.AsRef(&_ptr->col); } }