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

CL_Texture Class Reference

#include <texture.h>

Inheritance diagram for CL_Texture:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~CL_Texture ()
 param: id - Resource ID of the surface resource.param: manager - Resource manager used to load the resource from.

virtual void bind (int texture_no=0)=0
virtual CL_SurfaceProviderget_provider () const=0
 param: texture_no - Subframe in the provider to bind.

virtual void reload ()=0
virtual int get_width () const=0
virtual int get_height () const=0
 retval: Width of the texture.

virtual int get_num_frames () const=0
 retval: Height of the texture.

virtual void flush (CL_DisplayCard *card=NULL)=0
 retval: Number of subtextures in texture.


Static Public Methods

CL_Texture* create (CL_SurfaceProvider *provider, bool delete_provider=false)
CL_Texture* load (const char *id, CL_ResourceManager *manager)
 param: provider - Surface provider to use as image source.param: delete_provider - If true, surface provider will be deletedparam: when the texture is deleted.


Constructor & Destructor Documentation

CL_Texture::~CL_Texture ( ) [inline, virtual]
 

param: id - Resource ID of the surface resource.param: manager - Resource manager used to load the resource from.

Definition at line 44 of file texture.h.


Member Function Documentation

virtual void CL_Texture::bind ( int texture_no = 0 ) [pure virtual]
 

Reimplemented in CL_Texture_OpenGL.

CL_Texture* CL_Texture::create ( CL_SurfaceProvider * provider,
bool delete_provider = false ) [static]
 

void CL_Texture::flush ( CL_DisplayCard * card = NULL ) [pure virtual]
 

retval: Number of subtextures in texture.

Reimplemented in CL_Texture_OpenGL.

int CL_Texture::get_height ( ) const [pure virtual]
 

retval: Width of the texture.

Reimplemented in CL_Texture_OpenGL.

int CL_Texture::get_num_frames ( ) const [pure virtual]
 

retval: Height of the texture.

Reimplemented in CL_Texture_OpenGL.

CL_SurfaceProvider * CL_Texture::get_provider ( ) const [pure virtual]
 

param: texture_no - Subframe in the provider to bind.

Reimplemented in CL_Texture_OpenGL.

virtual int CL_Texture::get_width ( ) const [pure virtual]
 

Reimplemented in CL_Texture_OpenGL.

CL_Texture* CL_Texture::load ( const char * id,
CL_ResourceManager * manager ) [static]
 

param: provider - Surface provider to use as image source.param: delete_provider - If true, surface provider will be deletedparam: when the texture is deleted.

virtual void CL_Texture::reload ( ) [pure virtual]
 

Reimplemented in CL_Texture_OpenGL.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:34 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001