OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Public Attributes | List of all members
ImDrawList Struct Reference

#include <imgui.h>

Collaboration diagram for ImDrawList:
[legend]

Public Member Functions

 ImDrawList ()
 
IMGUI_API void Clear ()
 
IMGUI_API void PushClipRect (const ImVec4 &clip_rect)
 
IMGUI_API void PopClipRect ()
 
IMGUI_API void PushTextureID (const ImTextureID &texture_id)
 
IMGUI_API void PopTextureID ()
 
IMGUI_API void AddLine (const ImVec2 &a, const ImVec2 &b, ImU32 col)
 
IMGUI_API void AddRect (const ImVec2 &a, const ImVec2 &b, ImU32 col, float rounding=0.0f, int rounding_corners=0x0F)
 
IMGUI_API void AddRectFilled (const ImVec2 &a, const ImVec2 &b, ImU32 col, float rounding=0.0f, int rounding_corners=0x0F)
 
IMGUI_API void AddTriangleFilled (const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, ImU32 col)
 
IMGUI_API void AddCircle (const ImVec2 &centre, float radius, ImU32 col, int num_segments=12)
 
IMGUI_API void AddCircleFilled (const ImVec2 &centre, float radius, ImU32 col, int num_segments=12)
 
IMGUI_API void AddArc (const ImVec2 &center, float rad, ImU32 col, int a_min, int a_max, bool tris=false, const ImVec2 &third_point_offset=ImVec2(0, 0))
 
IMGUI_API void AddText (ImFont *font, float font_size, const ImVec2 &pos, ImU32 col, const char *text_begin, const char *text_end=NULL, float wrap_width=0.0f, const ImVec2 *cpu_clip_max=NULL)
 
IMGUI_API void AddImage (ImTextureID user_texture_id, const ImVec2 &a, const ImVec2 &b, const ImVec2 &uv0, const ImVec2 &uv1, ImU32 col=0xFFFFFFFF)
 
IMGUI_API void AddCallback (ImDrawCallback callback, void *callback_data)
 
IMGUI_API void AddDrawCmd ()
 
IMGUI_API void ReserveVertices (unsigned int vtx_count)
 
IMGUI_API void AddVtx (const ImVec2 &pos, ImU32 col)
 
IMGUI_API void AddVtxUV (const ImVec2 &pos, ImU32 col, const ImVec2 &uv)
 
IMGUI_API void AddVtxLine (const ImVec2 &a, const ImVec2 &b, ImU32 col)
 
IMGUI_API void UpdateClipRect ()
 
IMGUI_API void UpdateTextureID ()
 

Public Attributes

ImVector< ImDrawCmdcommands
 
ImVector< ImDrawVertvtx_buffer
 
ImVector< ImVec4clip_rect_stack
 
ImVector< ImTextureIDtexture_id_stack
 
ImDrawVertvtx_write
 

Detailed Description

Definition at line 828 of file imgui.h.

Constructor & Destructor Documentation

ImDrawList::ImDrawList ( )
inline

Definition at line 839 of file imgui.h.

Member Function Documentation

void ImDrawList::Clear ( )

Definition at line 6842 of file imgui.cpp.

void ImDrawList::PushClipRect ( const ImVec4 clip_rect)

Definition at line 6892 of file imgui.cpp.

void ImDrawList::PopClipRect ( )

Definition at line 6898 of file imgui.cpp.

void ImDrawList::PushTextureID ( const ImTextureID texture_id)

Definition at line 6919 of file imgui.cpp.

void ImDrawList::PopTextureID ( )

Definition at line 6925 of file imgui.cpp.

void ImDrawList::AddLine ( const ImVec2 a,
const ImVec2 b,
ImU32  col 
)

Definition at line 6976 of file imgui.cpp.

void ImDrawList::AddRect ( const ImVec2 a,
const ImVec2 b,
ImU32  col,
float  rounding = 0.0f,
int  rounding_corners = 0x0F 
)

Definition at line 7021 of file imgui.cpp.

void ImDrawList::AddRectFilled ( const ImVec2 a,
const ImVec2 b,
ImU32  col,
float  rounding = 0.0f,
int  rounding_corners = 0x0F 
)

Definition at line 7053 of file imgui.cpp.

void ImDrawList::AddTriangleFilled ( const ImVec2 a,
const ImVec2 b,
const ImVec2 c,
ImU32  col 
)

Definition at line 7108 of file imgui.cpp.

void ImDrawList::AddCircle ( const ImVec2 centre,
float  radius,
ImU32  col,
int  num_segments = 12 
)

Definition at line 7119 of file imgui.cpp.

void ImDrawList::AddCircleFilled ( const ImVec2 centre,
float  radius,
ImU32  col,
int  num_segments = 12 
)

Definition at line 7135 of file imgui.cpp.

void ImDrawList::AddArc ( const ImVec2 center,
float  rad,
ImU32  col,
int  a_min,
int  a_max,
bool  tris = false,
const ImVec2 third_point_offset = ImVec2(0,0) 
)

Definition at line 6985 of file imgui.cpp.

void ImDrawList::AddText ( ImFont font,
float  font_size,
const ImVec2 pos,
ImU32  col,
const char *  text_begin,
const char *  text_end = NULL,
float  wrap_width = 0.0f,
const ImVec2 cpu_clip_max = NULL 
)

Definition at line 7153 of file imgui.cpp.

void ImDrawList::AddImage ( ImTextureID  user_texture_id,
const ImVec2 a,
const ImVec2 b,
const ImVec2 uv0,
const ImVec2 uv1,
ImU32  col = 0xFFFFFFFF 
)

Definition at line 7178 of file imgui.cpp.

void ImDrawList::AddCallback ( ImDrawCallback  callback,
void *  callback_data 
)

Definition at line 6862 of file imgui.cpp.

void ImDrawList::AddDrawCmd ( )

Definition at line 6851 of file imgui.cpp.

void ImDrawList::ReserveVertices ( unsigned int  vtx_count)

Definition at line 6932 of file imgui.cpp.

void ImDrawList::AddVtx ( const ImVec2 pos,
ImU32  col 
)

Definition at line 6943 of file imgui.cpp.

void ImDrawList::AddVtxUV ( const ImVec2 pos,
ImU32  col,
const ImVec2 uv 
)

Definition at line 6951 of file imgui.cpp.

void ImDrawList::AddVtxLine ( const ImVec2 a,
const ImVec2 b,
ImU32  col 
)

Definition at line 6960 of file imgui.cpp.

void ImDrawList::UpdateClipRect ( )

Definition at line 6878 of file imgui.cpp.

void ImDrawList::UpdateTextureID ( )

Definition at line 6905 of file imgui.cpp.

Member Data Documentation

ImVector<ImDrawCmd> ImDrawList::commands

Definition at line 831 of file imgui.h.

ImVector<ImDrawVert> ImDrawList::vtx_buffer

Definition at line 832 of file imgui.h.

ImVector<ImVec4> ImDrawList::clip_rect_stack

Definition at line 835 of file imgui.h.

ImVector<ImTextureID> ImDrawList::texture_id_stack

Definition at line 836 of file imgui.h.

ImDrawVert* ImDrawList::vtx_write

Definition at line 837 of file imgui.h.


The documentation for this struct was generated from the following files: