GLM Version 0.9.0
Functions

glm::gtc::matrix_projection Namespace Reference

GLM_GTC_matrix_projection: Varius ways to build and operate on projection matrices. More...

Functions

template<typename T >
detail::tmat4x4< T > frustum (T const &left, T const &right, T const &bottom, T const &top, T const &nearVal, T const &farVal)
 Creates a frustum matrix.
template<typename T >
detail::tmat4x4< T > ortho (T const &left, T const &right, T const &bottom, T const &top, T const &zNear, T const &zFar)
 Creates a matrix for an orthographic parallel viewing volume.
template<typename T >
detail::tmat4x4< T > ortho (T const &left, T const &right, T const &bottom, T const &top)
 Creates a matrix for projecting two-dimensional coordinates onto the screen.
template<typename T >
detail::tmat4x4< T > perspective (T const &fovy, T const &aspect, T const &zNear, T const &zFar)
 Creates a matrix for a symetric perspective-view frustum.
template<typename T , typename U >
detail::tvec3< T > project (detail::tvec3< T > const &obj, detail::tmat4x4< T > const &model, detail::tmat4x4< T > const &proj, detail::tvec4< U > const &viewport)
 Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates.
template<typename T , typename U >
detail::tvec3< T > unProject (detail::tvec3< T > const &win, detail::tmat4x4< T > const &model, detail::tmat4x4< T > const &proj, detail::tvec4< U > const &viewport)
 Map the specified window coordinates (win.x, win.y, win.z) into object coordinates.

Detailed Description

GLM_GTC_matrix_projection: Varius ways to build and operate on projection matrices.


Function Documentation

detail::tmat4x4<T> glm::gtc::matrix_projection::frustum ( T const &  left,
T const &  right,
T const &  bottom,
T const &  top,
T const &  nearVal,
T const &  farVal 
)

Creates a frustum matrix.

From GLM_GTC_matrix_projection extension.

detail::tmat4x4<T> glm::gtc::matrix_projection::ortho ( T const &  left,
T const &  right,
T const &  bottom,
T const &  top,
T const &  zNear,
T const &  zFar 
)

Creates a matrix for an orthographic parallel viewing volume.

From GLM_GTC_matrix_projection extension.

detail::tmat4x4<T> glm::gtc::matrix_projection::ortho ( T const &  left,
T const &  right,
T const &  bottom,
T const &  top 
)

Creates a matrix for projecting two-dimensional coordinates onto the screen.

From GLM_GTC_matrix_projection extension.

detail::tmat4x4<T> glm::gtc::matrix_projection::perspective ( T const &  fovy,
T const &  aspect,
T const &  zNear,
T const &  zFar 
)

Creates a matrix for a symetric perspective-view frustum.

From GLM_GTC_matrix_projection extension.

detail::tvec3<T> glm::gtc::matrix_projection::project ( detail::tvec3< T > const &  obj,
detail::tmat4x4< T > const &  model,
detail::tmat4x4< T > const &  proj,
detail::tvec4< U > const &  viewport 
)

Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates.

From GLM_GTC_matrix_projection extension.

detail::tvec3<T> glm::gtc::matrix_projection::unProject ( detail::tvec3< T > const &  win,
detail::tmat4x4< T > const &  model,
detail::tmat4x4< T > const &  proj,
detail::tvec4< U > const &  viewport 
)

Map the specified window coordinates (win.x, win.y, win.z) into object coordinates.

From GLM_GTC_matrix_projection extension.