Idk like make the viewport work maybe?
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 4m29s
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 4m29s
This commit is contained in:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user