intravenous

view src/vein.h @ 2:472c28b8b875

I think I pretty much nailed the camera
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 21 Apr 2012 23:03:36 +0300
parents
children 94d4c60af435
line source
1 #ifndef VEIN_H_
2 #define VEIN_H_
4 #include <vmath/vmath.h>
6 class Vein {
7 private:
8 float gen_dist;
9 float rad;
10 int subdiv, ring_subdiv;
12 unsigned int *idxbuf;
14 Vector3 calc_center(const Vector3 &ppos) const;
15 Vector3 calc_dir(const Vector3 &ppos) const;
17 void build_idxbuf();
19 public:
20 Vein();
21 ~Vein();
23 void draw(const Vector3 &player_pos) const;
24 };
26 #endif // VEIN_H_