goat3dgfx
diff src/dataset.inl @ 15:7d6b667821cf
wrapped everything in the goatgfx namespace
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 30 Nov 2013 20:52:21 +0200 |
parents | 18879c956eb1 |
children | dc5918c62a64 |
line diff
1.1 --- a/src/dataset.inl Sat Nov 30 15:15:34 2013 +0200 1.2 +++ b/src/dataset.inl Sat Nov 30 20:52:21 2013 +0200 1.3 @@ -2,6 +2,8 @@ 1.4 #include <string.h> 1.5 #include "datapath.h" 1.6 1.7 +namespace goatgfx { 1.8 + 1.9 template <typename T> 1.10 DataSet<T>::DataSet(T (*load_func)(const char*), void (*destr_func)(T)) 1.11 { 1.12 @@ -35,7 +37,7 @@ 1.13 return iter->second; 1.14 } 1.15 1.16 - std::string path = datafile_path(name); 1.17 + std::string path = goatgfx::datafile_path(name); 1.18 if(path.empty()) { 1.19 fprintf(stderr, "can't find data file: %s\n", name); 1.20 return 0; 1.21 @@ -47,3 +49,5 @@ 1.22 } 1.23 return res; 1.24 } 1.25 + 1.26 +} // namespace goatgfx