25#ifndef SFML_SPRITE_HPP
26#define SFML_SPRITE_HPP
31#include <SFML/Graphics/Export.hpp>
32#include <SFML/Graphics/Drawable.hpp>
33#include <SFML/Graphics/Transformable.hpp>
34#include <SFML/Graphics/Vertex.hpp>
35#include <SFML/Graphics/Rect.hpp>
207 void updatePositions();
213 void updateTexCoords();
Utility class for manipulating RGBA colors.
Abstract base class for objects that can be drawn to a render target.
Define the states used for drawing to a RenderTarget.
Base class for all render targets (window, texture, ...)
Drawable representation of a texture, with its own transformations, color, etc.
Sprite(const Texture &texture, const IntRect &rectangle)
Construct the sprite from a sub-rectangle of a source texture.
void setColor(const Color &color)
Set the global color of the sprite.
Sprite(const Texture &texture)
Construct the sprite from a source texture.
void setTexture(const Texture &texture, bool resetRect=false)
Change the source texture of the sprite.
void setTextureRect(const IntRect &rectangle)
Set the sub-rectangle of the texture that the sprite will display.
const Texture * getTexture() const
Get the source texture of the sprite.
Sprite()
Default constructor.
FloatRect getGlobalBounds() const
Get the global bounding rectangle of the entity.
FloatRect getLocalBounds() const
Get the local bounding rectangle of the entity.
const Color & getColor() const
Get the global color of the sprite.
const IntRect & getTextureRect() const
Get the sub-rectangle of the texture displayed by the sprite.
Image living on the graphics card that can be used for drawing.
Define a point with color and texture coordinates.