Open VS2008 Express and create a new GDK project.
You'll get this:
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// 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 );
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Right click where it says - DarkGDK.h - and open the source file.
You will then get:
// Product: DarkGDK (Dark Game Development Kit)
#define DarkSDK DarkGDK
#define LoopSDK LoopGDK
#include "DarkSDK.h"
Right click on where it says - DarkSDK.h - and open the source file.
You will then get the main includes file:
/////////////////////////////////////////////////////////////////////////////////////////////////////////
// DARKGDK HEADER ///////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////
// Added to supress Windows.h define
#define NOMINMAX
// Supress some warnings
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE
#endif
// Extra datatype define
#if _MSC_VER < 1300
#include <wtypes.h>
#ifndef ADDRESS_TAG_BIT
typedef DWORD *DWORD_PTR;
#endif
#endif
// Includes
#include "DarkSDKCore.h"
#include "DarkSDKText.h"
#include "DarkSDKDisplay.h"
#include "DarkSDKInput.h"
#include "DarkSDKFile.h"
#include "DarkSDKBasic2D.h"
#include "DarkSDKBitmap.h"
#include "DarkSDKSound.h"
#include "DarkSDKMusic.h"
#include "DarkSDKSprites.h"
#include "DarkSDKImage.h"
#include "DarkSDKAnimation.h"
#include "DarkSDKLight.h"
#include "DarkSDKCamera.h"
#include "DarkSDKBasic3D.h"
#include "DarkSDKMatrix.h"
#include "DarkSDKWorld.h"
#include "DarkSDKParticles.h"
#include "DarkSDK3DMaths.h"
#include "DarkSDKFTP.h"
#include "DarkSDKMemblocks.h"
#include "DarkSDKMultiplayer.h"
#include "DarkSDKSystem.h"
#include "DarkSDKTerrain.h"
// Required Libraries
#pragma comment ( lib, "darksdk.lib" )
#pragma comment ( lib, "core.lib" )
#pragma comment ( lib, "text.lib" )
#pragma comment ( lib, "display.lib" )
#pragma comment ( lib, "input.lib" )
#pragma comment ( lib, "file.lib" )
#pragma comment ( lib, "basic2D.lib" )
#pragma comment ( lib, "bitmap.lib" )
#pragma comment ( lib, "sound.lib" )
#pragma comment ( lib, "music.lib" )
#pragma comment ( lib, "sprites.lib" )
#pragma comment ( lib, "image.lib" )
#pragma comment ( lib, "animation.lib" )
#pragma comment ( lib, "light.lib" )
#pragma comment ( lib, "camera.lib" )
#pragma comment ( lib, "basic3D.lib" )
#pragma comment ( lib, "matrix.lib" )
#pragma comment ( lib, "world.lib" )
#pragma comment ( lib, "particles.lib" )
#pragma comment ( lib, "3dmaths.lib" )
#pragma comment ( lib, "ftp.lib" )
#pragma comment ( lib, "memblocks.lib" )
#pragma comment ( lib, "multiplayer.lib" )
#pragma comment ( lib, "system.lib" )
#pragma comment ( lib, "convx.lib" )
#pragma comment ( lib, "conv3ds.lib" )
#pragma comment ( lib, "convmd2.lib" )
#pragma comment ( lib, "convmd3.lib" )
#pragma comment ( lib, "convmdl.lib" )
#pragma comment ( lib, "terrain.lib" )
#pragma comment ( lib, "shell32.lib" )
// Controls escapekey detection
extern int g_iDarkGameSDKQuit;
// Prototypes
void DarkGDK ( void );
bool LoopGDK ( void );
From here if you open one of the include files then you can follow the same protocols to add your own commands. Before adding any commands, make sure the command exists in DBPro.
ie. If you open the source file - DarkSDKBasic3D.h - then any commands in the DBPro manual (under Basic3D) that may be missing in this file you can add them here.
Fingers crossed this has helped. A lot of commands have been put back in from the 2010 update but still there will be some missing.
Warning! May contain Nuts!