oculus1

view src/bezmath.h @ 29:9a973ef0e2a3

fixed the performance issue under MacOSX by replacing glutSolidTeapot (which uses glEvalMesh) with my own teapot generator.
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 27 Oct 2013 06:31:18 +0200
parents
children
line source
1 #ifndef BEZMATH_H_
2 #define BEZMATH_H_
4 struct vec3 {
5 float x, y, z;
6 };
8 #ifdef __cplusplus
9 extern "C"
10 #endif
12 struct vec3 v3_add(struct vec3 a, struct vec3 b);
13 struct vec3 v3_sub(struct vec3 a, struct vec3 b);
14 struct vec3 v3_cross(struct vec3 a, struct vec3 b);
15 struct vec3 v3_normalize(struct vec3 v);
17 struct vec3 bezier_patch(struct vec3 *cp, float u, float v);
18 struct vec3 bezier_patch_norm(struct vec3 *cp, float u, float v);
20 #ifdef __cplusplus
21 }
22 #endif
24 #endif /* BEZMATH_H_ */