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

Method Camera

testbed/opengl-framework/src/Camera.cpp:36–48  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

34
35// Constructor
36Camera::Camera() : Object3D() {
37
38 // Set default values
39 mFieldOfView = 45.0f;
40 mSceneRadius = 1.0f;
41 mNearPlane = 0.1f;
42 mFarPlane = 10.0f;
43 mWidth = 1;
44 mHeight = 1;
45
46 // Update the projection matrix
47 updateProjectionMatrix();
48}
49
50// Destructor
51Camera::~Camera() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected