![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
Base graphical element. Overlay of SFML Sprite. More...
#include <Texture.hpp>
Public Member Functions | |
| Texture () | |
| Texture (const ID &id) | |
| Texture (const String &name) | |
| Texture (const String &name, const sf::IntRect &rect) | |
| virtual | ~Texture () |
| void | LoadFromFile (const String &name) |
| void | SetRect (const sf::IntRect &rect) |
| const ID & | GetID () const |
| void | SetID (const ID &id) |
ISpatial members. | |
| virtual const Vector2 & | GetPosition () const |
| Gets the coordinates in pixels of the origin of this ISpatial from the global origin. | |
| virtual const Vector2 & | GetSize () const |
| Gets the size in pixels of this ISpatial. | |
| virtual const Vector2 & | GetTopLeft () const |
| virtual const Vector2 & | GetBottomRight () const |
| virtual const Vector2 & | GetCenter () const |
| virtual const FloatRect & | GetRectangle () const |
| virtual void | Move (const Vector2 &offset) |
| virtual void | Scale (const Vector2 &factor) |
| virtual void | SetPosition (const Vector2 &position) |
| virtual void | SetSize (const Vector2 &size) |
IDrawable members. | |
| virtual void | Draw (IDrawingContext &context) |
| virtual bool | IsVisible () const |
| virtual void | Show (bool isVisible) |
| virtual void | ChangeColor (const sf::Color &color) |
ICloneable members. | |
| virtual Texture * | Clone () const |
Public Member Functions inherited from yap::ISpatial | |
| virtual | ~ISpatial () |
Public Member Functions inherited from yap::IDrawable | |
| virtual | ~IDrawable () |
Public Member Functions inherited from yap::IIDLoadable | |
| virtual | ~IIDLoadable () |
Public Member Functions inherited from yap::ICloneable | |
| virtual | ~ICloneable () |
Protected Member Functions | |
| Texture (const Texture ©) | |
Private Member Functions | |
| DISALLOW_ASSIGN (Texture) | |
Private Attributes | |
| SpatialInfo | spatialInfo_ |
| sf::Texture * | innerTexture_ |
| sf::Sprite | sprite_ |
| bool | isVisible_ |
| ID | id_ |
Static Private Attributes | |
| static const bool | DEFAULT_VISIBLE_STATE = true |
Base graphical element. Overlay of SFML Sprite.
Definition at line 21 of file Texture.hpp.
| yap::Texture::Texture | ( | ) |
|
explicit |
Definition at line 18 of file Texture.cpp.
|
explicit |
| yap::Texture::Texture | ( | const String & | name, |
| const sf::IntRect & | rect | ||
| ) |
|
virtual |
Definition at line 48 of file Texture.cpp.
|
protected |
Definition at line 165 of file Texture.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 155 of file Texture.cpp.
|
virtual |
Implements yap::ICloneable.
Definition at line 160 of file Texture.cpp.
|
private |
|
virtual |
Implements yap::IDrawable.
Definition at line 137 of file Texture.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 92 of file Texture.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 97 of file Texture.cpp.
| const ID & yap::Texture::GetID | ( | ) | const |
Definition at line 67 of file Texture.cpp.
|
virtual |
Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
Implements yap::ISpatial.
Definition at line 77 of file Texture.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 102 of file Texture.cpp.
|
virtual |
Gets the size in pixels of this ISpatial.
Implements yap::ISpatial.
Definition at line 82 of file Texture.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 87 of file Texture.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 145 of file Texture.cpp.
| void yap::Texture::LoadFromFile | ( | const String & | name | ) |
Definition at line 52 of file Texture.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 107 of file Texture.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 114 of file Texture.cpp.
| void yap::Texture::SetID | ( | const ID & | id | ) |
|
virtual |
Implements yap::ISpatial.
Definition at line 124 of file Texture.cpp.
| void yap::Texture::SetRect | ( | const sf::IntRect & | rect | ) |
Definition at line 60 of file Texture.cpp.
|
virtual |
Implements yap::ISpatial.
Definition at line 129 of file Texture.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 150 of file Texture.cpp.
|
staticprivate |
Definition at line 81 of file Texture.hpp.
|
private |
Definition at line 89 of file Texture.hpp.
|
private |
Definition at line 84 of file Texture.hpp.
|
private |
Definition at line 87 of file Texture.hpp.
|
private |
Definition at line 83 of file Texture.hpp.
|
private |
Definition at line 85 of file Texture.hpp.