Hello,
So i started with DarkGDk. And i was coding something. I compiled and he gave no errors. So when the window opens, i see only Green, the whole window is green. Strange.
It is just a matrix with wireframe on, and some camera movement codes.
Here is my code:
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
//Setting Up A Matrix - For Easy Object Placement
dbMakeMatrix (1, 100, 100, 10, 10);
dbSetMatrixWireframeOn (1);
//Making a Camera for Easily Control Above Matrix
dbMakeCamera (1);
while ( LoopGDK ( ) )
{
// Keyboard Movement
if( dbKeyState (17))
dbMoveCamera(1, 20);
if( dbKeyState (31))
dbMoveCamera(1, -20);
if( dbKeyState (30))
dbMoveCameraLeft(1, 20);
if( dbKeyState (32))
dbMoveCameraRight(1, 20);
dbSync ( );
}
return;
}
Thanks in forward,
Red Eye