![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Texture loading class for OpenGL.
Contained in: global
Derived from:
none
Derived by:
none
Group: GL (OpenGL)
#include <ClanLib/gl.h>
public function member index: |
||
Construction: |
||
static CL_Texture* | create | (CL_SurfaceProvider* provider, bool delete_provider=false); |
static CL_Texture* | load | (const std::string& id, CL_ResourceManager* manager); |
virtual | ~CL_Texture | (); |
Attributes: |
||
virtual CL_SurfaceProvider* | get_provider | () const; |
virtual void | reload | (); |
virtual int | get_width | () const; |
virtual int | get_height | () const; |
virtual int | get_num_frames | () const; |
Operations: |
||
virtual void | bind | (int texture_no=0); |
virtual void | flush | (CL_DisplayCard* card = NULL); |
texture_no - Subframe in the provider to bind.
provider - Surface provider to use as image source.
delete_provider - If true, surface provider will be deleted
when the texture is deleted.
Returns - Height of the texture.
Returns - Number of subtextures in texture.
Returns - Width of the texture.
id - Resource ID of the surface resource.
manager - Resource manager used to load the resource from.