intravenous

diff 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 diff
     1.1 --- a/src/vein.h	Sun Apr 22 06:26:08 2012 +0300
     1.2 +++ b/src/vein.h	Mon Apr 23 21:43:10 2012 +0300
     1.3 @@ -16,20 +16,22 @@
     1.4  	unsigned int tex_norm;
     1.5  	Vector3 fog_color;
     1.6  
     1.7 -	Vector3 calc_center(const Vector3 &ppos) const;
     1.8 -	Vector3 calc_dir(const Vector3 &ppos) const;
     1.9 -
    1.10  	void build_idxbuf();
    1.11  
    1.12  public:
    1.13  	Vein();
    1.14  	~Vein();
    1.15 +	bool init();
    1.16  
    1.17 -	bool init();
    1.18 +	void set_radius(float rad);
    1.19 +	float get_radius() const;
    1.20  
    1.21  	void set_fog_color(const Vector3 &col);
    1.22  
    1.23  	void draw(const Vector3 &player_pos) const;
    1.24 +
    1.25 +	Vector3 calc_center(const Vector3 &ppos) const;
    1.26 +	Vector3 calc_dir(const Vector3 &ppos) const;
    1.27  };
    1.28  
    1.29  #endif	// VEIN_H_