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 |
} |
} |
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( |
223 |
|
|
224 |
TextureMap::~TextureMap() |
TextureMap::~TextureMap() |
225 |
{ |
{ |
226 |
|
if (tex_id!=0) |
227 |
|
{ |
228 |
|
glDeleteTextures(1,&tex_id); |
229 |
|
} |
230 |
return; |
return; |
231 |
} |
} |
232 |
|
|