make pre-compiled funcs c++ compatible

This commit is contained in:
Recep Aslantas
2017-02-05 16:31:47 +03:00
parent 176f5ccf8e
commit 177bb594fd
9 changed files with 54 additions and 0 deletions

View File

@@ -7,6 +7,9 @@
#ifndef cglmc_affine_h
#define cglmc_affine_h
#ifdef __cplusplus
extern "C" {
#endif
#include "../cglm.h"
@@ -82,4 +85,7 @@ CGLM_EXPORT
void
glmc_decompose(mat4 m, vec4 t, mat4 r, vec3 s);
#ifdef __cplusplus
}
#endif
#endif /* cglmc_affine_h */

View File

@@ -7,6 +7,9 @@
#ifndef cglmc_cam_h
#define cglmc_cam_h
#ifdef __cplusplus
extern "C" {
#endif
#include "../cglm.h"
@@ -45,4 +48,7 @@ glmc_lookat(vec3 eye,
vec3 up,
mat4 dest);
#ifdef __cplusplus
}
#endif
#endif /* cglmc_cam_h */

View File

@@ -7,6 +7,9 @@
#ifndef glmc_euler_h
#define glmc_euler_h
#ifdef __cplusplus
extern "C" {
#endif
#include "../cglm.h"
@@ -42,4 +45,7 @@ CGLM_EXPORT
void
glmc_euler_by_order(vec3 angles, glm_euler_sq axis, mat4 dest);
#ifdef __cplusplus
}
#endif
#endif /* glmc_euler_h */

View File

@@ -7,6 +7,9 @@
#ifndef cglmc_io_h
#define cglmc_io_h
#ifdef __cplusplus
extern "C" {
#endif
#include "../cglm.h"
@@ -35,4 +38,7 @@ void
glmc_versor_print(versor vec,
FILE * __restrict ostream);
#ifdef __cplusplus
}
#endif
#endif /* cglmc_io_h */

View File

@@ -7,6 +7,9 @@
#ifndef cglmc_mat_h
#define cglmc_mat_h
#ifdef __cplusplus
extern "C" {
#endif
#include "../cglm.h"
@@ -78,4 +81,7 @@ CGLM_EXPORT
void
glmc_mat4_swap_row(mat4 mat, int row1, int row2);
#ifdef __cplusplus
}
#endif
#endif /* cglmc_mat_h */

View File

@@ -7,6 +7,9 @@
#ifndef cglmc_mat3_h
#define cglmc_mat3_h
#ifdef __cplusplus
extern "C" {
#endif
#include "../cglm.h"
@@ -50,4 +53,7 @@ CGLM_EXPORT
void
glmc_mat3_swap_row(mat3 mat, int row1, int row2);
#ifdef __cplusplus
}
#endif
#endif /* cglmc_mat3_h */

View File

@@ -7,6 +7,9 @@
#ifndef cglmc_quat_h
#define cglmc_quat_h
#ifdef __cplusplus
extern "C" {
#endif
#include "../cglm.h"
@@ -55,4 +58,7 @@ glmc_quat_slerp(versor q,
float t,
versor dest);
#ifdef __cplusplus
}
#endif
#endif /* cglmc_quat_h */

View File

@@ -7,6 +7,9 @@
#ifndef cglm_vec_h
#define cglm_vec_h
#ifdef __cplusplus
extern "C" {
#endif
#include "../cglm.h"
@@ -114,4 +117,7 @@ CGLM_EXPORT
void
glmc_vec_proj(vec3 a, vec3 b, vec3 dest);
#ifdef __cplusplus
}
#endif
#endif /* cglm_vec_h */

View File

@@ -7,6 +7,9 @@
#ifndef cglm_call_h
#define cglm_call_h
#ifdef __cplusplus
extern "C" {
#endif
#include "cglm.h"
#include "call/cglmc-vec.h"
@@ -18,4 +21,7 @@
#include "call/cglmc-euler.h"
#include "call/cglmc-io.h"
#ifdef __cplusplus
}
#endif
#endif /* cglm_call_h */