If you have seen NeHe’book about OpenGL,in the Lesson eight,it said that add the following two lines somewhere in the InitGL() section of code.
glColor4f(1.0f,1.0f,1.0f,0.5f); // Full Brightness, 50% Alpha
glBlendFunc(GL_SRC_ALPHA,GL_ONE); // Blending Function For Translucency Based On Source Alpha Value
My question is why put it in the InitGL() .
If I have two objects in the scene,one is transparency and another is opaque.How should I do?