// Dark GDK - The Game Creators - www.thegamecreators.com // include Dark GDK header file #include "DarkGDK.h" // main entry point for program void DarkGDK ( void ) { // set sync on and sync rate to 60 frames per second dbSyncOn ( ); dbSyncRate ( 60 ); // make a cube dbMakeObjectCube ( 1, 10 ); // loop until the escape key is pressed while ( LoopGDK ( ) ) { if ( dbEscapeKey ( ) ) return; // rotate the object dbRotateObject ( 1, dbObjectAngleX ( 1 ) + 0.1f, dbObjectAngleY ( 1 ) + 0.1f, dbObjectAngleZ ( 1 ) + 0.1f ); // update screen dbSync ( ); } }