| 0.9.7

- Main Page
- Modules
- Files

- File List

type_ptr.hpp
Go to the documentation of this file.
1
63 #pragma once
64
65 // Dependency:
66 #include "../gtc/quaternion.hpp"
67 #include "../vec2.hpp"
68 #include "../vec3.hpp"
69 #include "../vec4.hpp"
70 #include "../mat2x2.hpp"
71 #include "../mat2x3.hpp"
72 #include "../mat2x4.hpp"
73 #include "../mat3x2.hpp"
74 #include "../mat3x3.hpp"
75 #include "../mat3x4.hpp"
76 #include "../mat4x2.hpp"
77 #include "../mat4x3.hpp"
78 #include "../mat4x4.hpp"
79 #include <cstring>
80
81 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
82 # pragma message("GLM: GLM_GTC_type_ptr extension included")
83 #endif
84
85 namespace glm
86 {
89
92 template<typename genType>
93 GLM_FUNC_DECL typename genType::value_type const * value_ptr(genType const & vec);
94
97 template<typename T>
98 GLM_FUNC_DECL tvec2<T, defaultp> make_vec2(T const * const ptr);
99
102 template<typename T>
103 GLM_FUNC_DECL tvec3<T, defaultp> make_vec3(T const * const ptr);
104
107 template<typename T>
108 GLM_FUNC_DECL tvec4<T, defaultp> make_vec4(T const * const ptr);
109
112 template<typename T>
113 GLM_FUNC_DECL tmat2x2<T, defaultp> make_mat2x2(T const * const ptr);
114
117 template<typename T>
118 GLM_FUNC_DECL tmat2x3<T, defaultp> make_mat2x3(T const * const ptr);
119
122 template<typename T>
123 GLM_FUNC_DECL tmat2x4<T, defaultp> make_mat2x4(T const * const ptr);
124
127 template<typename T>
128 GLM_FUNC_DECL tmat3x2<T, defaultp> make_mat3x2(T const * const ptr);
129
132 template<typename T>
133 GLM_FUNC_DECL tmat3x3<T, defaultp> make_mat3x3(T const * const ptr);
134
137 template<typename T>
138 GLM_FUNC_DECL tmat3x4<T, defaultp> make_mat3x4(T const * const ptr);
139
142 template<typename T>
143 GLM_FUNC_DECL tmat4x2<T, defaultp> make_mat4x2(T const * const ptr);
144
147 template<typename T>
148 GLM_FUNC_DECL tmat4x3<T, defaultp> make_mat4x3(T const * const ptr);
149
152 template<typename T>
153 GLM_FUNC_DECL tmat4x4<T, defaultp> make_mat4x4(T const * const ptr);
154
157 template<typename T>
158 GLM_FUNC_DECL tmat2x2<T, defaultp> make_mat2(T const * const ptr);
159
162 template<typename T>
163 GLM_FUNC_DECL tmat3x3<T, defaultp> make_mat3(T const * const ptr);
164
167 template<typename T>
168 GLM_FUNC_DECL tmat4x4<T, defaultp> make_mat4(T const * const ptr);
169
172 template<typename T>
173 GLM_FUNC_DECL tquat<T, defaultp> make_quat(T const * const ptr);
174
176 }//namespace glm
177
178 #include "type_ptr.inl"
glm::make_mat2x4
GLM_FUNC_DECL tmat2x4< T, defaultp > make_mat2x4(T const *const ptr)
Build a matrix from a pointer.
glm::make_mat2x2
GLM_FUNC_DECL tmat2x2< T, defaultp > make_mat2x2(T const *const ptr)
Build a matrix from a pointer.
glm::make_quat
GLM_FUNC_DECL tquat< T, defaultp > make_quat(T const *const ptr)
Build a quaternion from a pointer.
glm::make_mat4x3
GLM_FUNC_DECL tmat4x3< T, defaultp > make_mat4x3(T const *const ptr)
Build a matrix from a pointer.
glm::make_mat3x3
GLM_FUNC_DECL tmat3x3< T, defaultp > make_mat3x3(T const *const ptr)
Build a matrix from a pointer.
glm::make_vec2
GLM_FUNC_DECL tvec2< T, defaultp > make_vec2(T const *const ptr)
Build a vector from a pointer.
glm::make_mat3x4
GLM_FUNC_DECL tmat3x4< T, defaultp > make_mat3x4(T const *const ptr)
Build a matrix from a pointer.
glm::make_mat2x3
GLM_FUNC_DECL tmat2x3< T, defaultp > make_mat2x3(T const *const ptr)
Build a matrix from a pointer.
glm::make_mat4x2
GLM_FUNC_DECL tmat4x2< T, defaultp > make_mat4x2(T const *const ptr)
Build a matrix from a pointer.
glm::make_vec3
GLM_FUNC_DECL tvec3< T, defaultp > make_vec3(T const *const ptr)
Build a vector from a pointer.
glm
Definition: _noise.hpp:40
glm::make_mat2
GLM_FUNC_DECL tmat2x2< T, defaultp > make_mat2(T const *const ptr)
Build a matrix from a pointer.
glm::make_vec4
GLM_FUNC_DECL tvec4< T, defaultp > make_vec4(T const *const ptr)
Build a vector from a pointer.
glm::make_mat4
GLM_FUNC_DECL tmat4x4< T, defaultp > make_mat4(T const *const ptr)
Build a matrix from a pointer.
glm::make_mat4x4
GLM_FUNC_DECL tmat4x4< T, defaultp > make_mat4x4(T const *const ptr)
Build a matrix from a pointer.
glm::make_mat3x2
GLM_FUNC_DECL tmat3x2< T, defaultp > make_mat3x2(T const *const ptr)
Build a matrix from a pointer.
glm::make_mat3
GLM_FUNC_DECL tmat3x3< T, defaultp > make_mat3(T const *const ptr)
Build a matrix from a pointer.
glm::value_ptr
GLM_FUNC_DECL genType::value_type const * value_ptr(genType const &vec)
Return the constant address to the data of the input parameter.