1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
   |       void DarkGDK ( void )
{
	dbSyncOn   ( );
	dbSyncRate ( 0 );
 
	dbMakeObjectCube ( 1, 10 );
 
	while ( !dbEscapeKey () )
	{
		dbRotateObject ( 
				1,
				dbObjectAngleX ( 1 ) + 0.1f,
				dbObjectAngleY ( 1 ) + 0.1f,
				dbObjectAngleZ ( 1 ) + 0.1f 
			); //voila se que je ne comprend pas
 
		for (int a = 0; a < 100; a++)
		{ // et la pourquoi on ne mais pas une accolade fermante
			for (int b = 0; b < 100; b++)
			{
				for (int c = 0; c < 100; c++)
				{
					int d = dbRnd ( 100 );
				} // sa je comprend pas trop
			}
		}
 
		char szFPS [ 256 ] = "";
		strcpy ( szFPS, "fps = " );
		strcat ( szFPS, dbStr ( dbScreenFPS ( ) ) );
		dbText ( 
			dbScreenWidth ( ) - 20 - dbTextWidth ( szFPS ), 
			dbScreenHeight ( ) - 40,
			szFPS
		);
 
		dbSync ( );
	} // sa non plus
} |