It locks up after compiliation. And the cube is not 3d but 2d.
Miguel: I'll try that,thank you. I did notice that the rotation cube,code is different in the samples directory.
#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 ( LoopSDK ( ) )
{
if ( dbEscapeKey ( ) )
return;
// rotate the object
dbRotateObject ( 1, dbObjectAngleX ( 1 ) + 0.1f, dbObjectAngleY ( 1 ) + 0.1f, dbObjectAngleZ ( 1 ) + 0.1f );
// update screen
dbSync ( );
}
}
old code:
#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 ( );
}
}
- This message is made of 100% recycled bits and bytes