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