intravenous

view src/vein.h @ 4:c6a6a64df6de

normalmap
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Apr 2012 05:20:03 +0300
parents 94d4c60af435
children aab0d8ea21cd
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 unsigned int tex_norm;
18 Vector3 calc_center(const Vector3 &ppos) const;
19 Vector3 calc_dir(const Vector3 &ppos) const;
21 void build_idxbuf();
23 public:
24 Vein();
25 ~Vein();
27 bool init();
29 void draw(const Vector3 &player_pos) const;
30 };
32 #endif // VEIN_H_