vrheights

diff src/bezmath.h @ 3:316ec8250af2

added the teapot code for testing
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 25 Sep 2014 17:13:23 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/bezmath.h	Thu Sep 25 17:13:23 2014 +0300
     1.3 @@ -0,0 +1,24 @@
     1.4 +#ifndef BEZMATH_H_
     1.5 +#define BEZMATH_H_
     1.6 +
     1.7 +struct vec3 {
     1.8 +	float x, y, z;
     1.9 +};
    1.10 +
    1.11 +#ifdef __cplusplus
    1.12 +extern "C"
    1.13 +#endif
    1.14 +
    1.15 +struct vec3 v3_add(struct vec3 a, struct vec3 b);
    1.16 +struct vec3 v3_sub(struct vec3 a, struct vec3 b);
    1.17 +struct vec3 v3_cross(struct vec3 a, struct vec3 b);
    1.18 +struct vec3 v3_normalize(struct vec3 v);
    1.19 +
    1.20 +struct vec3 bezier_patch(struct vec3 *cp, float u, float v);
    1.21 +struct vec3 bezier_patch_norm(struct vec3 *cp, float u, float v);
    1.22 +
    1.23 +#ifdef __cplusplus
    1.24 +}
    1.25 +#endif
    1.26 +
    1.27 +#endif	/* BEZMATH_H_ */