MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / drawRect

Function drawRect

demo/d3d11/imguiGraph.cpp:124–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124static void drawRect(float x, float y, float w, float h, float fth, unsigned int col)
125{
126 float verts[4 * 2] =
127 {
128 x + 0.5f, y + 0.5f,
129 x + w - 0.5f, y + 0.5f,
130 x + w - 0.5f, y + h - 0.5f,
131 x + 0.5f, y + h - 0.5f,
132 };
133 drawPolygon(verts, 4, fth, col);
134}
135
136/*
137static void drawEllipse(float x, float y, float w, float h, float fth, unsigned int col)

Callers 1

imguiGraphDrawFunction · 0.70

Calls 1

drawPolygonFunction · 0.70

Tested by

no test coverage detected