intravenous

view src/vein.h @ 7:3fae5eb6a411

wouldn't compile with {} constructor when vmath is compiled in single precision mode
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Apr 2012 06:39:23 +0300
parents c6a6a64df6de
children 2723dc026c4f
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;
17 Vector3 fog_color;
19 Vector3 calc_center(const Vector3 &ppos) const;
20 Vector3 calc_dir(const Vector3 &ppos) const;
22 void build_idxbuf();
24 public:
25 Vein();
26 ~Vein();
28 bool init();
30 void set_fog_color(const Vector3 &col);
32 void draw(const Vector3 &player_pos) const;
33 };
35 #endif // VEIN_H_