Reverting the view SDL
So in my SDL application, which I setup for OpenGL, if I were to do the following code:
glBegin(GL_QUADS);
glVertex2i(0, 0);
glVertex2i(50, 0);
glVertex2i(50, 50);
glVertex2i(0, 50);
glEnd();
The quad shows up on my right hand side of my screen. I tried to use glOrtho but that didn't work for some reason. What happend?
So in my SDL application, which I setup for OpenGL, if I were to do the following code:
glBegin(GL_QUADS);
glVertex2i(0, 0);
glVertex2i(50, 0);
glVertex2i(50, 50);
glVertex2i(0, 50);
glEnd();
The quad shows up on my right hand side of my screen. I tried to use glOrtho but that didn't work for some reason. What happend?
No comments:
Post a Comment