ClanSoft logo
ClanSoft logo

    CL_Texture

Texture loading class for OpenGL.

Description

This class can load the image(s) from surface provider into OpenGL textures.

This class works just like a surface, except that it requires the image width to be 2^n.

Class members

static CL_Texture *create(
        CL_SurfaceProvider *provider,
        bool delete_provider=false)
static CL_Texture *load( const char *id, CL_ResourceManager *manager)
virtual ~CL_Texture()
virtual void bind(int texture_no=0)
virtual CL_SurfaceProvider *get_provider()
virtual void reload()
virtual int get_width()
virtual int get_height()
virtual int get_no_textures()
virtual void flush(CL_DisplayCard *card = NULL)

See Also

None


Back to index



This page was built using the Perceps documentation system.