MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / R_drawBox

Function R_drawBox

engine/src/game.cpp:1388–1401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1386}
1387
1388void R_drawBox(float x, float y, float w, float h, Vector4 color)
1389{
1390 glDisable(GL_TEXTURE_2D);
1391 glColor4f(color.x, color.y, color.z, color.w);
1392 glBegin(GL_QUADS);
1393 {
1394 glVertex2f(x, y);
1395 glVertex2f(x + w, y);
1396 glVertex2f(x + w, y + h);
1397 glVertex2f(x, y + h);
1398 }
1399 glEnd();
1400 glEnable(GL_TEXTURE_2D);
1401}
1402
1403void R_drawScreenDebug()
1404{

Callers 1

R_drawScreenDebugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected