glide_test1

view 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 source
1 #ifndef MESH_H_
2 #define MESH_H_
4 #include <vector>
5 #include "vmath.h"
7 struct Vertex {
8 Vector4 pos;
9 Vector4 color;
10 Vector3 normal;
11 };
14 void gen_sphere(std::vector<Vertex> &varr, float rad, int usub, int vsub);
15 void gen_torus(std::vector<Vertex> &varr, float rad, float tube_rad, int usub, int vsub);
18 #endif // MESH_H_