MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / drawRectFilled

Function drawRectFilled

Source/Falcor/Utils/Timing/ProfilerUI.cpp:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72const uint32_t kHighlightColor = IM_COL32(0xff, 0x7f, 0x00, 0xcf);
73
74void drawRectFilled(const ImVec2& pos, const ImVec2& size, uint32_t color = 0xffffffff)
75{
76 auto cursorPos = ImGui::GetCursorScreenPos();
77 ImGui::GetWindowDrawList()->AddRectFilled(
78 ImVec2(cursorPos.x + pos.x, cursorPos.y + pos.y), ImVec2(cursorPos.x + pos.x + size.x, cursorPos.y + pos.y + size.y), color
79 );
80};
81
82void drawBar(float fraction, const ImVec2& size, ImU32 color = 0xffffffff, ImU32 background = 0x00000000, bool highlight = false)
83{

Callers 1

renderGraphMethod · 0.85

Calls 1

ImVec2Class · 0.85

Tested by

no test coverage detected