11 |
// http://www.fsf.org/licenses/gpl.html. |
// http://www.fsf.org/licenses/gpl.html. |
12 |
// |
// |
13 |
// $Id$ |
// $Id$ |
|
// $Log$ |
|
|
// Revision 1.4 2004/12/26 09:35:23 skunix |
|
|
// use logging functionality |
|
|
// |
|
|
// Revision 1.3 2004/12/26 08:03:34 skunix |
|
|
// changed lambda::bind's to boost::binds |
|
|
// |
|
|
// Revision 1.2 2004/12/26 02:29:33 skunix |
|
|
// Texture manager basics written, and texture-meta-parser added |
|
|
// |
|
|
// Revision 1.1 2004/12/25 19:01:59 skunix |
|
|
// started texture-related classes |
|
|
// |
|
14 |
|
|
15 |
#include "texture.hpp" |
#include "texture.hpp" |
16 |
#include <ext/hash_map> |
#include <ext/hash_map> |
145 |
TextureManager::load_path(const boost::filesystem::path& p) |
TextureManager::load_path(const boost::filesystem::path& p) |
146 |
{ |
{ |
147 |
using boost::filesystem::path; |
using boost::filesystem::path; |
148 |
log::Stream2 logstream; //(&log::server, log::Level::INFO); |
log::BufferedStream logstream; //(&log::server, log::Level::INFO); |
149 |
path mf = p / "textures" / "meta"; |
path mf = p / "textures" / "meta"; |
150 |
logstream << (boost::format("Loading texture metadata from '%1%'")%mf.native_file_string()).str() << log::Commit; |
logstream << (boost::format("Loading texture metadata from '%1%'")%mf.native_file_string()).str() << log::commit; |
151 |
|
|
152 |
|
|
153 |
texture_meta_parse(mf, |
texture_meta_parse(mf, |