/[usata]/usata2/src/texture.hpp
ViewVC logotype

Diff of /usata2/src/texture.hpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by skunix, Sat Jan 15 19:17:35 2005 UTC revision 1.6 by skunix, Tue Jan 18 00:12:08 2005 UTC
# Line 20  Line 20 
20  #include <memory>  #include <memory>
21  #include <boost/filesystem/path.hpp>  #include <boost/filesystem/path.hpp>
22  #include <boost/shared_ptr.hpp>  #include <boost/shared_ptr.hpp>
23    #include "texture-meta.hpp"
24    #include "resource-manager.hpp"
25  namespace usata  namespace usata
26  {  {
27    
# Line 37  namespace usata Line 38  namespace usata
38                          void            allocate_gltex (void);                          void            allocate_gltex (void);
39                  public:                  public:
40                          Texture(const TextureMeta*);                          Texture(const TextureMeta*);
41                            Texture(const TextureMeta&);
42                          bool reload(const TextureMeta*);                          bool reload(const TextureMeta*);
43                          GLuint get_tex() { return tex_id; }                          GLuint get_tex() { return tex_id; }
44                          ~Texture();                          ~Texture();
# Line 44  namespace usata Line 46  namespace usata
46    
47          typedef boost::shared_ptr<Texture> Texture_sp;          typedef boost::shared_ptr<Texture> Texture_sp;
48    
49            class ImageManager : public ResourceManager<Texture, TextureMeta, std::string>
50            {
51                    typedef resource Image_sp;
52                    public:
53                            Image_sp get(const std::string& name);
54                            void meta_add(const TextureMeta*);
55                            void load_path(const boost::filesystem::path&);
56            };
57    
58          class TextureManager          class TextureManager
59          {          {
60                          std::auto_ptr<TextureManagerImpl> impl;                          std::auto_ptr<TextureManagerImpl> impl;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26