Put this code back because it got removed again. Make sure you have the latest commit before doing anything :/
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m26s

This commit is contained in:
2024-08-05 19:49:30 -04:00
parent 166db43f2e
commit 4de44ba1e2
2 changed files with 3 additions and 1 deletions

View File

@@ -157,6 +157,7 @@ public:
Vector3 textAngle = {0,0,0};
void display() {
JGL::Update(getSize());
textAngle.y += 2.0f;
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
@@ -251,7 +252,7 @@ int main(int argc, char** argv) {
window->setRenderer(RenderingAPI::OPENGL);
window->Open();
window->initGL();
window->setResizable(false);
window->setResizable(true);
while (window->isAlive()) {
window->pollEvents();

View File

@@ -34,6 +34,7 @@ namespace JGL {
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glViewport(0, 0, wS.x, wS.y);
glOrtho(0, wS.x, wS.y, 0, -1, 1);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();