36 #include "../gtc/quaternion.hpp"
37 #include "../vec2.hpp"
38 #include "../vec3.hpp"
39 #include "../vec4.hpp"
40 #include "../mat2x2.hpp"
41 #include "../mat2x3.hpp"
42 #include "../mat2x4.hpp"
43 #include "../mat3x2.hpp"
44 #include "../mat3x3.hpp"
45 #include "../mat3x4.hpp"
46 #include "../mat4x2.hpp"
47 #include "../mat4x3.hpp"
48 #include "../mat4x4.hpp"
51 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
52 # pragma message("GLM: GLM_GTC_type_ptr extension included")
62 template<
typename genType>
63 GLM_FUNC_DECL
typename genType::value_type
const *
value_ptr(genType
const & vec);
68 GLM_FUNC_DECL tvec2<T, defaultp>
make_vec2(T
const *
const ptr);
73 GLM_FUNC_DECL tvec3<T, defaultp>
make_vec3(T
const *
const ptr);
78 GLM_FUNC_DECL tvec4<T, defaultp>
make_vec4(T
const *
const ptr);
83 GLM_FUNC_DECL tmat2x2<T, defaultp>
make_mat2x2(T
const *
const ptr);
88 GLM_FUNC_DECL tmat2x3<T, defaultp>
make_mat2x3(T
const *
const ptr);
93 GLM_FUNC_DECL tmat2x4<T, defaultp>
make_mat2x4(T
const *
const ptr);
98 GLM_FUNC_DECL tmat3x2<T, defaultp>
make_mat3x2(T
const *
const ptr);
103 GLM_FUNC_DECL tmat3x3<T, defaultp>
make_mat3x3(T
const *
const ptr);
108 GLM_FUNC_DECL tmat3x4<T, defaultp>
make_mat3x4(T
const *
const ptr);
113 GLM_FUNC_DECL tmat4x2<T, defaultp>
make_mat4x2(T
const *
const ptr);
118 GLM_FUNC_DECL tmat4x3<T, defaultp>
make_mat4x3(T
const *
const ptr);
123 GLM_FUNC_DECL tmat4x4<T, defaultp>
make_mat4x4(T
const *
const ptr);
128 GLM_FUNC_DECL tmat2x2<T, defaultp>
make_mat2(T
const *
const ptr);
133 GLM_FUNC_DECL tmat3x3<T, defaultp>
make_mat3(T
const *
const ptr);
138 GLM_FUNC_DECL tmat4x4<T, defaultp>
make_mat4(T
const *
const ptr);
143 GLM_FUNC_DECL tquat<T, defaultp>
make_quat(T
const *
const ptr);
148 #include "type_ptr.inl"
GLM_FUNC_DECL tmat4x4< T, defaultp > make_mat4x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tvec3< T, defaultp > make_vec3(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL tmat3x4< T, defaultp > make_mat3x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat4x2< T, defaultp > make_mat4x2(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 tvec4< T, defaultp > make_vec4(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL tmat2x4< T, defaultp > make_mat2x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat3x3< T, defaultp > make_mat3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat2x2< T, defaultp > make_mat2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat2x3< T, defaultp > make_mat2x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat2x2< T, defaultp > make_mat2x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat3x3< T, defaultp > make_mat3x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tvec2< T, defaultp > make_vec2(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL tmat3x2< T, defaultp > make_mat3x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat4x3< T, defaultp > make_mat4x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL tmat4x4< T, defaultp > make_mat4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL genType::value_type const * value_ptr(genType const &vec)
Return the constant address to the data of the input parameter.