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



1067
1068
1069
# File 'lib/imgui.rb', line 1067

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

Instance Method Details

#ClearObject



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

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

#ClearFreeMemoryObject



1063
1064
1065
# File 'lib/imgui.rb', line 1063

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

#destroyObject



1083
1084
1085
# File 'lib/imgui.rb', line 1083

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

#Merge(draw_list) ⇒ Object



1071
1072
1073
# File 'lib/imgui.rb', line 1071

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

#SetCurrentChannel(draw_list, channel_idx) ⇒ Object



1075
1076
1077
# File 'lib/imgui.rb', line 1075

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

#Split(draw_list, count) ⇒ Object



1079
1080
1081
# File 'lib/imgui.rb', line 1079

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