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



1055
1056
1057
# File 'lib/imgui.rb', line 1055

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

Instance Method Details

#destroyObject



1059
1060
1061
# File 'lib/imgui.rb', line 1059

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

#GetTexIDObject



1051
1052
1053
# File 'lib/imgui.rb', line 1051

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