Forgive me if this was mentioned already.. but on the DarkSDK main page, there's code listed that's supposed to make a cube spin.
#include "DarkSDK.h"
void DarkSDK ( 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 ( !dbEscapeKey ( ) )
{
// update screen
dbSync ( );
}
}
As far as i can tell, that puts a cube on the screen and waits for the escape key to be pressed
[edit] After revising what the paragraph said, i seem to have misinterpreted.. you guys meant that it looks around the loop, not the actual cube..
That paragraph needs some revising however, i'm sure i'm not the only one who got confused with it.
Now, i dont have this program to test the code, but looking at it, i cant find where in the world the commands are to make it spin.
WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.