struct ImGui::ImDrawData
- ImGui::ImDrawData
- Struct
- Value
- Object
Overview
Included Modules
- ImGui::ClassType(LibImGui::ImDrawData)
Defined in:
obj.crConstructors
Instance Method Summary
-
#add_draw_list(draw_list : ImDrawList) : Void
Helper to add an external draw list into an existing ImDrawData.
- #clear : Void
-
#cmd_lists : ImVector(ImDrawList)
Array of ImDrawList* to render.
- #cmd_lists=(cmd_lists : ImVector(ImDrawList))
-
#cmd_lists_count : Int32
Number of ImDrawList* to render (should always be == CmdLists.size)
- #cmd_lists_count=(cmd_lists_count : Int32)
-
#de_index_all_buffers : Void
Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed.
-
#display_pos : ImVec2
Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (== GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications)
- #display_pos=(display_pos : ImVec2)
-
#display_size : ImVec2
Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize in most single-viewport applications)
- #display_size=(display_size : ImVec2)
-
#framebuffer_scale : ImVec2
Amount of pixels for each unit of DisplaySize.
- #framebuffer_scale=(framebuffer_scale : ImVec2)
-
#owner_viewport : ImGuiViewport
Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not).
- #owner_viewport=(owner_viewport : ImGuiViewport)
-
#scale_clip_rects(fb_scale : ImVec2) : Void
Helper to scale the ClipRect field of each ImDrawCmd.
- #to_unsafe : Pointer(T)
-
#total_idx_count : Int32
For convenience, sum of all ImDrawList's IdxBuffer.Size
- #total_idx_count=(total_idx_count : Int32)
-
#total_vtx_count : Int32
For convenience, sum of all ImDrawList's VtxBuffer.Size
- #total_vtx_count=(total_vtx_count : Int32)
-
#valid : Bool
Only valid after Render() is called and before the next NewFrame() is called.
- #valid=(valid : Bool)
Constructor Detail
Instance Method Detail
Helper to add an external draw list into an existing ImDrawData.
Array of ImDrawList* to render. The ImDrawLists are owned by ImGuiContext and only pointed to from here.
Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering!
Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (== GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications)
Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize in most single-viewport applications)
Amount of pixels for each unit of DisplaySize. Based on io.DisplayFramebufferScale. Generally (1,1) on normal display, (2,2) on OSX with Retina display.
Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not).
Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution.