Open GL Clear Color

hello there i was wondering if any one can shed some light on any ability to set the clear color in opengl to transparent, istead of a color like black or whatever.

glClear always fills the framebuffer with the values given in glClearColor (well, converted to fixed point for non-float buffers of course), there is no “transparent” rendering in a glClear.

If you want to fade out your renderering you need to skip the color clear and render a transparent rectangle over your current frame’s contents instead.

Beware that SwapBuffers leaves the back buffer in undefined state for pixelformats with PFD_SWAP_EXCHANGE flag set.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.