clray

diff src/scene.h @ 35:7d77ded5f890

stopped using a heap to flatten the kdtree. added explicit left/right indices
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 26 Aug 2010 20:24:07 +0100
parents 4cf4919c3812
children ca445da26588
line diff
     1.1 --- a/src/scene.h	Tue Aug 24 05:47:04 2010 +0100
     1.2 +++ b/src/scene.h	Thu Aug 26 20:24:07 2010 +0100
     1.3 @@ -54,7 +54,8 @@
     1.4  	AABBox aabb;
     1.5  	int face_idx[32];
     1.6  	int num_faces;
     1.7 -	int padding[3];
     1.8 +	int left, right;
     1.9 +	int padding;
    1.10  };
    1.11  
    1.12  
    1.13 @@ -75,8 +76,9 @@
    1.14  
    1.15  	bool add_mesh(Mesh *m);
    1.16  	int get_num_meshes() const;
    1.17 +	int get_num_faces() const;
    1.18  	int get_num_materials() const;
    1.19 -	int get_num_faces() const;
    1.20 +	int get_num_kdnodes() const;
    1.21  
    1.22  	Material *get_materials();
    1.23  	const Material *get_materials() const;
    1.24 @@ -86,7 +88,6 @@
    1.25  
    1.26  	const Face *get_face_buffer() const;
    1.27  	const KDNodeGPU *get_kdtree_buffer() const;
    1.28 -	int get_kdtree_buffer_size() const;
    1.29  
    1.30  	void draw_kdtree() const;
    1.31  	bool build_kdtree();