Ignore:
Timestamp:
Feb 16, 2011, 7:04:08 PM (11 years ago)
Author:
sam
Message:

Implement float4x4::frustum() and float4x4::perspective() to build
projection matrices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/matrix.h

    r651 r652  
    195195    T det() const;
    196196    Mat4<T> invert() const;
     197
     198    static Mat4<T> frustum(T left, T right, T bottom, T top, T near, T far);
     199    static Mat4<T> perspective(T theta, T width, T height, T near, T far);
    197200
    198201    inline Mat4<T> operator +(Mat4<T> const val) const
Note: See TracChangeset for help on using the changeset viewer.