Class: ImDrawListSplitter

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/imgui.rb

Overview

Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order. This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.createObject



901
902
903
# File 'lib/imgui.rb', line 901

def self.create()
  return ImDrawListSplitter.new(ImGui::ImDrawListSplitter_ImDrawListSplitter())
end

Instance Method Details

#ClearObject



893
894
895
# File 'lib/imgui.rb', line 893

def Clear()
  ImGui::ImDrawListSplitter_Clear(self)
end

#ClearFreeMemoryObject



897
898
899
# File 'lib/imgui.rb', line 897

def ClearFreeMemory()
  ImGui::ImDrawListSplitter_ClearFreeMemory(self)
end

#destroyObject



917
918
919
# File 'lib/imgui.rb', line 917

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

#Merge(draw_list) ⇒ Object



905
906
907
# File 'lib/imgui.rb', line 905

def Merge(draw_list)
  ImGui::ImDrawListSplitter_Merge(self, draw_list)
end

#SetCurrentChannel(draw_list, channel_idx) ⇒ Object



909
910
911
# File 'lib/imgui.rb', line 909

def SetCurrentChannel(draw_list, channel_idx)
  ImGui::ImDrawListSplitter_SetCurrentChannel(self, draw_list, channel_idx)
end

#Split(draw_list, count) ⇒ Object



913
914
915
# File 'lib/imgui.rb', line 913

def Split(draw_list, count)
  ImGui::ImDrawListSplitter_Split(self, draw_list, count)
end