Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Sun Oct 06, 2024 3:58 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: loading screen
PostPosted: Sat May 10, 2008 3:55 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Maybe this can be of help for someone.
It's a sample code i'm using to show a loading screen.

Code:
int main(int argc, char **argv)
{   
   raydium_init_args(argc,argv);
   
   //loading the configuration file
   raydium_init_load("sample.config");       
   
   //showing a loading screen   
   loading=raydium_texture_load("loadingscreen.tga");
   raydium_clear_frame();
   raydium_osd_draw_name("cargando.tga",0,0,100,100);
   raydium_ode_draw_all(RAYDIUM_ODE_DRAW_NORMAL);
   raydium_rendering_finish();
   
   //here preload of meshes, textures, and so on.
   //This would take a long time, but the loading screen is already shown.   
   //*** TIME TIME TIME TIME TIME ****//               
   
   raydium_callback(&display);
   return(0);
}


Could be usefull a function like this one?
Code:
void raydium_loading_screen(char *texturefile)
{
   loading=raydium_texture_load(texturefile);
   raydium_clear_frame();
   raydium_osd_draw_name(texturefile,0,0,100,100);
   raydium_ode_draw_all(RAYDIUM_ODE_DRAW_NORMAL);
   raydium_rendering_finish();
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group