Playing with projections.
This commit is contained in:
parent
be94bf0185
commit
71b5e8d4b1
2 changed files with 25 additions and 14 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue