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

Splashscreen

Started by stefu Jul 22, 2001 at 3:07 PM 4 replies 550+ views
Original Post
stefu
stefu
How to show splas screen? I can''t use textures for splashscreens. Does OpenGL have way to draw pixels directly to backbuffer? Or should I draw pixel by pixel using glBegin(GL_POINT)/glEnd()?
Obelix
Obelix
You can use the normal GDI functions.
asaari
asaari
too slow for a splash screen???!

GDI must be darn slow then!
Coffee Drinker
Coffee Drinker
take a look at glDrawPixels
it''s slow though


Free your mind.
Free your mind.
merlin9x9
merlin9x9
If you want a splash screen, your best bet is to use a modeless dialog containing your splash image. If you're doing this in VC++, you can make a dialog (make sure you make the style thin-line or no-border) of any size in the resource editor, then insert an image in the upper-left corner of that dialog. In the procedure for that dialog, in the WM_CREATE message, use SetWindowPos to resize the dialog to the exact size of your splash image and place the dialog at the top of the Z-order (make it the topmost window). So, you'll display this dialog (using DialogBox) just before you start loading, and you'll destroy it (using SendMessage(hwndSplash, WM_CLOSE, 0, 0), which implies that you'll have to somehow keep track of that dialog's handle) when you're done with it. This method gives you a "true" splash screen.

Edited by - merlin9x9 on July 30, 2001 6:43:02 PM

Topic Locked

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

Sign in to reply to this topic.