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

Diff of /usata2/src/texture.cpp

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

revision 1.9 by skunix, Thu Jan 20 01:15:09 2005 UTC revision 1.10 by skunix, Thu Jan 20 02:18:15 2005 UTC
# Line 109  Pixmap::Pixmap(const std::string& fn) Line 109  Pixmap::Pixmap(const std::string& fn)
109  }  }
110    
111  TextureMeta::TextureMeta(const boost::filesystem::path& p)  TextureMeta::TextureMeta(const boost::filesystem::path& p)
112  : filepath(p)  :       filepath(p),
113            compress(true)
114  {  {
115    
116  }  }
# Line 208  TextureMap::finish_load() Line 209  TextureMap::finish_load()
209  }  }
210    
211  TextureMap::TextureMap(const TextureMeta& tm)  TextureMap::TextureMap(const TextureMeta& tm)
212  :       m_gl_texture_type(GL_TEXTURE_2D)  :       m_meta(tm),
213            m_gl_texture_type(GL_TEXTURE_2D)
214  {  {
215          const TextureMeta* meta = &tm;          const TextureMeta* meta = &tm;
216          m_pixmap.reset(          m_pixmap.reset(
# Line 221  TextureMap::TextureMap(const TextureMeta Line 223  TextureMap::TextureMap(const TextureMeta
223    
224  TextureMap::~TextureMap()  TextureMap::~TextureMap()
225  {  {
226            if (tex_id!=0)
227            {
228                    glDeleteTextures(1,&tex_id);
229            }
230          return;          return;
231  }  }
232    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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