# GLM: matrix_projection.hpp Source File

- Main Page
- Namespaces
- Files

- File List

# matrix_projection.hpp

    00001
    00002 // OpenGL Mathematics Copyright (c) 2005 - 2009 G-Truc Creation (www.g-truc.net)
    00004 // Created : 2005-12-21
    00005 // Updated : 2009-04-29
    00006 // Licence : This source is under MIT License
    00007 // File    : glm/gtx/matrix_projection.h
    00009 // Dependency:
    00010 // - GLM core
    00011 // - GLM_GTC_matrix_projection
    00013
    00014 #ifndef glm_gtx_matrix_projection
    00015 #define glm_gtx_matrix_projection
    00016
    00017 // Dependency:
    00018 #include "../glm.hpp"
    00019 #include "../gtc/matrix_projection.hpp"
    00020
    00021 namespace glm
    00022 {
    00023         namespace test{
    00024                 void main_gtx_matrix_projection();
    00025         }//namespace test
    00026
    00027     namespace gtx{
    00029     namespace matrix_projection
    00030     {
    00033                 template <typename valType>
    00034                 detail::tmat4x4<valType> perspectiveFov(
    00035                         valType const & fov,
    00036                         valType const & width,
    00037                         valType const & height,
    00038                         valType const & zNear,
    00039                         valType const & zFar);
    00040
    00043         template <typename T>
    00044                 detail::tmat4x4<T> infinitePerspective(
    00045                         T fovy, T aspect, T zNear);
    00046
    00049         template <typename T>
    00050                 detail::tmat4x4<T> tweakedInfinitePerspective(
    00051                         T fovy, T aspect, T zNear);
    00052
    00053     }//namespace matrix_projection
    00054     }//namespace gtx
    00055 }//namespace glm
    00056
    00057 #define GLM_GTX_matrix_projection namespace gtc::matrix_projection; using namespace gtx::matrix_projection
    00058 #ifndef GLM_GTX_GLOBAL
    00059 namespace glm {using GLM_GTX_matrix_projection;}
    00060 #endif//GLM_GTX_GLOBAL
    00061
    00062 #include "matrix_projection.inl"
    00063
    00064 #endif//glm_gtx_matrix_projection