Changeset 1375


Ignore:
Timestamp:
May 12, 2012, 5:55:47 PM (7 years ago)
Author:
touky
Message:

Added some convenient functions in camera.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/camera.cpp

    r1362 r1375  
    6262}
    6363
     64void Camera::SetTarget(vec3 const &pos)
     65{
     66    m_target = pos;
     67}
     68
     69vec3 Camera::GetTarget()
     70{
     71    return m_target;
     72}
     73
    6474mat4 const &Camera::GetViewMatrix()
    6575{
  • trunk/src/camera.h

    r1353 r1375  
    3535    void SetPerspective(float fov, float width, float height,
    3636                        float near, float far);
     37    void SetTarget(vec3 const &pos);
     38    vec3 GetTarget();
    3739
    3840    mat4 const &GetViewMatrix();
Note: See TracChangeset for help on using the changeset viewer.