Archived

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

Logos during Loading

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

On games like Unreal Tournament and anything else made by the unreal engine and a Tetris clone I have the program displays the logo right on the desktop during loading. How is this accomplished?

Share this post


Link to post
Share on other sites
Before loading, you create a popup window or dialog and draw the logo onto it with the method of your choice (GDI, DirectDraw, etc.), and then just close it when you''re done loading.

Share this post


Link to post
Share on other sites
That helped a lot. All I know about Windows is how to create the context as defined in NeHe''s first tutorial. Is there some place where I can see some code or a tutorial? Also, which would be easier/better to use: GDI or DirectDraw? Thanks a lot for your time.

Share this post


Link to post
Share on other sites
if you are using VC++ try:

1.) create a dialog in the resource editor and give it a name
like IDD_MY_DIALOG, click on preferences and enable "show"
2.) create a new bitmap in the resource editor and give it a
name like IDB_MY_BITMAP
3.) go back to your dialog, create an bitmap-symbol on it
(again, the editor has a button for that) and link it with
IDB_MY_BITMAP
4.) in your source-code: go to the beginnig of the prog
CDialog *myDialog = new CDialog(1);
myDialog->Create(IDD_MY_DIALOG, NULL);
then go to the part where your init is over and:
myDialog->DestroyWindow();
delete myDialog;

thats all. this is not the best way to do it, but it works.
you also have to include some headers, i think "windows.h", but this can´t be so complicated...
i hope this help.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
//Pseudo that perform polygon to screen before initializing.

unsigned short int g_initonce = 1;
HDC g_hdc;

if(g_initonce == 1)
{
HWND l_hwnd;
HDC l_hdc;
l_hdc = GetDC(l_hwnd);

glBegin(GL_QUADS);
glVertex3f( ...
glEnd();

SwapBuffers(l_hdc);

init();
g_initonce = NULL;
ReleaseDC(l_hwnd,l_hdc);
}

if(g_initonce == NULL)
{
while(1)
{
if(PeekMessage(&msg,NULL,NULL,NULL,PM_REMOVE))
{
...
main();
SwapBuffers(g_hdc);
}

Share this post


Link to post
Share on other sites