Hummingbird Framework
 All Classes Functions Variables Modules Pages
hb::Texture Class Reference
Inheritance diagram for hb::Texture:
Collaboration diagram for hb::Texture:

Public Member Functions

 Texture (const sf::Texture &texture, const detail::tex_id &id)
 
 Texture (const detail::tex_id &id)
 
void fill (const Rect &area, const Color &color)
 
void stroke (const Vector2d &start, const Vector2d &end, const Color &color)
 
Vector2d size () const
 
void smooth (bool smooth)
 
void repeat (bool repeat)
 
- Public Member Functions inherited from hb::Resource< sf::Texture, detail::tex_id, TextureManager >
 Resource (const sf::Texture &resource, const detail::tex_id &id)
 Class constructor. More...
 
 Resource (const detail::tex_id &id)
 Class constructor. Used for getting an already loaded resource. More...
 
 Resource (const Resource &other)
 Copy constructor. More...
 
Resourceoperator= (const Resource &other)
 Copy assignment. More...
 
 ~Resource ()
 Class destructor. More...
 
const sf::Texture & get () const
 Get the resource. More...
 
sf::Texture & get ()
 Get the resource. More...
 
const detail::tex_id & id () const
 Get the resource id.
 

Static Public Member Functions

static Texture t404 ()
 
static Texture loadFromFile (const std::string &path, const Rect &area=Rect())
 
static Texture makeTexture (const Vector2d &size)
 

Additional Inherited Members

- Protected Attributes inherited from hb::Resource< sf::Texture, detail::tex_id, TextureManager >
int m_id
 

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