Base Camera class, which manages the projection and view matrices for a 3-dimensional scene, as well as providing mapping functionality.


Public Member Functions

  • ~Camera ()

Protected Member Functions

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

Protected Attributes

  • 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