The full command dbBox diseable Antialiasing
//diseable
dbBox( int iLeft, int iTop, int iRight, int iBottom, DWORD dw1, DWORD dw2, DWORD dw3, DWORD dw4 );
//not diseable
dbBox( int iLeft, int iTop, int iRight, int iBottom );
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSetDisplayModeAntialias (1920,1200,32,1,8,0);
//center window
dbSetWindowPosition((dbDesktopWidth()-dbScreenWidth())/2,(dbDesktopHeight()-dbScreenHeight())/2);
dbSyncOn ( );
dbSyncRate ( 60 );
dbRandomize ( dbTimer ( ) );
//Command diseable AA
dbBox ( 0, 0, 100, 100, dbRGB(255,0,0),dbRGB(0,255,0),dbRGB(0,0,255),dbRGB(0,255,255));
//Command no diseable AA
//dbBox ( 0, 0, 100, 100);
dbMakeObjectCube( 10, 1);
// move our camera back so we can view the objects
dbPositionCamera ( 0, 0, -2 );
while ( LoopGDK ( ) )
{
// display some text on screen
dbText ( 0, 0, "Use the up and down arrow keys to move the camera" );
// move the camera forwards
if ( dbUpKey ( ) )
dbMoveCamera ( 1 );
// move the camera backwards
if ( dbDownKey ( ) )
dbMoveCamera ( -1 );
// rotate all of our objects
dbRotateObject ( 10, dbObjectAngleX ( 10 ) + 0.1, dbObjectAngleY ( 10 ) + 0.2, dbObjectAngleZ ( 10 ) + 0.3 );
// here we make a call to update the contents of the screen
dbSync ( );
}
// before quitting delete our objects
for ( int i = 1; i < 50; i++ )
dbDeleteObject ( i );
// and now everything is ready to return back to Windows
return;
}