|
| Sprite (const sf::Texture &texture, sf::Vector2f scale, sf::IntRect intRect=sf::IntRect(0, 0, 0, 0), sf::Vector2f pos=sf::Vector2f(0, 0)) noexcept |
|
| Sprite (const sf::Texture &texture, int scaleX, int scaleY, sf::IntRect intRect, sf::Vector2f pos) noexcept |
|
| Sprite (const sf::Texture &texture, int scaleX, int scaleY, int left, int top, int width, int height, sf::Vector2f pos) noexcept |
|
| Sprite (const Sprite &sprite) noexcept |
|
| Sprite (Sprite &&) noexcept=delete |
|
| ~Sprite () noexcept override=default |
|
void | setSprite (sf::Sprite *sprite) noexcept |
|
void | setTexture (const sf::Texture &texture) noexcept |
|
sf::Sprite * | getSprite () const noexcept |
|
const sf::Texture * | getTexture () const noexcept |
|
void | setIntRect (sf::IntRect rect) noexcept |
|
void | setIntRect (int left, int top, int width, int height) noexcept |
|
sf::IntRect | getIntRect () const noexcept |
|
void | setScale (int x, int y) noexcept |
|
void | setScale (sf::Vector2f scale) noexcept |
|
sf::Vector2f | getScale () const noexcept |
|
void | setPosition (int x, int y) noexcept |
|
void | setPosition (sf::Vector2f pos) noexcept |
|
sf::Vector2f | getPosition () const noexcept |
|
Sprite & | operator= (const Sprite &) const noexcept=delete |
|
Sprite & | operator= (Sprite &&) const noexcept=delete |
|
virtual | ~IComp () noexcept=default |
|
ECS::Sprite::Sprite |
( |
const sf::Texture & |
texture, |
|
|
sf::Vector2f |
scale, |
|
|
sf::IntRect |
intRect = sf::IntRect(0, 0, 0, 0) , |
|
|
sf::Vector2f |
pos = sf::Vector2f(0, 0) |
|
) |
| |
|
explicitnoexcept |
Sprite(const sf::Texture& texture, sf::Vector2f scale, sf::IntRect intRect, sf::Vector2f pos) noexcept
This function takes in a texture, a scale, an intRect, and a position, and creates a sprite with those parameters
- Parameters
-
texture | The texture to use for the sprite. |
scale | The scale of the sprite. |
intRect | The rectangle of the texture that you want to use. |
pos | The position of the sprite. |
ECS::Sprite::Sprite |
( |
const sf::Texture & |
texture, |
|
|
int |
scaleX, |
|
|
int |
scaleY, |
|
|
sf::IntRect |
intRect, |
|
|
sf::Vector2f |
pos |
|
) |
| |
|
explicitnoexcept |
Sprite(const sf::Texture& texture, int scaleX, int scaleY, sf::IntRect intRect, sf::Vector2f pos) noexcept
This function takes in a texture, a scale, an intRect, and a position, and creates a sprite with those values
- Parameters
-
texture | The texture to use for the sprite. |
scaleX | The scale of the sprite on the X axis. |
scaleY | The scale of the sprite on the Y axis. |
intRect | The rectangle of the texture you want to use. |
pos | The position of the sprite. |
ECS::Sprite::Sprite |
( |
const sf::Texture & |
texture, |
|
|
int |
scaleX, |
|
|
int |
scaleY, |
|
|
int |
left, |
|
|
int |
top, |
|
|
int |
width, |
|
|
int |
height, |
|
|
sf::Vector2f |
pos |
|
) |
| |
|
explicitnoexcept |
Sprite(const sf::Texture& texture, int scaleX, int scaleY, int left, int top, int width, int height, sf::Vector2f pos) noexcept
This function takes in a texture, a scale, a rectangle, and a position, and creates a sprite with those values
- Parameters
-
texture | The texture to use for the sprite. |
scaleX | The scale of the sprite on the X axis. |
scaleY | The scale of the sprite on the Y axis. |
left | The left position of the sprite in the texture. |
top | the top of the sprite in the texture |
width | The width of the sprite. |
height | The height of the sprite. |
pos | The position of the sprite. |