struct ImGui::ImDrawData
- ImGui::ImDrawData
- Struct
- Value
- Object
Overview
Included Modules
- ImGui::ClassType(LibImGui::ImDrawData)
Defined in:
obj.crConstructors
Instance Method Summary
- 
        #clear : Void
        
          The ImDrawList are owned by ImGuiContext! 
- 
        #cmd_lists : Slice(ImDrawList)
        
          Array of ImDrawList* to render. 
- #cmd_lists=(cmd_lists : Slice(ImDrawList))
- 
        #cmd_lists_count : Int32
        
          Number of ImDrawList* to render 
- #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)
- 
        #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
Array of ImDrawList* to render. The ImDrawList 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.
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.