Class: ImDrawCmd

Inherits:
FFI::Struct
  • Object
show all
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

.createObject



1115
1116
1117
# File 'lib/imgui.rb', line 1115

def self.create()
  return ImDrawCmd.new(ImGui::ImDrawCmd_ImDrawCmd())
end

Instance Method Details

#destroyObject



1119
1120
1121
# File 'lib/imgui.rb', line 1119

def destroy()
  ImGui::ImDrawCmd_destroy(self)
end

#GetTexIDObject



1111
1112
1113
# File 'lib/imgui.rb', line 1111

def GetTexID()
  ImGui::ImDrawCmd_GetTexID(self)
end