master
ブランチ master
VulkanExample / dep / include / glm / gtc / matrix_access.hpp
1.4 KB、60行 生 Blame 履歴
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
13#pragma once
14
15// Dependency:
16#include "../detail/setup.hpp"
17
18#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
19# pragma message("GLM: GLM_GTC_matrix_access extension included")
20#endif
21
22namespace glm
23{
24 /// @addtogroup gtc_matrix_access
25 /// @{
26
27 /// Get a specific row of a matrix.
28 /// @see gtc_matrix_access
29 template<typename genType>
30 GLM_FUNC_DECL typename genType::row_type row(
31 genType const& m,
32 length_t index);
33
34 /// Set a specific row to a matrix.
35 /// @see gtc_matrix_access
36 template<typename genType>
37 GLM_FUNC_DECL genType row(
38 genType const& m,
39 length_t index,
40 typename genType::row_type const& x);
41
42 /// Get a specific column of a matrix.
43 /// @see gtc_matrix_access
44 template<typename genType>
45 GLM_FUNC_DECL typename genType::col_type column(
46 genType const& m,
47 length_t index);
48
49 /// Set a specific column to a matrix.
50 /// @see gtc_matrix_access
51 template<typename genType>
52 GLM_FUNC_DECL genType column(
53 genType const& m,
54 length_t index,
55 typename genType::col_type const& x);
56
57 /// @}
58}//namespace glm
59
60#include "matrix_access.inl"