Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_Camera.h
| Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | public: | ||||
| /** Sets the validity of the projection matrix. Call this if you change camera | /** Sets the validity of the projection matrix. Call this if you change camera | ||||
| * data (eg lens, near plane, far plane) and require the projection matrix to be | * data (eg lens, near plane, far plane) and require the projection matrix to be | ||||
| * recalculated. | * recalculated. | ||||
| */ | */ | ||||
| void InvalidateProjectionMatrix(bool valid = false); | void InvalidateProjectionMatrix(bool valid = false); | ||||
| /** Gets the modelview matrix that is used by the rasterizer. | /** Gets the modelview matrix that is used by the rasterizer. | ||||
| * \warning If the Camera is a dynamic object then this method may return garbage. Use GetCameraToWorld() instead. | * \warning If the Camera is a dynamic object then this method may return garbage. Use GetWorldToCamera() instead. | ||||
| */ | */ | ||||
| const MT_Matrix4x4& GetModelviewMatrix() const; | const MT_Matrix4x4& GetModelviewMatrix() const; | ||||
| /** Gets the aperture. */ | /** Gets the aperture. */ | ||||
| float GetLens() const; | float GetLens() const; | ||||
| /** Gets the ortho scale. */ | /** Gets the ortho scale. */ | ||||
| float GetScale() const; | float GetScale() const; | ||||
| /** Gets the horizontal size of the sensor - for camera matching */ | /** Gets the horizontal size of the sensor - for camera matching */ | ||||
| ▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines | |||||