mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Initial function being glm_mat2x4_make Signed-off-by: Vincent Davis Jr <vince@underview.tech>
47 lines
932 B
C
47 lines
932 B
C
/*
|
|
* Copyright (c), Recep Aslantas.
|
|
*
|
|
* MIT License (MIT), http://opensource.org/licenses/MIT
|
|
* Full license can be found in the LICENSE file
|
|
*/
|
|
|
|
/*
|
|
Macros:
|
|
GLMS_MAT2X4_ZERO_INIT
|
|
GLMS_MAT2X4_ZERO
|
|
|
|
Functions:
|
|
CGLM_INLINE float glms_mat2x4_make(float * __restrict src);
|
|
*/
|
|
|
|
#ifndef cglms_mat2x4_h
|
|
#define cglms_mat2x4_h
|
|
|
|
#include "../common.h"
|
|
#include "../types-struct.h"
|
|
#include "../mat2x4.h"
|
|
|
|
/* api definition */
|
|
#define glms_mat2x4_(NAME) CGLM_STRUCTAPI(mat2x4, NAME)
|
|
|
|
#define GLMS_MAT2X4_ZERO_INIT {GLM_MAT2X4_ZERO_INIT}
|
|
|
|
/* for C only */
|
|
#define GLMS_MAT2X4_ZERO ((mat2x4s)GLMS_MAT2X4_ZERO_INIT)
|
|
|
|
/*!
|
|
* @brief Create mat2x4 matrix from pointer
|
|
*
|
|
* @param[in] src pointer to an array of floats
|
|
* @return constructed matrix from raw pointer
|
|
*/
|
|
CGLM_INLINE
|
|
mat2x4s
|
|
glms_mat2x4_(make)(float * __restrict src) {
|
|
mat2x4s r;
|
|
glm_mat2x4_make(src, r.raw);
|
|
return r;
|
|
}
|
|
|
|
#endif /* cglms_mat2x4_h */
|