goat3d

diff src/goat3d.cc @ 55:af1310ed212b

not done yet
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 19 Jan 2014 14:56:44 +0200
parents cb5414f406eb
children 76d0f55f9d5f
line diff
     1.1 --- a/src/goat3d.cc	Fri Jan 17 18:30:35 2014 +0200
     1.2 +++ b/src/goat3d.cc	Sun Jan 19 14:56:44 2014 +0200
     1.3 @@ -162,14 +162,14 @@
     1.4  	return res;
     1.5  }
     1.6  
     1.7 -GOAT3DAPI int goat3d_save_anim(const struct goat3d *g, const struct goat3d_node *root, const char *fname)
     1.8 +GOAT3DAPI int goat3d_save_anim(const struct goat3d *g, const char *fname)
     1.9  {
    1.10  	FILE *fp = fopen(fname, "wb");
    1.11  	if(!fp) {
    1.12  		return -1;
    1.13  	}
    1.14  
    1.15 -	int res = goat3d_save_anim_file(g, root, fp);
    1.16 +	int res = goat3d_save_anim_file(g, fp);
    1.17  	fclose(fp);
    1.18  	return res;
    1.19  }
    1.20 @@ -185,7 +185,7 @@
    1.21  	return goat3d_load_anim_io(g, &io);
    1.22  }
    1.23  
    1.24 -GOAT3DAPI int goat3d_save_anim_file(const struct goat3d *g, const struct goat3d_node *root, FILE *fp)
    1.25 +GOAT3DAPI int goat3d_save_anim_file(const struct goat3d *g, FILE *fp)
    1.26  {
    1.27  	goat3d_io io;
    1.28  	io.cls = fp;
    1.29 @@ -193,7 +193,7 @@
    1.30  	io.write = write_file;
    1.31  	io.seek = seek_file;
    1.32  
    1.33 -	return goat3d_save_anim_io(g, root, &io);
    1.34 +	return goat3d_save_anim_io(g, &io);
    1.35  }
    1.36  
    1.37  GOAT3DAPI int goat3d_load_anim_io(struct goat3d *g, struct goat3d_io *io)
    1.38 @@ -206,12 +206,12 @@
    1.39  	return 0;
    1.40  }
    1.41  
    1.42 -GOAT3DAPI int goat3d_save_anim_io(const struct goat3d *g, const struct goat3d_node *root, struct goat3d_io *io)
    1.43 +GOAT3DAPI int goat3d_save_anim_io(const struct goat3d *g, struct goat3d_io *io)
    1.44  {
    1.45  	if(goat3d_getopt(g, GOAT3D_OPT_SAVEXML)) {
    1.46 -		return g->scn->save_anim_xml(root, io) ? 0 : -1;
    1.47 +		return g->scn->save_anim_xml(io) ? 0 : -1;
    1.48  	}
    1.49 -	return g->scn->save_anim(root, io) ? 0 : -1;
    1.50 +	return g->scn->save_anim(io) ? 0 : -1;
    1.51  }
    1.52  
    1.53