Class: ImDrawCmd
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- ImDrawCmd
- Defined in:
- lib/imgui.rb
Overview
Typically, 1 command = 1 GPU draw call (unless command is a callback)
-
VtxOffset: When ‘io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset’ is enabled, this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. Backends made for <1.71. will typically ignore the VtxOffset fields.
-
The ClipRect/TextureId/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create ⇒ Object
943 944 945 |
# File 'lib/imgui.rb', line 943 def self.create() return ImDrawCmd.new(ImGui::ImDrawCmd_ImDrawCmd()) end |
Instance Method Details
#destroy ⇒ Object
947 948 949 |
# File 'lib/imgui.rb', line 947 def destroy() ImGui::ImDrawCmd_destroy(self) end |
#GetTexID ⇒ Object
939 940 941 |
# File 'lib/imgui.rb', line 939 def GetTexID() ImGui::ImDrawCmd_GetTexID(self) end |