38 #include "../gtc/quaternion.hpp"
39 #include "../gtc/vec1.hpp"
40 #include "../vec2.hpp"
41 #include "../vec3.hpp"
42 #include "../vec4.hpp"
43 #include "../mat2x2.hpp"
44 #include "../mat2x3.hpp"
45 #include "../mat2x4.hpp"
46 #include "../mat3x2.hpp"
47 #include "../mat3x3.hpp"
48 #include "../mat3x4.hpp"
49 #include "../mat4x2.hpp"
50 #include "../mat4x3.hpp"
51 #include "../mat4x4.hpp"
54 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
55 # pragma message("GLM: GLM_GTC_type_ptr extension included")
65 template<
typename genType>
66 GLM_FUNC_DECL
typename genType::value_type
const *
value_ptr(genType
const& v);
70 template <
typename T, qualifier Q>
71 GLM_FUNC_DECL vec<1, T, Q>
make_vec1(vec<1, T, Q>
const& v);
75 template <
typename T, qualifier Q>
76 GLM_FUNC_DECL vec<1, T, Q>
make_vec1(vec<2, T, Q>
const& v);
80 template <
typename T, qualifier Q>
81 GLM_FUNC_DECL vec<1, T, Q>
make_vec1(vec<3, T, Q>
const& v);
85 template <
typename T, qualifier Q>
86 GLM_FUNC_DECL vec<1, T, Q>
make_vec1(vec<4, T, Q>
const& v);
90 template <
typename T, qualifier Q>
91 GLM_FUNC_DECL vec<2, T, Q>
make_vec2(vec<1, T, Q>
const& v);
95 template <
typename T, qualifier Q>
96 GLM_FUNC_DECL vec<2, T, Q>
make_vec2(vec<2, T, Q>
const& v);
100 template <
typename T, qualifier Q>
101 GLM_FUNC_DECL vec<2, T, Q>
make_vec2(vec<3, T, Q>
const& v);
105 template <
typename T, qualifier Q>
106 GLM_FUNC_DECL vec<2, T, Q>
make_vec2(vec<4, T, Q>
const& v);
110 template <
typename T, qualifier Q>
111 GLM_FUNC_DECL vec<3, T, Q>
make_vec3(vec<1, T, Q>
const& v);
115 template <
typename T, qualifier Q>
116 GLM_FUNC_DECL vec<3, T, Q>
make_vec3(vec<2, T, Q>
const& v);
120 template <
typename T, qualifier Q>
121 GLM_FUNC_DECL vec<3, T, Q>
make_vec3(vec<3, T, Q>
const& v);
125 template <
typename T, qualifier Q>
126 GLM_FUNC_DECL vec<3, T, Q>
make_vec3(vec<4, T, Q>
const& v);
130 template <
typename T, qualifier Q>
131 GLM_FUNC_DECL vec<4, T, Q>
make_vec4(vec<1, T, Q>
const& v);
135 template <
typename T, qualifier Q>
136 GLM_FUNC_DECL vec<4, T, Q>
make_vec4(vec<2, T, Q>
const& v);
140 template <
typename T, qualifier Q>
141 GLM_FUNC_DECL vec<4, T, Q>
make_vec4(vec<3, T, Q>
const& v);
145 template <
typename T, qualifier Q>
146 GLM_FUNC_DECL vec<4, T, Q>
make_vec4(vec<4, T, Q>
const& v);
151 GLM_FUNC_DECL vec<2, T, defaultp>
make_vec2(T
const *
const ptr);
156 GLM_FUNC_DECL vec<3, T, defaultp>
make_vec3(T
const *
const ptr);
161 GLM_FUNC_DECL vec<4, T, defaultp>
make_vec4(T
const *
const ptr);
166 GLM_FUNC_DECL mat<2, 2, T, defaultp>
make_mat2x2(T
const *
const ptr);
171 GLM_FUNC_DECL mat<2, 3, T, defaultp>
make_mat2x3(T
const *
const ptr);
176 GLM_FUNC_DECL mat<2, 4, T, defaultp>
make_mat2x4(T
const *
const ptr);
181 GLM_FUNC_DECL mat<3, 2, T, defaultp>
make_mat3x2(T
const *
const ptr);
186 GLM_FUNC_DECL mat<3, 3, T, defaultp>
make_mat3x3(T
const *
const ptr);
191 GLM_FUNC_DECL mat<3, 4, T, defaultp>
make_mat3x4(T
const *
const ptr);
196 GLM_FUNC_DECL mat<4, 2, T, defaultp>
make_mat4x2(T
const *
const ptr);
201 GLM_FUNC_DECL mat<4, 3, T, defaultp>
make_mat4x3(T
const *
const ptr);
206 GLM_FUNC_DECL mat<4, 4, T, defaultp>
make_mat4x4(T
const *
const ptr);
211 GLM_FUNC_DECL mat<2, 2, T, defaultp>
make_mat2(T
const *
const ptr);
216 GLM_FUNC_DECL mat<3, 3, T, defaultp>
make_mat3(T
const *
const ptr);
221 GLM_FUNC_DECL mat<4, 4, T, defaultp>
make_mat4(T
const *
const ptr);
226 GLM_FUNC_DECL tquat<T, defaultp>
make_quat(T
const *
const ptr);
231 #include "type_ptr.inl"
GLM_FUNC_DECL mat< 4, 4, T, defaultp > make_mat4x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 4, 3, T, defaultp > make_mat4x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL genType::value_type const * value_ptr(genType const &v)
Return the constant address to the data of the input parameter.
GLM_FUNC_DECL mat< 3, 3, T, defaultp > make_mat3x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 2, 2, T, defaultp > make_mat2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL vec< 4, T, defaultp > make_vec4(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL vec< 3, T, defaultp > make_vec3(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL mat< 3, 4, T, defaultp > make_mat3x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tquat< T, defaultp > make_quat(T const *const ptr)
Build a quaternion from a pointer.
GLM_FUNC_DECL mat< 3, 2, T, defaultp > make_mat3x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 2, 2, T, defaultp > make_mat2x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 3, 3, T, defaultp > make_mat3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 4, 2, T, defaultp > make_mat4x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL vec< 2, T, defaultp > make_vec2(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL mat< 2, 4, T, defaultp > make_mat2x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL vec< 1, T, Q > make_vec1(vec< 4, T, Q > const &v)
Build a vector from a pointer.
GLM_FUNC_DECL mat< 2, 3, T, defaultp > make_mat2x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL mat< 4, 4, T, defaultp > make_mat4(T const *const ptr)
Build a matrix from a pointer.