I am getting frustrated with trying to learn DarkGDK functions with no real tutorials, I can't even get a simple cube to display, all I get is a blank window, why?
#include "DarkGDK.h"
void DarkGDK( void ) {
dbSetDisplayMode(800, 600, 32);
dbSyncOn();
dbSyncRate(60);
dbMakeObjectBox(1, 10.0, 10.0, 10.0);
dbPositionObject(1, 400, 300, 0);
dbSync();
dbWaitMouse();
}
After tinkering with that and reading some example code I came up with this and thought it should work:
#include "DarkGDK.h"
void DarkGDK( void ) {
dbSyncOn();
dbSyncRate(60);
dbMakeObjectCube(1, 20.0);
dbPositionObject(1, 400, 300, 50);
float x = 1.0; float y = 1.0; float z = 1.0;
while (!dbSpaceKey()) {
dbRotateObject(1, x, y, z);
x ++; y ++; z ++;
dbSync();
}
}
Again it doesn't display anything but a blank window...
- Scarface