Playing with projections.

This commit is contained in:
James Grogan 2022-11-14 16:07:13 +00:00
parent be94bf0185
commit 71b5e8d4b1
2 changed files with 25 additions and 14 deletions

View file

@ -60,6 +60,12 @@ bool XcbGlWindowInterface::initialize(xcb_window_t window)
void XcbGlWindowInterface::resizeViewPort(unsigned width, unsigned height)
{
glViewport(0, 0, width, height);
glOrtho(0, width, 0, height, -1.0, 1.0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
//glMatrixMode(GL_MODELVIEW);
}
void XcbGlWindowInterface::destroyWindow()