goat3d

diff src/goat3d_impl.h @ 9:04bb114fcf05

implementing Scene::save, lots to do still
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 23 Aug 2013 06:36:47 +0300
parents e46529a5d057
children 1f94a2107c64
line diff
     1.1 --- a/src/goat3d_impl.h	Wed Aug 21 05:52:28 2013 +0300
     1.2 +++ b/src/goat3d_impl.h	Fri Aug 23 06:36:47 2013 +0300
     1.3 @@ -36,22 +36,27 @@
     1.4  	void add_material(Material *mat);
     1.5  	Material *get_material(int idx) const;
     1.6  	Material *get_material(const char *name) const;
     1.7 +	int get_material_count() const;
     1.8  
     1.9  	void add_mesh(Mesh *mesh);
    1.10  	Mesh *get_mesh(int idx) const;
    1.11  	Mesh *get_mesh(const char *name) const;
    1.12 +	int get_mesh_count() const;
    1.13  
    1.14  	void add_light(Light *light);
    1.15  	Light *get_light(int idx) const;
    1.16  	Light *get_light(const char *name) const;
    1.17 +	int get_light_count() const;
    1.18  
    1.19  	void add_camera(Camera *cam);
    1.20  	Camera *get_camera(int idx) const;
    1.21  	Camera *get_camera(const char *name) const;
    1.22 +	int get_camera_count() const;
    1.23  
    1.24  	void add_node(Node *node);
    1.25  	Node *get_node(int idx) const;
    1.26  	Node *get_node(const char *name) const;
    1.27 +	int get_node_count() const;
    1.28  
    1.29  	bool load(goat3d_io *io);
    1.30  	bool save(goat3d_io *io) const;