intravenous

diff src/vein.h @ 1:3ea290d35984

it's never going to finish but wth :)
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 21 Apr 2012 22:42:43 +0300
parents
children 94d4c60af435
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/vein.h	Sat Apr 21 22:42:43 2012 +0300
     1.3 @@ -0,0 +1,26 @@
     1.4 +#ifndef VEIN_H_
     1.5 +#define VEIN_H_
     1.6 +
     1.7 +#include <vmath/vmath.h>
     1.8 +
     1.9 +class Vein {
    1.10 +private:
    1.11 +	float gen_dist;
    1.12 +	float rad;
    1.13 +	int subdiv, ring_subdiv;
    1.14 +
    1.15 +	unsigned int *idxbuf;
    1.16 +
    1.17 +	Vector3 calc_center(const Vector3 &ppos) const;
    1.18 +	Vector3 calc_dir(const Vector3 &ppos) const;
    1.19 +
    1.20 +	void build_idxbuf();
    1.21 +
    1.22 +public:
    1.23 +	Vein();
    1.24 +	~Vein();
    1.25 +
    1.26 +	void draw(const Vector3 &player_pos) const;
    1.27 +};
    1.28 +
    1.29 +#endif	// VEIN_H_