goat3d
diff src/scene.cc @ 47:498ca7ac7047
- placed all the implementation stuff in the g3dimpl namespace
- added animation stuff to the public API
- started writing animation saving/loading
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 28 Dec 2013 06:47:39 +0200 |
parents | b35427826b60 |
children | 0be413ac2e0a |
line diff
1.1 --- a/src/scene.cc Sun Dec 08 03:00:25 2013 +0200 1.2 +++ b/src/scene.cc Sat Dec 28 06:47:39 2013 +0200 1.3 @@ -3,6 +3,8 @@ 1.4 #include "goat3d_impl.h" 1.5 #include "chunk.h" 1.6 1.7 +using namespace g3dimpl; 1.8 + 1.9 Scene::Scene() 1.10 : name("unnamed"), ambient(0.05, 0.05, 0.05) 1.11 { 1.12 @@ -213,7 +215,7 @@ 1.13 // Scene::savexml is defined in goat3d_writexml.cc 1.14 1.15 1.16 -void io_fprintf(goat3d_io *io, const char *fmt, ...) 1.17 +void g3dimpl::io_fprintf(goat3d_io *io, const char *fmt, ...) 1.18 { 1.19 va_list ap; 1.20 1.21 @@ -223,7 +225,7 @@ 1.22 } 1.23 1.24 1.25 -void io_vfprintf(goat3d_io *io, const char *fmt, va_list ap) 1.26 +void g3dimpl::io_vfprintf(goat3d_io *io, const char *fmt, va_list ap) 1.27 { 1.28 char smallbuf[256]; 1.29 char *buf = smallbuf;