- Main Page
- Related Pages
- Modules
- Files

- File List

transform.hpp
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 #ifndef GLM_GTX_transform
42 #define GLM_GTX_transform GLM_VERSION
43
44 // Dependency:
45 #include "../glm.hpp"
46 #include "../gtc/matrix_transform.hpp"
47
48 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
49 # pragma message("GLM: GLM_GTX_transform extension included")
50 #endif
51
52 namespace glm
53 {
56
59 // - See also: \link glm::translate GLM_GTC_matrix_transform \endlink
60 template <typename T>
61 detail::tmat4x4<T> translate(
62 T x, T y, T z);
63
66 // - See also: \link glm::translate GLM_GTC_matrix_transform \endlink
67 template <typename T>
68 detail::tmat4x4<T> translate(
69 detail::tmat4x4<T> const & m,
70 T x, T y, T z);
71
74 // - See also: \link glm::translate GLM_GTC_matrix_transform \endlink
75 template <typename T>
76 detail::tmat4x4<T> translate(
77 detail::tvec3<T> const & v);
78
81 // - See also: \link glm::rotate GLM_GTC_matrix_transform \endlink
82 template <typename T>
83 detail::tmat4x4<T> rotate(
84 T angle,
85 T x, T y, T z);
86
89 // - See also: \link glm::rotate GLM_GTC_matrix_transform \endlink
90 template <typename T>
91 detail::tmat4x4<T> rotate(
92 T angle,
93 detail::tvec3<T> const & v);
94
97 // - See also: \link glm::rotate GLM_GTC_matrix_transform \endlink
98 template <typename T>
99 detail::tmat4x4<T> rotate(
100 detail::tmat4x4<T> const & m,
101 T angle,
102 T x, T y, T z);
103
106 // - See also: \link glm::scale GLM_GTC_matrix_transform \endlink
107 template <typename T>
108 detail::tmat4x4<T> scale(
109 T x, T y, T z);
110
113 // - See also: \link glm::scale GLM_GTC_matrix_transform \endlink
114 template <typename T>
115 detail::tmat4x4<T> scale(
116 detail::tmat4x4<T> const & m,
117 T x, T y, T z);
118
121 // - See also: \link glm::scale GLM_GTC_matrix_transform \endlink
122 template <typename T>
123 detail::tmat4x4<T> scale(
124 detail::tvec3<T> const & v);
125
127 }// namespace glm
128
129 #include "transform.inl"
130
131 #endif//GLM_GTX_transform