Idk like make the viewport work maybe?
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 4m29s

This commit is contained in:
2024-08-05 13:41:12 -04:00
parent 2a70981bf0
commit 7bf30f6f39
3 changed files with 6 additions and 5 deletions

View File

@@ -30,14 +30,14 @@ namespace JGL {
void J2D::Begin() {
glViewport(0, 0, wS.x, wS.y);
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glOrtho(0, wS.x, wS.y, 0, -1, 1);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadIdentity();
//Get what the draw color was before we did anything.
glGetFloatv(GL_CURRENT_COLOR, oldColor);
glColor4f(baseColor[0], baseColor[1], baseColor[2], baseColor[3]);