mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
mat4: add new function glm_mat4_make
Function takes in a 16 element float array and converts it into a mat4 matrix. Signed-off-by: Vincent Davis Jr <vince@underview.tech>
This commit is contained in:
@@ -459,4 +459,17 @@ glms_mat4_(rmc)(vec4s r, mat4s m, vec4s c) {
|
||||
return glm_mat4_rmc(r.raw, m.raw, c.raw);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Create mat4 matrix from pointer
|
||||
*
|
||||
* @param[in] src pointer to an array of floats
|
||||
* @param[out] dest matrix
|
||||
*/
|
||||
CGLM_INLINE
|
||||
mat4s
|
||||
glms_mat4_(make)(float * __restrict src, mat4s dest) {
|
||||
glm_mat4_make(src, dest.raw);
|
||||
return dest;
|
||||
}
|
||||
|
||||
#endif /* cglms_mat4s_h */
|
||||
|
||||
Reference in New Issue
Block a user