CL_Sprite::CL_Sprite - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# CL_Sprite::CL_Sprite

Constructs a sprite.

    	CL_Sprite(
    		const std::string& resource_id, CL_ResourceManager* manager);

    	CL_Sprite(
    		const CL_SpriteDescription& sprite_description, bool pack_texture = true, unsigned int min_width = 16, unsigned int min_height = 16);

    	CL_Sprite(
    		const CL_Sprite& sprite);

    	CL_Sprite();

Parameters:

resource_id
  Resource name of a sprite resource.
manager
  Resource manager used to load resource.
sprite_description
  Sprite description used to construct sprite.
pack_texture
  If true, will try to pack sprite into as few textures as possible.

See also:

CL_ResourceManager | CL_Resource | CL_SpriteDescription | CL_Sprite

Questions or comments, write to the ClanLib mailing list.