void ImmediateModeRenderer10::begin (Matrix4& projModelView,int primitiveType) { GL10 * gl = gl10; gl->glMatrixMode(GL_PROJECTION); gl->glLoadMatrixf(projModelView.val); gl->glMatrixMode(GL_MODELVIEW); gl->glLoadIdentity(); begin(primitiveType); }
void Camera::apply (const GL10& gl) { gl.glMatrixMode(gdx::GL::PROJECTION); gl.glLoadMatrixf(projection.val); gl.glMatrixMode(gdx::GL::MODELVIEW); gl.glLoadMatrixf(view.val); }