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
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m26s
This commit is contained in:
3
main.cpp
3
main.cpp
@@ -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();
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user