Hi all,
I am trying to draw a circle and display it on the screen. I am using the function dbCircle() to draw the circle. However no circle is drawn on the screen and I always get a black window. I have inserted the dbSync() in the main loop.
Here is the code I tried:
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbInk (dbRGB(255,0,0), dbRGB(0, 0, 0));
dbCircle (100, 100, 100);
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Please help me understand what I missed.
Thanks a lot
Lee
--
Lee