intravenous

view src/vein.h @ 6:2723dc026c4f

collision detection
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 23 Apr 2012 21:43:10 +0300
parents aab0d8ea21cd
children
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 void build_idxbuf();
21 public:
22 Vein();
23 ~Vein();
24 bool init();
26 void set_radius(float rad);
27 float get_radius() const;
29 void set_fog_color(const Vector3 &col);
31 void draw(const Vector3 &player_pos) const;
33 Vector3 calc_center(const Vector3 &ppos) const;
34 Vector3 calc_dir(const Vector3 &ppos) const;
35 };
37 #endif // VEIN_H_