matrix_access.hpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /// @ref gtc_matrix_access
  2. /// @file glm/gtc/matrix_access.hpp
  3. ///
  4. /// @see core (dependence)
  5. ///
  6. /// @defgroup gtc_matrix_access GLM_GTC_matrix_access
  7. /// @ingroup gtc
  8. ///
  9. /// Include <glm/gtc/matrix_access.hpp> to use the features of this extension.
  10. ///
  11. /// Defines functions to access rows or columns of a matrix easily.
  12. #pragma once
  13. // Dependency:
  14. #include "../detail/setup.hpp"
  15. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  16. # pragma message("GLM: GLM_GTC_matrix_access extension included")
  17. #endif
  18. namespace glm
  19. {
  20. /// @addtogroup gtc_matrix_access
  21. /// @{
  22. /// Get a specific row of a matrix.
  23. /// @see gtc_matrix_access
  24. template<typename genType>
  25. GLM_FUNC_DECL typename genType::row_type row(
  26. genType const& m,
  27. length_t index);
  28. /// Set a specific row to a matrix.
  29. /// @see gtc_matrix_access
  30. template<typename genType>
  31. GLM_FUNC_DECL genType row(
  32. genType const& m,
  33. length_t index,
  34. typename genType::row_type const& x);
  35. /// Get a specific column of a matrix.
  36. /// @see gtc_matrix_access
  37. template<typename genType>
  38. GLM_FUNC_DECL typename genType::col_type column(
  39. genType const& m,
  40. length_t index);
  41. /// Set a specific column to a matrix.
  42. /// @see gtc_matrix_access
  43. template<typename genType>
  44. GLM_FUNC_DECL genType column(
  45. genType const& m,
  46. length_t index,
  47. typename genType::col_type const& x);
  48. /// @}
  49. }//namespace glm
  50. #include "matrix_access.inl"