int InitGL(GLvoid)
{
if (!LoadGLTextures())
{
return FALSE;
}
glEnable(GL_TEXTURE_2D);
glShadeModel(GL_SMOOTH);
glClearColor(0.5f, 0.5f, 1.0f, 0.5f); //
glClearDepth(1.0f);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
glBlendFunc(GL_SRC_ALPHA,GL_ONE);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
glEnable(GL_CULL_FACE);
cout<<"InitGl completed\n";
BuildFont();
Init_Character();
Init_Landscape();
return TRUE;
}
Wall Disappearance
So I have this *coughgamecough*, I can load in it obj files, I have input and all that stuff for a beginner game.
No I ran into a problem, when I move away from the 3d objects on the screen, they will disappear when I am about 20 meters away from them.
What should I do?
Here is my InitGL()
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement