59 #ifndef GLM_GTC_type_ptr
60 #define GLM_GTC_type_ptr
63 #include "../gtc/quaternion.hpp"
64 #include "../vec2.hpp"
65 #include "../vec3.hpp"
66 #include "../vec4.hpp"
67 #include "../mat2x2.hpp"
68 #include "../mat2x3.hpp"
69 #include "../mat2x4.hpp"
70 #include "../mat3x2.hpp"
71 #include "../mat3x3.hpp"
72 #include "../mat3x4.hpp"
73 #include "../mat4x2.hpp"
74 #include "../mat4x3.hpp"
75 #include "../mat4x4.hpp"
78 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
79 # pragma message("GLM: GLM_GTC_type_ptr extension included")
89 template<
typename genType>
90 GLM_FUNC_DECL
typename genType::value_type
const *
value_ptr(genType
const & vec);
95 GLM_FUNC_DECL detail::tvec2<T, defaultp>
make_vec2(T
const *
const ptr);
100 GLM_FUNC_DECL detail::tvec3<T, defaultp>
make_vec3(T
const *
const ptr);
105 GLM_FUNC_DECL detail::tvec4<T, defaultp>
make_vec4(T
const *
const ptr);
110 GLM_FUNC_DECL detail::tmat2x2<T, defaultp>
make_mat2x2(T
const *
const ptr);
115 GLM_FUNC_DECL detail::tmat2x3<T, defaultp>
make_mat2x3(T
const *
const ptr);
120 GLM_FUNC_DECL detail::tmat2x4<T, defaultp>
make_mat2x4(T
const *
const ptr);
125 GLM_FUNC_DECL detail::tmat3x2<T, defaultp>
make_mat3x2(T
const *
const ptr);
130 GLM_FUNC_DECL detail::tmat3x3<T, defaultp>
make_mat3x3(T
const *
const ptr);
135 GLM_FUNC_DECL detail::tmat3x4<T, defaultp>
make_mat3x4(T
const *
const ptr);
140 GLM_FUNC_DECL detail::tmat4x2<T, defaultp>
make_mat4x2(
141 T
const *
const ptr);
146 GLM_FUNC_DECL detail::tmat4x3<T, defaultp>
make_mat4x3(T
const *
const ptr);
151 GLM_FUNC_DECL detail::tmat4x4<T, defaultp>
make_mat4x4(T
const *
const ptr);
156 GLM_FUNC_DECL detail::tmat2x2<T, defaultp>
make_mat2(T
const *
const ptr);
161 GLM_FUNC_DECL detail::tmat3x3<T, defaultp>
make_mat3(T
const *
const ptr);
166 GLM_FUNC_DECL detail::tmat4x4<T, defaultp>
make_mat4(T
const *
const ptr);
171 GLM_FUNC_DECL detail::tquat<T, defaultp>
make_quat(T
const *
const ptr);
176 #include "type_ptr.inl"
178 #endif//GLM_GTC_type_ptr
GLM_FUNC_DECL detail::tmat3x3< T, defaultp > make_mat3x3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tquat< T, defaultp > make_quat(T const *const ptr)
Build a quaternion from a pointer.
GLM_FUNC_DECL detail::tmat3x3< T, defaultp > make_mat3(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat2x2< T, defaultp > make_mat2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat3x2< T, defaultp > make_mat3x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat2x2< T, defaultp > make_mat2x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat3x4< T, defaultp > make_mat3x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat4x2< T, defaultp > make_mat4x2(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat4x4< T, defaultp > make_mat4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat2x4< T, defaultp > make_mat2x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tvec3< T, defaultp > make_vec3(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL detail::tvec2< T, defaultp > make_vec2(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL detail::tvec4< T, defaultp > make_vec4(T const *const ptr)
Build a vector from a pointer.
GLM_FUNC_DECL detail::tmat4x3< 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 &vec)
Return the constant address to the data of the input parameter.
GLM_FUNC_DECL detail::tmat4x4< T, defaultp > make_mat4x4(T const *const ptr)
Build a matrix from a pointer.
GLM_FUNC_DECL detail::tmat2x3< T, defaultp > make_mat2x3(T const *const ptr)
Build a matrix from a pointer.