Cortex  10.0.0-a4
Public Member Functions | Static Public Member Functions | List of all members
IECoreGL::TextureLoader Class Reference

#include <TextureLoader.h>

+ Inheritance diagram for IECoreGL::TextureLoader:

Public Member Functions

 IE_CORE_DECLAREMEMBERPTR (TextureLoader)
 
 TextureLoader (const IECore::SearchPath &searchPaths)
 
TexturePtr load (const std::string &name)
 
void clear ()
 Removes any cached textures.
 
- Public Member Functions inherited from IECore::RefCounted
 IE_CORE_DECLAREMEMBERPTR (RefCounted)
 
void addRef () const
 Add a reference to the current object.
 
void removeRef () const
 Remove a reference from the current object.
 
RefCount refCount () const
 Returns the current reference count.
 

Static Public Member Functions

static TextureLoaderdefaultTextureLoader ()
 

Additional Inherited Members

- Public Types inherited from IECore::RefCounted
typedef size_t RefCount
 

Detailed Description

Todo:
At some point we'll need to deal with the fact that there's limited texture memory and we can't just keep loading things forever without getting rid of something.

Member Function Documentation

static TextureLoader* IECoreGL::TextureLoader::defaultTextureLoader ( )
static

Returns a static TextureLoader instance that everyone can use. This has searchpaths set using the IECOREGL_TEXTURE_PATHS environment variable.


The documentation for this class was generated from the following file: