Visible Wireframe Sphere, need some camera rotation to see it properly though.
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 6m44s

This commit is contained in:
2024-10-22 13:46:59 -04:00
parent 68ba438433
commit 686a4be0c9
2 changed files with 50 additions and 5 deletions

View File

@@ -137,11 +137,14 @@ public:
bool fov_increasing = true;
void display() {
float dt = 1.f / fps;
JGL::Update(getSize());
if (fov_increasing)
fov += 0.25;
fov += 0.025;
else
fov -= 0.50;
fov -= 0.050;
if (fov >= 120)
fov_increasing = false;
@@ -149,8 +152,8 @@ public:
fov_increasing = true;
J3D::ChangeFOV(fov);
sprite_radians += 0.05;
textAngle.y += 2.0f;
sprite_radians += 0.005;
textAngle.y += .05f;
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
@@ -163,7 +166,7 @@ public:
J3D::DrawLine(Colors::Red, {-0.33,-0.125,1}, {-1,-0.125,1});
J3D::DrawLine(Colors::Red, {-0.33,-0.125,1}, {-0.33,0.25,1});
J3D::DrawString(Colors::Red, "JGL Sample Text", {-0.33, -0.1, 1.0f}, 1.f, 32, FreeSans, textAngle, true);
//J3D::WireframeSphere(Colors::Green, {0,0,0}, 0.25f, 1.f);
J3D::WireframeSphere(Colors::Green, {0,0,0.05f}, 0.01f, 0.5f);
J3D::End();
J2D::Begin(j2d_render_target, true);