mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
make pre-compiled funcs c++ compatible
This commit is contained in:
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
#ifndef cglmc_affine_h
|
#ifndef cglmc_affine_h
|
||||||
#define cglmc_affine_h
|
#define cglmc_affine_h
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../cglm.h"
|
#include "../cglm.h"
|
||||||
|
|
||||||
@@ -82,4 +85,7 @@ CGLM_EXPORT
|
|||||||
void
|
void
|
||||||
glmc_decompose(mat4 m, vec4 t, mat4 r, vec3 s);
|
glmc_decompose(mat4 m, vec4 t, mat4 r, vec3 s);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* cglmc_affine_h */
|
#endif /* cglmc_affine_h */
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
#ifndef cglmc_cam_h
|
#ifndef cglmc_cam_h
|
||||||
#define cglmc_cam_h
|
#define cglmc_cam_h
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../cglm.h"
|
#include "../cglm.h"
|
||||||
|
|
||||||
@@ -45,4 +48,7 @@ glmc_lookat(vec3 eye,
|
|||||||
vec3 up,
|
vec3 up,
|
||||||
mat4 dest);
|
mat4 dest);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* cglmc_cam_h */
|
#endif /* cglmc_cam_h */
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
#ifndef glmc_euler_h
|
#ifndef glmc_euler_h
|
||||||
#define glmc_euler_h
|
#define glmc_euler_h
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../cglm.h"
|
#include "../cglm.h"
|
||||||
|
|
||||||
@@ -42,4 +45,7 @@ CGLM_EXPORT
|
|||||||
void
|
void
|
||||||
glmc_euler_by_order(vec3 angles, glm_euler_sq axis, mat4 dest);
|
glmc_euler_by_order(vec3 angles, glm_euler_sq axis, mat4 dest);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* glmc_euler_h */
|
#endif /* glmc_euler_h */
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
#ifndef cglmc_io_h
|
#ifndef cglmc_io_h
|
||||||
#define cglmc_io_h
|
#define cglmc_io_h
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../cglm.h"
|
#include "../cglm.h"
|
||||||
|
|
||||||
@@ -35,4 +38,7 @@ void
|
|||||||
glmc_versor_print(versor vec,
|
glmc_versor_print(versor vec,
|
||||||
FILE * __restrict ostream);
|
FILE * __restrict ostream);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* cglmc_io_h */
|
#endif /* cglmc_io_h */
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
#ifndef cglmc_mat_h
|
#ifndef cglmc_mat_h
|
||||||
#define cglmc_mat_h
|
#define cglmc_mat_h
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../cglm.h"
|
#include "../cglm.h"
|
||||||
|
|
||||||
@@ -78,4 +81,7 @@ CGLM_EXPORT
|
|||||||
void
|
void
|
||||||
glmc_mat4_swap_row(mat4 mat, int row1, int row2);
|
glmc_mat4_swap_row(mat4 mat, int row1, int row2);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* cglmc_mat_h */
|
#endif /* cglmc_mat_h */
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
#ifndef cglmc_mat3_h
|
#ifndef cglmc_mat3_h
|
||||||
#define cglmc_mat3_h
|
#define cglmc_mat3_h
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../cglm.h"
|
#include "../cglm.h"
|
||||||
|
|
||||||
@@ -50,4 +53,7 @@ CGLM_EXPORT
|
|||||||
void
|
void
|
||||||
glmc_mat3_swap_row(mat3 mat, int row1, int row2);
|
glmc_mat3_swap_row(mat3 mat, int row1, int row2);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* cglmc_mat3_h */
|
#endif /* cglmc_mat3_h */
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
#ifndef cglmc_quat_h
|
#ifndef cglmc_quat_h
|
||||||
#define cglmc_quat_h
|
#define cglmc_quat_h
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../cglm.h"
|
#include "../cglm.h"
|
||||||
|
|
||||||
@@ -55,4 +58,7 @@ glmc_quat_slerp(versor q,
|
|||||||
float t,
|
float t,
|
||||||
versor dest);
|
versor dest);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* cglmc_quat_h */
|
#endif /* cglmc_quat_h */
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
#ifndef cglm_vec_h
|
#ifndef cglm_vec_h
|
||||||
#define cglm_vec_h
|
#define cglm_vec_h
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../cglm.h"
|
#include "../cglm.h"
|
||||||
|
|
||||||
@@ -114,4 +117,7 @@ CGLM_EXPORT
|
|||||||
void
|
void
|
||||||
glmc_vec_proj(vec3 a, vec3 b, vec3 dest);
|
glmc_vec_proj(vec3 a, vec3 b, vec3 dest);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* cglm_vec_h */
|
#endif /* cglm_vec_h */
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
#ifndef cglm_call_h
|
#ifndef cglm_call_h
|
||||||
#define cglm_call_h
|
#define cglm_call_h
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "cglm.h"
|
#include "cglm.h"
|
||||||
#include "call/cglmc-vec.h"
|
#include "call/cglmc-vec.h"
|
||||||
@@ -18,4 +21,7 @@
|
|||||||
#include "call/cglmc-euler.h"
|
#include "call/cglmc-euler.h"
|
||||||
#include "call/cglmc-io.h"
|
#include "call/cglmc-io.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* cglm_call_h */
|
#endif /* cglm_call_h */
|
||||||
|
|||||||
Reference in New Issue
Block a user