Implement DrawLine2D + DrawPixel2D

This commit is contained in:
2024-01-20 15:54:25 -05:00
parent c5f60e3699
commit 52a6aa5b78
2 changed files with 48 additions and 18 deletions

View File

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