- // projection matrix neu berechnen
- m_Canvas->MakeCurrent(); // den zu dem thread passenden RenderContext binden
- glViewport(0, 0, m_Canvas->ProjectionMatrix.GetSize().Width, m_Canvas->ProjectionMatrix.GetSize().Height); // Viewport vom Context updaten, damit das Fenster vollständig gemalt wird und die Aspect Ratio stimmt
- glMatrixMode(GL_PROJECTION);// projektion matrix updaten
- glLoadMatrixf(m_Canvas->ProjectionMatrix.GetMatrix(Viewtype::View3D).Value);
- glMatrixMode(GL_MODELVIEW);// model matrix updaten
- glLoadMatrixf(m_Modelview.Value);