hi,
I'm just new to GDK and was folowing the tutorials. But I am getting stuck at the second one, about loading objects.
When I run de source code, the only thing it would do is giving a black screen and the program hangs.
The source is listed below.
#include "DarkGDK.h"
void DarkGDK ()
{
// set sync on and sync rate to 60 frames per second
dbSyncOn();
dbSyncRate(60);
dbLoadObject ( "colonel.x" ,1);
dbPositionCamera ( 0, 50, -80 );
// loop until the escape key is pressed
while (LoopGDK())
{
// update screen
dbSync();
}
}
The object file colonel.x is in the same dir as main.cpp. But I don't know why it won't work.
I am using windows 7 and Visual c++ 2008.
It would be great if sombody could help me. =)