intravenous

view src/vein.h @ 3:94d4c60af435

some progress
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Apr 2012 03:35:18 +0300
parents 3ea290d35984
children c6a6a64df6de
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;
13 unsigned int sdr;
14 int attr_tang_loc;
16 Vector3 calc_center(const Vector3 &ppos) const;
17 Vector3 calc_dir(const Vector3 &ppos) const;
19 void build_idxbuf();
21 public:
22 Vein();
23 ~Vein();
25 bool init();
27 void draw(const Vector3 &player_pos) const;
28 };
30 #endif // VEIN_H_