1. 4FIPS
  2. PHOTOS
  3. VIDEOS
  4. APPS
  5. CODE
  6. FORUMS
  7. ABOUT
/*---{fips-meta:file-header:public}-------------------------------------*\
| o     _______ __         _______  _   ______           __            o |
|      |    ___|__|.-----.|     __|| | |      |.-----.--|  |.-----.      |
|      |    ___|  ||  _  ||__     ||_| |   ---||  _  |  _  ||  -__|      |
|      |___|   |__||   __||_______|    |______||_____|_____||_____|      |
|       FipS' CODE |__| > > > > > > > > > > > > > > > > > > > > > >      |
|    (c) 2004-12 +++ Filip Stoklas, aka FipS, http://www.4FipS.com +++   |
| o         THIS CODE IS FREE - LICENSED UNDER THE MIT LICENSE         o |
\*----------------------------------------------------------------------*/
#ifndef FS_HEADER__sources__fs_math__ma_matrix4_projection_h__GUARD
#define FS_HEADER__sources__fs_math__ma_matrix4_projection_h__GUARD

#include "ma_matrix4.h"

namespace fs { namespace math {

// these functions follow the OpenGL conventions, see the OpenGL spec PDF for more info:
template <typename T> Matrix4<T> make_ortho(T left, T right, T bottom, T top, T znear, T zfar);
template <typename T> Matrix4<T> make_frustum(T left, T right, T bottom, T top, T znear, T zfar);
template <typename T> Matrix4<T> make_perspective(T fovy_deg, T aspect, T znear, T zfar);

}} // namespace fs::math

#include "ma_matrix4_projection.inl"

#endif // FS_HEADER__sources__fs_math__ma_matrix4_projection_h__GUARD