Cinder  0.9.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cinder::gl::Texture2dCache Class Reference

#include <Texture.h>

Inherits enable_shared_from_this< Texture2dCache >.

Public Member Functions

Texture2dRef cache (const Surface8u &data)
 

Static Public Member Functions

static Texture2dCacheRef create ()
 
static Texture2dCacheRef create (const Surface8u &prototypeSurface, const Texture2d::Format &format)
 

Protected Member Functions

 Texture2dCache ()
 
 Texture2dCache (const Surface8u &prototypeSurface, const Texture2d::Format &format)
 
void markTextureAsFree (int id)
 

Protected Attributes

int mWidth
 
int mHeight
 
Texture2d::Format mFormat
 
Surface8uRef mIntermediateSurface
 
int mNextId
 
std::vector< std::pair< int, TextureRef > > mTextures
 

Constructor & Destructor Documentation

cinder::gl::Texture2dCache::Texture2dCache ( )
protected
cinder::gl::Texture2dCache::Texture2dCache ( const Surface8u prototypeSurface,
const Texture2d::Format format 
)
protected

Member Function Documentation

Texture2dCacheRef cinder::gl::Texture2dCache::create ( )
static
Texture2dCacheRef cinder::gl::Texture2dCache::create ( const Surface8u prototypeSurface,
const Texture2d::Format format 
)
static
gl::TextureRef cinder::gl::Texture2dCache::cache ( const Surface8u data)
void cinder::gl::Texture2dCache::markTextureAsFree ( int  id)
protected

Member Data Documentation

int cinder::gl::Texture2dCache::mWidth
protected
int cinder::gl::Texture2dCache::mHeight
protected
Texture2d::Format cinder::gl::Texture2dCache::mFormat
protected
Surface8uRef cinder::gl::Texture2dCache::mIntermediateSurface
protected
int cinder::gl::Texture2dCache::mNextId
protected
std::vector<std::pair<int,TextureRef> > cinder::gl::Texture2dCache::mTextures
protected

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