dungeon_crawler

diff prototype/src/mesh.h @ 21:0588f8a1a351

converting LIGHT meshes to lights
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 21 Aug 2012 06:33:36 +0300
parents e5567ddbf2ef
children
line diff
     1.1 --- a/prototype/src/mesh.h	Tue Aug 21 04:57:33 2012 +0300
     1.2 +++ b/prototype/src/mesh.h	Tue Aug 21 06:33:36 2012 +0300
     1.3 @@ -30,6 +30,12 @@
     1.4  	Material mat;
     1.5  	Matrix4x4 xform;
     1.6  
     1.7 +	Vector3 bsph_center;
     1.8 +	float bsph_rad;
     1.9 +	bool bsph_valid;
    1.10 +
    1.11 +	void calc_bsph();
    1.12 +
    1.13  public:
    1.14  	Mesh();
    1.15  	~Mesh();
    1.16 @@ -50,6 +56,9 @@
    1.17  	int get_attrib_location(int attr) const;
    1.18  
    1.19  	void draw() const;
    1.20 +
    1.21 +	const Vector3 &get_bsph_center() const;
    1.22 +	float get_bsph_radius() const;
    1.23  };
    1.24  
    1.25  #endif	// MESH_H_