- 分享
- 0
- 人气
- 0
- 主题
- 62
- 帖子
- 6367
- UID
- 51295
- 积分
- 3715
- 阅读权限
- 21
- 注册时间
- 2006-11-21
- 最后登录
- 2022-1-19
- 在线时间
- 3699 小时
|
DarkGDK
主程式
- // 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
复制代码
DarkGDK.h
- // Added to supress Windows.h define - required by physics engine
- #define NOMINMAX
- // mike - 220107 - use this now
- #ifndef _CRT_SECURE_NO_DEPRECATE
- #define _CRT_SECURE_NO_DEPRECATE
- #endif
- #if _MSC_VER < 1300
- #include <wtypes.h>
- #ifndef ADDRESS_TAG_BIT
- typedef DWORD *DWORD_PTR;
- #endif
- #endif
- #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>
- #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" )
- extern int g_iDarkGameSDKQuit;
- // 070706 - GDK name change for v1.2
- //void DarkSDK ( void );
- //bool LoopSDK ( void );
- void DarkGDK ( void );
- bool LoopGDK ( void );
复制代码
我看我看他们C++ Demo Project都有Copy进去,我Copy完了,就是有Error |
|