Class: ImDrawData

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

Overview

All draw data to render a Dear ImGui frame (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose, as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.createObject



1722
1723
1724
# File 'lib/imgui.rb', line 1722

def self.create()
  return ImDrawData.new(ImGui::ImDrawData_ImDrawData())
end

Instance Method Details

#AddDrawList(draw_list) ⇒ Object



1710
1711
1712
# File 'lib/imgui.rb', line 1710

def AddDrawList(draw_list)
  ImGui::ImDrawData_AddDrawList(self, draw_list)
end

#ClearObject



1714
1715
1716
# File 'lib/imgui.rb', line 1714

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

#DeIndexAllBuffersObject



1718
1719
1720
# File 'lib/imgui.rb', line 1718

def DeIndexAllBuffers()
  ImGui::ImDrawData_DeIndexAllBuffers(self)
end

#destroyObject



1730
1731
1732
# File 'lib/imgui.rb', line 1730

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

#ScaleClipRects(fb_scale) ⇒ Object



1726
1727
1728
# File 'lib/imgui.rb', line 1726

def ScaleClipRects(fb_scale)
  ImGui::ImDrawData_ScaleClipRects(self, fb_scale)
end