Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TexturePool Class Reference

#include <texturePool.h>

List of all members.

Private Types

typedef pmap< string, PT(TextureTextures )

Private Member Functions

INLINE TexturePool ()
bool ns_has_texture (const Filename &orig_filename)
Texturens_load_texture (const Filename &orig_filename, int primary_file_num_channels)
Texturens_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 Textureload_texture (const string &filename, int primary_file_num_channels=0)
INLINE Textureload_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


Member Typedef Documentation

typedef pmap<string, PT(Texture) TexturePool::Textures) [private]
 

Definition at line 75 of file texturePool.h.

Referenced by ns_garbage_collect().


Constructor & Destructor Documentation

INLINE TexturePool::TexturePool  )  [private]
 


Member Function Documentation

INLINE void TexturePool::add_texture Texture texture  )  [static, private]
 

INLINE int TexturePool::garbage_collect  )  [static, private]
 

TexturePool * TexturePool::get_ptr  )  [static, private]
 

Definition at line 261 of file texturePool.cxx.

References _global_ptr, and NULL.

INLINE void TexturePool::list_contents ostream &  out  )  [static, private]
 

INLINE Texture* TexturePool::load_texture const string &  filename,
const string &  alpha_filename,
int  primary_file_num_channels = 0,
int  alpha_file_channel = 0
[static, private]
 

INLINE Texture* TexturePool::load_texture const string &  filename,
int  primary_file_num_channels = 0
[static, private]
 

Referenced by event_L(), herc_keys(), WindowFramework::load_default_model(), EggLoader::load_texture(), main(), Texture::make_Texture(), min_shader_keys(), and setup_shaders().

void TexturePool::ns_add_texture Texture texture  )  [private]
 

Definition at line 174 of file texturePool.cxx.

References _textures, ImageBuffer::get_filename(), and tex.

int TexturePool::ns_garbage_collect  )  [private]
 

Definition at line 215 of file texturePool.cxx.

References _textures, tex, and Textures.

bool TexturePool::ns_has_texture const Filename &  orig_filename  )  [private]
 

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().

void TexturePool::ns_list_contents ostream &  out  )  [private]
 

Definition at line 243 of file texturePool.cxx.

References _textures, and texture.

Texture * TexturePool::ns_load_texture const Filename &  orig_filename,
const Filename &  orig_alpha_filename,
int  primary_file_num_channels,
int  alpha_file_channel
[private]
 

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.

Texture * TexturePool::ns_load_texture const Filename &  orig_filename,
int  primary_file_num_channels
[private]
 

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().

void TexturePool::ns_release_all_textures  )  [private]
 

Definition at line 205 of file texturePool.cxx.

References _textures.

void TexturePool::ns_release_texture Texture texture  )  [private]
 

Definition at line 190 of file texturePool.cxx.

References _textures, ImageBuffer::get_filename(), and tex.

INLINE void TexturePool::release_all_textures  )  [static, private]
 

INLINE void TexturePool::release_texture Texture texture  )  [static, private]
 

INLINE bool TexturePool::verify_texture const string &  filename  )  [static, private]
 


Member Data Documentation

PUBLISHED TexturePool::__pad0__ [private]
 

Definition at line 41 of file texturePool.h.

TexturePool * TexturePool::_global_ptr = (TexturePool *)NULL [static, private]
 

Definition at line 26 of file texturePool.cxx.

Referenced by get_ptr().

Textures TexturePool::_textures [private]
 

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().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:42 2003 for Panda by doxygen1.3