glide_test1
diff mesh.h @ 0:f3ddb2bb7024
first 3dfx glide test, initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 09 Mar 2014 06:27:58 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mesh.h Sun Mar 09 06:27:58 2014 +0200 1.3 @@ -0,0 +1,18 @@ 1.4 +#ifndef MESH_H_ 1.5 +#define MESH_H_ 1.6 + 1.7 +#include <vector> 1.8 +#include "vmath.h" 1.9 + 1.10 +struct Vertex { 1.11 + Vector4 pos; 1.12 + Vector4 color; 1.13 + Vector3 normal; 1.14 +}; 1.15 + 1.16 + 1.17 +void gen_sphere(std::vector<Vertex> &varr, float rad, int usub, int vsub); 1.18 +void gen_torus(std::vector<Vertex> &varr, float rad, float tube_rad, int usub, int vsub); 1.19 + 1.20 + 1.21 +#endif // MESH_H_ 1.22 \ No newline at end of file