Advertisement
Guest User

Untitled

a guest
Sep 10th, 2012
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.29 KB | None | 0 0
  1. #include "pch.h"
  2.  
  3. DemoCore *mCore;
  4. DemoApp  *mApp;
  5.  
  6. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
  7.     mCore = new DemoCore;
  8.     mCore->init();
  9.  
  10.     mCore->setDemoTitle("Demonstration - Havok ( Rigid ), Release");
  11. #if _DEBUG
  12.     mCore->setDemoTitle("Demonstration - Havok ( Rigid ), Debug");
  13. #endif
  14.  
  15.     mApp  = new DemoApp;
  16.     mApp->init();
  17.  
  18.     while(TRUE) {
  19.         mCore->draw();
  20.         mCore->update();
  21.         mApp->update();
  22.  
  23.         if(!mCore->isActive()) break;
  24.     }
  25.  
  26.     delete mApp;
  27.     delete mCore;
  28.  
  29.     return 0;
  30. }
  31.  
  32. #include <Common/Base/keycode.cxx>
  33.  
  34. #if !defined HK_FEATURE_PRODUCT_PHYSICS
  35. #error Physics is needed to build this demo. It is included in the common package for reference only.
  36. #endif
  37.  
  38. #undef HK_FEATURE_PRODUCT_AI
  39. #undef HK_FEATURE_PRODUCT_ANIMATION
  40. #undef HK_FEATURE_PRODUCT_CLOTH
  41. #undef HK_FEATURE_PRODUCT_DESTRUCTION
  42. #undef HK_FEATURE_PRODUCT_BEHAVIOR
  43. #undef HK_FEATURE_PRODUCT_NEW_PHYSICS
  44. #define HK_FEATURE_REFLECTION_PHYSICS
  45. #define HK_CLASSES_FILE <Common/Serialize/Classlist/hkClasses.h>
  46. #define HK_EXCLUDE_FEATURE_MemoryTracker
  47. #define HK_EXCLUDE_FEATURE_SerializeDeprecatedPre700
  48. #define HK_EXCLUDE_FEATURE_RegisterVersionPatches
  49. #define HK_EXCLUDE_LIBRARY_hkGeometryUtilities
  50.  
  51. #include <Common/Base/Config/hkProductFeatures.cxx>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement