Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- DemoCore *mCore;
- DemoApp *mApp;
- int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
- mCore = new DemoCore;
- mCore->init();
- mCore->setDemoTitle("Demonstration - Havok ( Rigid ), Release");
- #if _DEBUG
- mCore->setDemoTitle("Demonstration - Havok ( Rigid ), Debug");
- #endif
- mApp = new DemoApp;
- mApp->init();
- while(TRUE) {
- mCore->draw();
- mCore->update();
- mApp->update();
- if(!mCore->isActive()) break;
- }
- delete mApp;
- delete mCore;
- return 0;
- }
- #include <Common/Base/keycode.cxx>
- #if !defined HK_FEATURE_PRODUCT_PHYSICS
- #error Physics is needed to build this demo. It is included in the common package for reference only.
- #endif
- #undef HK_FEATURE_PRODUCT_AI
- #undef HK_FEATURE_PRODUCT_ANIMATION
- #undef HK_FEATURE_PRODUCT_CLOTH
- #undef HK_FEATURE_PRODUCT_DESTRUCTION
- #undef HK_FEATURE_PRODUCT_BEHAVIOR
- #undef HK_FEATURE_PRODUCT_NEW_PHYSICS
- #define HK_FEATURE_REFLECTION_PHYSICS
- #define HK_CLASSES_FILE <Common/Serialize/Classlist/hkClasses.h>
- #define HK_EXCLUDE_FEATURE_MemoryTracker
- #define HK_EXCLUDE_FEATURE_SerializeDeprecatedPre700
- #define HK_EXCLUDE_FEATURE_RegisterVersionPatches
- #define HK_EXCLUDE_LIBRARY_hkGeometryUtilities
- #include <Common/Base/Config/hkProductFeatures.cxx>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement