#### Archived

This topic is now archived and is closed to further replies.

# Splashscreen

This topic is 6048 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

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()?

##### Share on other sites
You can use the normal GDI functions.

##### Share on other sites
Just use glBegin(GL_PIXELS); The GDI is way too slow for what you need.

------------------------------
Trent (ShiningKnight)
E-mail me
OpenGL Game Programming Tutorials

##### Share on other sites
too slow for a splash screen???!

GDI must be darn slow then!

##### Share on other sites
take a look at glDrawPixels
it''s slow though

##### Share on other sites
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