#include <texturePool.h>
Private Types | |
typedef pmap< string, PT(Texture) | Textures ) |
Private Member Functions | |
INLINE | TexturePool () |
bool | ns_has_texture (const Filename &orig_filename) |
Texture * | ns_load_texture (const Filename &orig_filename, int primary_file_num_channels) |
Texture * | ns_load_texture (const Filename &orig_filename, const Filename &orig_alpha_filename, int primary_file_num_channels, int alpha_file_channel) |
void | ns_add_texture (Texture *texture) |
void | ns_release_texture (Texture *texture) |
void | ns_release_all_textures () |
int | ns_garbage_collect () |
void | ns_list_contents (ostream &out) |
Static Private Member Functions | |
INLINE bool | verify_texture (const string &filename) |
INLINE Texture * | load_texture (const string &filename, int primary_file_num_channels=0) |
INLINE Texture * | load_texture (const string &filename, const string &alpha_filename, int primary_file_num_channels=0, int alpha_file_channel=0) |
INLINE void | add_texture (Texture *texture) |
INLINE void | release_texture (Texture *texture) |
INLINE void | release_all_textures () |
INLINE int | garbage_collect () |
INLINE void | list_contents (ostream &out) |
TexturePool * | get_ptr () |
Private Attributes | |
PUBLISHED | __pad0__: INLINE static bool has_texture(const string &filename) |
Textures | _textures |
Static Private Attributes | |
TexturePool * | _global_ptr = (TexturePool *)NULL |
|
Definition at line 75 of file texturePool.h. Referenced by ns_garbage_collect(). |
|
|
|
|
|
|
|
Definition at line 261 of file texturePool.cxx. References _global_ptr, and NULL. |
|
|
|
|
|
Referenced by event_L(), herc_keys(), WindowFramework::load_default_model(), EggLoader::load_texture(), main(), Texture::make_Texture(), min_shader_keys(), and setup_shaders(). |
|
Definition at line 174 of file texturePool.cxx. References _textures, ImageBuffer::get_filename(), and tex. |
|
Definition at line 215 of file texturePool.cxx. |
|
Definition at line 35 of file texturePool.cxx. References _textures, fake_texture_image, VirtualFileSystem::get_global_ptr(), get_model_path(), get_texture_path(), and VirtualFileSystem::resolve_filename(). |
|
Definition at line 243 of file texturePool.cxx. |
|
Definition at line 115 of file texturePool.cxx. References _textures, fake_texture_image, VirtualFileSystem::get_global_ptr(), get_model_path(), get_texture_path(), ns_load_texture(), NULL, PT, Texture::read(), VirtualFileSystem::resolve_filename(), ImageBuffer::set_alpha_filename(), ImageBuffer::set_filename(), and tex. |
|
Definition at line 68 of file texturePool.cxx. References _textures, fake_texture_image, VirtualFileSystem::get_global_ptr(), get_model_path(), get_texture_path(), NULL, PT, Texture::read(), VirtualFileSystem::resolve_filename(), ImageBuffer::set_filename(), and tex. Referenced by ns_load_texture(). |
|
Definition at line 205 of file texturePool.cxx. References _textures. |
|
Definition at line 190 of file texturePool.cxx. References _textures, ImageBuffer::get_filename(), and tex. |
|
|
|
|
|
|
|
Definition at line 41 of file texturePool.h. |
|
Definition at line 26 of file texturePool.cxx. Referenced by get_ptr(). |
|
Definition at line 76 of file texturePool.h. Referenced by ns_add_texture(), ns_garbage_collect(), ns_has_texture(), ns_list_contents(), ns_load_texture(), ns_release_all_textures(), and ns_release_texture(). |