I have the feeling that I am doing something wrong when setting up the initial commands before the main loop of my prog:
void DarkGDK ()
{
// setup
dbSetWindowOff ();
dbHideMouse ();
dbSetDisplayMode (1024,768,32);
dbLoadObject ("ball1.x", 1);
dbLoadObject ("ball2.x", 2);
dbLoopObject (2);
dbColorBackdrop (0, 0);
// main loop
dbSetAmbientLight (30);
dbColorAmbientLight (dbRGB (200, 200, 255) );
dbSyncOn ();
dbSyncRate (60);
while ( LoopGDK () )
{
dbSync ();
}
// end
return;
}
what is happeningis that the screen goes black (ok), then the dbLoadObject commands execute, and the screen gets half black and half shows Windows desktop (wrong!), then .X objects and decoded and programm starts to exectute.