Sorry for being such a noob but ..
1>------ Build started: Project: 3D Objects, Configuration: Debug Win32 ------
1>Compiling...
1>Main.cpp
1>d:dark gdktutorials3d objects3d objectsmain.cpp(21) : error C2065: 'x' : undeclared identifier
1>d:dark gdktutorials3d objects3d objectsmain.cpp(23) : error C2065: 'y' : undeclared identifier
1>d:dark gdktutorials3d objects3d objectsmain.cpp(25) : error C2065: 'z' : undeclared identifier
1>Build log was saved at "file://d:Dark GDKTutorials3D Objects3D ObjectsDebugBuildLog.htm"
1>3D Objects - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
My code :
// Dark GDK - The Game Creators - www.thegamecreators.com
// whenever using Dark GDK you must ensure you include the header file
#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 );
dbPrint ( "Please wait loading model..." );
dbSync ( );
dbSync ( );
dbLoadObject ( "miko.x", 1 );
char textBuffer[128];
sprintf( textBuffer, "%f", x );
dbPrint( textBuffer );
sprintf( textBuffer, "%f", y );
dbPrint( textBuffer );
sprintf( textBuffer, "%f", z );
dbPrint( textBuffer );
dbLoopObject ( 1 );
dbSetObjectSpeed ( 1, 40 );
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbControlCameraUsingArrowKeys ( 0,5.0f,2.0f );
dbSync ( );
}
// return back to windows
return;
}
I know I need to declare what x , y , z are . They are my camera coordinates on the x , y , z axis but how do I do it ?