Skip to main content
GameDev.net gamedev.net
🔒 Locked

Understanding code...

Started by esolem Jan 2, 2003 at 7:18 AM 0 replies 250+ views
Original Post
esolem
esolem
Hello. I''m currently trying to work my way throu the NeHe tutorials and after spending hours to find the one mistake I made on tutorial 19 I realized that I don''t understand what certian functions do. My error was that the following line was missing in the InitGL function: glEnable(GL_BLEND); If you have the tutorial, and try to remove/comment out that line you will see that the result is completly different. So, have I missed the tutorial that explain this line, or is there any good resources on the internet that can help me? Thanks all. Endre
JackRabbit
JackRabbit
Been a while since i used OpenGL, but if i remember it correctly, that line enables Alpha blending (transparency).

Which i could help you out more, but like i said, have'nt used it for a while.

PS:
NeHe teaches Alpha blending in lesson 08.

Hope this helps. Good luck!

[edited by - JackRabbit on January 2, 2003 8:42:10 AM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.