• Create Account

### #Actualwolfscaptain

Posted 01 August 2012 - 12:23 AM

Phone submitted twice for some reason.

### #1wolfscaptain

Posted 01 August 2012 - 12:15 AM

It will be a whole lot easier to use that same quad you defined, but before drawing it, reset your projection and view matrices.

I am not in front of a computer and I don't remember the exact synta, but something like this:
// draw your scene

glMatrixMode(GL_PROJECTION_MATRIX);
glPushMatrix(); // does this work for the projection matrix?
glMatrixMode(GL_MODELVIEW_MATRIX);
glPushMatrix();

glMatrixMode(GL_PROJECTION_MATRIX);
glPopMatrix();
glMatrixMode(GL_MODELVIEW_MATRIX);
glPopMatrix();

// ...


I haven't used the fixed pipeline for years, so I don't remember if pushing and poping matrices works for the projection matrix, but logically it should.

In any case, you can render that same quad in your code this way to make it "fullscreen".

PARTNERS