Accept Color3 & Color4
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 6m0s
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 6m0s
This commit is contained in:
11
main.cpp
11
main.cpp
@@ -92,8 +92,9 @@ public:
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
glLoadIdentity();
|
||||
//camera->angle.y += 1;
|
||||
|
||||
camera->render();
|
||||
|
||||
///All 3D elements of the scene and JGL elements *must* be rendered before the 2d stuff.
|
||||
J3D::Begin();
|
||||
J3D::DrawLine(JGL::Colors::Red, {-0.33,-0.125,1}, {-1,-0.125,1});
|
||||
@@ -102,10 +103,12 @@ public:
|
||||
J3D::End();
|
||||
|
||||
J2D::Begin();
|
||||
J2D::OutlineRect(JGL::Colors::Blue, {32, 32}, {100.5, 100.5});
|
||||
J2D::OutlineTriangle(JGL::Colors::Yellow, {{140, 200},{135, 100},{105, 100}}, 1);
|
||||
J2D::FillRect(JGL::Colors::Blue, {32, 32}, {100.5, 100.5});
|
||||
J2D::FillRect({255,0,0,255/2}, {100.5, 100.5}, {32, 32});
|
||||
|
||||
//J2D::OutlineTriangle(JGL::Colors::Yellow, {{140, 200},{135, 100},{105, 100}});
|
||||
J2D::FillCircle(JGL::Colors::White, {120, 200}, 20, 16);
|
||||
J2D::DrawLine(JGL::Colors::Green, {10, 10}, {200, 300}, 1);
|
||||
J2D::DrawLine(JGL::Colors::Green, {10, 10}, {200, 300});
|
||||
J2D::DrawString(JGL::Colors::Green, "Jupteroid Font", 0.f, -48.f, 1.f, 16, Jupiteroid);
|
||||
J2D::DrawString(JGL::Colors::White, "Position: " + std::to_string(camera->position.x) + " " + std::to_string(camera->position.y) + " " + std::to_string(camera->position.z), 0, -65, 1,16, Jupiteroid);
|
||||
J2D::DrawString(JGL::Colors::White, "ViewAngle: " + std::to_string(camera->angle.x) + " " + std::to_string(camera->angle.y) + " " + std::to_string(camera->angle.z), 0, -82, 1,16, Jupiteroid);
|
||||
|
Reference in New Issue
Block a user