Constructor
| 77 | |
| 78 | // Constructor |
| 79 | TestbedApplication::TestbedApplication() |
| 80 | : mIsInitialized(false), mGui(this), mCurrentScene(nullptr), |
| 81 | mDefaultEngineSettings(EngineSettings::defaultSettings()), |
| 82 | mFPS(0), mNbFrames(0), mPreviousTime(0), |
| 83 | mLastTimeComputedFPS(0), mFrameTime(0), mTotalPhysicsTime(0), mPhysicsStepTime(0), |
| 84 | mSinglePhysicsStepEnabled(false), mSinglePhysicsStepDone(false), |
| 85 | mWindowToFramebufferRatio(Vector2(1, 1)), mIsShadowMappingEnabled(true), |
| 86 | mAreContactPointsDisplayed(false), mAreContactNormalsDisplayed(false), |
| 87 | mAreBroadPhaseAABBsDisplayed(false), mAreCollidersAABBsDisplayed(false), |
| 88 | mAreCollisionShapesDisplayed(false), mAreCollisionShapesNormalsDisplayed(false), |
| 89 | mAreObjectsWireframeEnabled(false), mIsVSyncEnabled(false), mIsDebugRendererEnabled(false) { |
| 90 | |
| 91 | init(); |
| 92 | } |
| 93 | |
| 94 | // Destructor |
| 95 | TestbedApplication::~TestbedApplication() { |