55PL_ALWAYS_INLINE
bool plCamera::IsPerspective()
const
61PL_ALWAYS_INLINE
bool plCamera::IsOrthographic()
const
71PL_ALWAYS_INLINE
float plCamera::GetShutterSpeed()
const
73 return m_fShutterSpeed;
76PL_ALWAYS_INLINE
void plCamera::SetShutterSpeed(
float fShutterSpeed)
78 m_fShutterSpeed = fShutterSpeed;
81PL_ALWAYS_INLINE
float plCamera::GetExposure()
const
86PL_ALWAYS_INLINE
void plCamera::SetExposure(
float fExposure)
88 m_fExposure = fExposure;
91PL_ALWAYS_INLINE
float plCamera::GetAperture()
const
96PL_ALWAYS_INLINE
void plCamera::SetAperture(
float fAperture)
98 m_fAperture = fAperture;
101PL_ALWAYS_INLINE
float plCamera::GetISO()
const
106PL_ALWAYS_INLINE
void plCamera::SetISO(
float fISO)
112PL_ALWAYS_INLINE
float plCamera::GetFocusDistance()
const
114 return m_fFocusDistance;
117PL_ALWAYS_INLINE
void plCamera::SetFocusDistance(
float fFocusDistance)
119 m_fFocusDistance = fFocusDistance;
124 return m_mViewMatrix[
static_cast<int>(eye)];
plVec3 GetPosition(plCameraEye eye=plCameraEye::Left) const
Returns the position of the camera that should be used for rendering etc.
Definition Camera.cpp:63
plVec3 GetCenterDirForwards() const
Returns the average forwards vector.
Definition Camera_inl.h:11
plVec3 GetCenterDirRight() const
Returns the average right vector.
Definition Camera_inl.h:27
float GetFovOrDim() const
Returns the fFovOrDim parameter that was passed to SetCameraProjectionAndMode().
Definition Camera_inl.h:45
plVec3 GetCenterDirUp() const
Returns the average up vector.
Definition Camera_inl.h:19
const plMat4 & GetViewMatrix(plCameraEye eye=plCameraEye::Left) const
Returns the view matrix for the given eye.
Definition Camera_inl.h:122
plVec3 GetDirForwards(plCameraEye eye=plCameraEye::Left) const
Returns the forwards vector that should be used for rendering etc.
Definition Camera.cpp:68
plVec3 GetCenterPosition() const
Returns the average camera position.
Definition Camera_inl.h:3
bool IsStereoscopic() const
Whether this is a stereoscopic camera.
Definition Camera_inl.h:66
plVec3 GetDirRight(plCameraEye eye=plCameraEye::Left) const
Returns the right vector that should be used for rendering etc.
Definition Camera.cpp:84
float GetNearPlane() const
Returns the near plane distance that was passed to SetCameraProjectionAndMode().
Definition Camera_inl.h:35
float GetFarPlane() const
Returns the far plane distance that was passed to SetCameraProjectionAndMode().
Definition Camera_inl.h:40
plVec3 GetDirUp(plCameraEye eye=plCameraEye::Left) const
Returns the up vector that should be used for rendering etc.
Definition Camera.cpp:76
plCameraMode::Enum GetCameraMode() const
Returns the current camera mode.
Definition Camera_inl.h:50
PL_DECLARE_IF_FLOAT_TYPE const plVec3Template< Type > GetNormalized() const
Returns a normalized version of this vector, leaves the vector itself unchanged.
Definition Vec3_inl.h:86
Enum
Definition Camera.h:16
@ PerspectiveFixedFovY
Perspective camera, the fov for Y is fixed, X depends on the aspect ratio.
Definition Camera.h:19
@ PerspectiveFixedFovX
Perspective camera, the fov for X is fixed, Y depends on the aspect ratio.
Definition Camera.h:18
@ Stereo
A stereo camera with view/projection matrices provided by an HMD.
Definition Camera.h:22
@ OrthoFixedWidth
Orthographic camera, the width is fixed, the height depends on the aspect ratio.
Definition Camera.h:20
@ OrthoFixedHeight
Orthographic camera, the height is fixed, the width depends on the aspect ratio.
Definition Camera.h:21