148 lines
2.3 KiB
C
148 lines
2.3 KiB
C
/*
|
|
* Copyright (c), Recep Aslantas.
|
|
*
|
|
* MIT License (MIT), http://opensource.org/licenses/MIT
|
|
* Full license can be found in the LICENSE file
|
|
*/
|
|
|
|
#ifndef cglmc_ivec4_h
|
|
#define cglmc_ivec4_h
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "../cglm.h"
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4(ivec3 v3, int last, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_copy(ivec4 a, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_zero(ivec4 v);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_one(ivec4 v);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_add(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_adds(ivec4 v, int s, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_sub(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_subs(ivec4 v, int s, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_mul(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_scale(ivec4 v, int s, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_addadd(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_addadds(ivec4 a, int s, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_subadd(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_subadds(ivec4 a, int s, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_muladd(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_muladds(ivec4 a, int s, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_maxadd(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_minadd(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_subsub(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_subsubs(ivec4 a, int s, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_addsub(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_addsubs(ivec4 a, int s, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_mulsub(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_mulsubs(ivec4 a, int s, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_maxsub(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_minsub(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
int
|
|
glmc_ivec4_distance2(ivec4 a, ivec4 b);
|
|
|
|
CGLM_EXPORT
|
|
float
|
|
glmc_ivec4_distance(ivec4 a, ivec4 b);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_maxv(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_minv(ivec4 a, ivec4 b, ivec4 dest);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_clamp(ivec4 v, int minVal, int maxVal);
|
|
|
|
CGLM_EXPORT
|
|
void
|
|
glmc_ivec4_abs(ivec4 v, ivec4 dest);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* cglmc_ivec4_h */
|