Splash Screen
When i start up my game the window is grayed out until everything is loader like all my textures. So i want to make a splash screen to stay up for a certain amount of time and then the main window to start up.
so i was wondering how could this be done.
Using NeHe OO Basecode and using VC++
Any help be greatful
thanks
ructions
This is much easier than you are thinking...
In your init program load your splashscreen texture, enable textures,switch to ortho mode, and draw the quad, and swap the buffer. Then load all the rest of the textures, models, etc while the loading screen is up.
In your init program load your splashscreen texture, enable textures,switch to ortho mode, and draw the quad, and swap the buffer. Then load all the rest of the textures, models, etc while the loading screen is up.
could you give me some code as i am a newbie and i really dont understand.
thanks in advance
ructions
thanks in advance
ructions
Ok here is some code:
[edited by - skow on April 3, 2004 3:20:36 PM]
CreateTextureTGA(g_Texture, "Image/loading.tga", 8, g_hWnd, 0); //8 glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D,textureMan.texture[T_LOADSCREEN]); ViewOrtho(SCREEN_HEIGHT,SCREEN_WIDTH); glBegin(GL_QUADS); // Display the top left point of the 2D image glTexCoord2f(0.0f, 1.0f); glVertex2f(0, 0); // Display the bottom left point of the 2D image glTexCoord2f(0.0f, 0.0f); glVertex2f(0, SCREEN_HEIGHT); // Display the bottom right point of the 2D image glTexCoord2f(1.0f, 0.0f); glVertex2f(SCREEN_WIDTH, SCREEN_HEIGHT); // Display the top right point of the 2D image glTexCoord2f(1.0f, 1.0f); glVertex2f(SCREEN_WIDTH, 0); // Stop drawing glEnd(); ViewPerspective(); SwapBuffers(g_hDC);
[edited by - skow on April 3, 2004 3:20:36 PM]
I still dont understand i really dont understand all that Ortoview, Prespective stuff.
If you could explain it more it would be helpful.
thanks in advance
ructions
If you could explain it more it would be helpful.
thanks in advance
ructions
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement