A Camera used for stereoscopic displays.


Public Member Functions

  • CameraStereo ()
  • CameraStereo (int pixelWidth, int pixelHeight, float fov)
  • CameraStereo (int pixelWidth, int pixelHeight, float fov, float nearPlane, float farPlane)

Protected Member Functions

  • void
    calcViewMatrix () const override
  • void
    calcInverseView () const override
  • void
    calcProjection () const override
  • void
    getShiftedClipCoordinates (float clipDist, float ratio, vec3 *topLeft, vec3 *topRight, vec3 *bottomLeft, vec3 *bottomRight) const
  • calcRay (float u, float v, float imagePlaneAspectRatio) const override
  • void
    calcMatrices () const
  • void
    getClipCoordinates (float clipDist, float ratio, vec3 *topLeft, vec3 *topRight, vec3 *bottomLeft, vec3 *bottomRight) const

Protected Attributes

  • mat4
    mProjectionMatrixLeft
  • mat4
    mInverseProjectionMatrixLeft
  • mat4
    mProjectionMatrixRight
  • mat4
    mInverseProjectionMatrixRight
  • mat4
    mViewMatrixLeft
  • mat4
    mInverseModelViewMatrixLeft
  • mat4
    mViewMatrixRight
  • mat4
    mInverseModelViewMatrixRight
  • vec2
    mLensShift
  • vec3
    mEyePoint
  • vec3
    mViewDirection
  • quat
    mOrientation
  • vec3
    mWorldUp
  • float
    mFov
  • float
    mAspectRatio
  • float
    mNearClip
  • float
    mFarClip
  • float
    mPivotDistance
  • vec3
    mU
  • vec3
    mV
  • vec3
    mW
  • mat4
    mProjectionMatrix
  • mat4
    mInverseProjectionMatrix
  • bool
    mProjectionCached
  • mat4
    mViewMatrix
  • bool
    mModelViewCached
  • mat4
    mInverseModelViewMatrix
  • bool
    mInverseModelViewCached
  • float
    mFrustumLeft
  • float
    mFrustumRight
  • float
    mFrustumTop
  • float
    mFrustumBottom