matrix_access.hpp

00001 
00002 // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
00004 // Created : 2005-12-27
00005 // Updated : 2010-11-12
00006 // Licence : This source is under MIT License
00007 // File    : glm/gtc/matrix_access.hpp
00009 // Dependency:
00010 // - GLM core
00012 
00013 #ifndef glm_gtc_matrix_access
00014 #define glm_gtc_matrix_access
00015 
00016 // Dependency:
00017 #include "../glm.hpp"
00018 
00019 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
00020 #       pragma message("GLM: GLM_GTC_matrix_access extension included")
00021 #endif
00022 
00023 namespace glm{
00024 namespace gtc{
00026 namespace matrix_access
00027 {
00030 
00033         template <typename genType> 
00034         typename genType::row_type row(
00035                 genType const & m, 
00036                 int index);
00037 
00040     template <typename genType> 
00041         genType row(
00042                 genType const & m, 
00043                 int index, 
00044                 typename genType::row_type const & x);
00045 
00048         template <typename genType> 
00049         typename genType::col_type column(
00050                 genType const & m, 
00051                 int index);
00052 
00055         template <typename genType> 
00056         genType column(
00057                 genType const & m, 
00058                 int index, 
00059                 typename genType::col_type const & x);
00060 
00062 
00063 }//namespace matrix_access
00064 }//namespace gtc
00065 }//namespace glm
00066 
00067 #include "matrix_access.inl"
00068 
00069 namespace glm{using namespace gtc::matrix_access;}
00070 
00071 #endif//glm_gtc_matrix_access