PDA

View Full Version : Any way to switch between 2 graphics buffers?



AmiDARK
11-16-2011, 02:54 PM
Hello.

This question if for a development project on AmigaOS4.x & MorphOS.

I'd like to know if there is a way to switch between 2 buffers for drawing OpenGL 3D output ?

In fact, I open a new screen using :
BasicSetup.WindowID = glutCreateWindow( BasicSetup.WindowTitle );

I can create alternate buffer/bitmap this way :
bmp_mybitmsp = AllocBitMap( iWidth, iHeight, BasicSetup.DisplayDEPTH, BMF_MINPLANES | BMF_DISPLAYABLE, mglWindow->RPort->BitMap );

I'd like to be able to switch between default windows and hidden bitmap to trace graphics.

Can someone help me ?

Kindest Regards,
AmiDARK

BionicBytes
11-16-2011, 03:43 PM
Can you make use of FrameBuffer Objects to draw to hidden surface?
This is a standard feature of OpenGL and is far more flexible than OS supplied frame buffers.