goat3d
diff src/goat3d.cc @ 74:ab66cdabf6f2
loading scene files (no vis yet)
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 06 May 2014 13:26:52 +0300 |
parents | 36e39632db75 |
children | 9785847d52d4 |
line diff
1.1 --- a/src/goat3d.cc Tue May 06 03:57:11 2014 +0300 1.2 +++ b/src/goat3d.cc Tue May 06 13:26:52 2014 +0300 1.3 @@ -31,12 +31,6 @@ 1.4 1.5 using namespace g3dimpl; 1.6 1.7 -struct goat3d { 1.8 - Scene *scn; 1.9 - unsigned int flags; 1.10 - char *search_path; 1.11 -}; 1.12 - 1.13 struct goat3d_material : public Material {}; 1.14 struct goat3d_mesh : public Mesh {}; 1.15 struct goat3d_light : public Light {}; 1.16 @@ -56,6 +50,7 @@ 1.17 goat->flags = 0; 1.18 goat->search_path = 0; 1.19 goat->scn = new Scene; 1.20 + goat->scn->goat = goat; 1.21 1.22 goat3d_setopt(goat, GOAT3D_OPT_SAVEXML, 1); 1.23 return goat;