OpenGL-ES: clearing the alpha of the FrameBufferObject
Posted
by
MrDatabase
on Game Development
See other posts from Game Development
or by MrDatabase
Published on 2011-02-14T20:39:49Z
Indexed on
2011/02/14
23:35 UTC
Read the original article
Hit count: 394
This question is a follow-up to Texture artifacts on iPad
How does one "clear the alpha of the render texture frameBufferObject"? I've searched around here, StackOverflow and various search engines but no luck. I've tried a few things... for example calling GlClear(GL_COLOR_BUFFER_BIT) at the beginning of my render loop... but it doesn't seem to make a difference. Any help is appreciated since I'm still new to OpenGL.
Cheers!
p.s. I read on SO and in Apple's documentation that GlClear should always be called at the beginning of the renderLoop. Agree? Disagree? Here's where I read this: http://stackoverflow.com/questions/2538662/how-does-glclear-improve-performance
© Game Development or respective owner