Implement OutlineRect2D

This commit is contained in:
2024-01-20 14:02:43 -05:00
parent d49084e99e
commit c5f60e3699
2 changed files with 16 additions and 4 deletions

View File

@@ -42,7 +42,8 @@ void display() {
glVertex2f(-0.9f, -0.3f);
glEnd();
JGL::FillRect2D({64, 64}, {128, 128}, JGL::Colors::White);
JGL::FillRect2D({0, 0}, {128, 128}, JGL::Colors::White);
JGL::OutlineRect2D({0, 0}, {128, 128}, JGL::Colors::BrightRed);
glBegin(GL_TRIANGLES);
glColor3f(0.0f, 0.0f, 1.f); // Blue