25 #ifndef SFML_SPRITE_HPP 26 #define SFML_SPRITE_HPP 31 #include <SFML/System/Resource.hpp> 32 #include <SFML/Graphics/Drawable.hpp> 33 #include <SFML/Graphics/Rect.hpp> 72 void SetImage(
const Image& Img);
81 void SetSubRect(
const IntRect& SubRect);
91 void Resize(
float Width,
float Height);
108 void FlipX(
bool Flipped);
116 void FlipY(
bool Flipped);
124 const Image* GetImage()
const;
132 const IntRect& GetSubRect()
const;
152 Color GetPixel(
unsigned int X,
unsigned int Y)
const;
176 #endif // SFML_SPRITE_HPP
Abstract base class for every object that can be drawn into a render window.
Safe pointer to a T resource (inheriting from sf::Resource<T>), its pointer is automatically reseted ...
Image is the low-level class for loading and manipulating images.
Color is an utility class for manipulating 32-bits RGBA colors.
Sprite defines a sprite : texture, transformations, color, and draw on screen.
Base class for all render targets (window, image, ...)