View Full Version : Front to Back
12-18-2002, 10:27 AM
Hi guys. I'm a newbie with opengl and would like to know a way to copy my Front Buffer to the Back Buffer. Is it possible? or I can swap only from back to front?
take a look at
12-18-2002, 12:15 PM
Thank yoy Mazy.
But how I DO I use glCopyPixels? I've been trying to make it work the entire day, but til now, nothing....
Look how I'm doing:
glRasterPos3f(0.0f, 0.0f, 0.0f);
glCopyPixels(10, 10, 50, 50, GL_DEPTH);
glCopyPixels(10, 10, 50, 50, GL_COLOR);
I don't know why... but it don't work!!
Help me please!
[This message has been edited by Fernando (edited 12-18-2002).]
Make sure the raster position is actually where you want it. Draw a single point at the raster position and see if it appears where you want it. If it doesn't, maybe the raster position is outside the window, which makes it invalid.
12-18-2002, 12:48 PM
I was giving the a wrong value for the Z axis.
Now I'm using glRasterPos3f(0.0f, 0.0f, -1.0f) and there's a black box appearing on the center of the screen isntead of the front buffer....
Do you have any hints?
All I can say right now is that something is wrong, but that's obvious. You have to provide more information, preferably code (only relevant pieces).
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.