🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Way to decide which object is on top (layers)?
I''ve got a box, and I want text to appear on it (but not with a texture). I call the draw text function, then the drawbox function (tried calling drawbox first also), but the text always appears behind the box! Is there another easy way to control the layers? Thanks!
draw box
glDisable(GL_DEPTH_TEST)
draw text
sorry wrong answer maybe try someit like
glDepthFunc(GL_NEVER) or GL_LEQUAL
glDisable(GL_DEPTH_TEST)
draw text
sorry wrong answer maybe try someit like
glDepthFunc(GL_NEVER) or GL_LEQUAL
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement