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();
}