MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / Scene

Method Scene

testbed/src/Scene.cpp:35–43  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

33
34// Constructor
35Scene::Scene(const std::string& name, EngineSettings& engineSettings, bool isShadowMappingEnabled)
36 : mName(name), mEngineSettings(engineSettings), mLastMouseX(0), mLastMouseY(0), mInterpolationFactor(0.0f),
37 mCurrentCameraVerticalAngle(0.0), mViewportX(0), mViewportY(0),
38 mViewportWidth(0), mViewportHeight(0), mIsShadowMappingEnabled(isShadowMappingEnabled),
39 mAreContactPointsDisplayed(true), mAreContactNormalsDisplayed(false), mAreBroadPhaseAABBsDisplayed(false),
40 mAreCollidersAABBsDisplayed(false), mAreCollisionShapesDisplayed(false), mAreCollisionShapesNormalsDisplayed(false),
41 mIsWireframeEnabled(false), mInitZoom(2.0f), mIsCameraRotationAnimationEnabled(false) {
42
43}
44
45// Destructor
46Scene::~Scene() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected