Implement OutlineRect2D
This commit is contained in:
3
main.cpp
3
main.cpp
@@ -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
|
||||
|
Reference in New Issue
Block a user