25#ifndef SFML_DRAWABLE_HPP
26#define SFML_DRAWABLE_HPP
31#include <SFML/System/Vector2.hpp>
32#include <SFML/Graphics/Color.hpp>
33#include <SFML/Graphics/Matrix3.hpp>
86 void SetPosition(
float X,
float Y);
94 void SetPosition(
const Vector2f& Position);
119 void SetScale(
float ScaleX,
float ScaleY);
127 void SetScale(
const Vector2f& Scale);
135 void SetScaleX(
float FactorX);
143 void SetScaleY(
float FactorY);
154 void SetCenter(
float CenterX,
float CenterY);
164 void SetCenter(
const Vector2f& Center);
172 void SetRotation(
float Rotation);
181 void SetColor(
const Color& Col);
198 const Vector2f& GetPosition()
const;
223 float GetRotation()
const;
231 const Color& GetColor()
const;
248 void Move(
float OffsetX,
float OffsetY);
265 void Scale(
float FactorX,
float FactorY);
281 void Rotate(
float Angle);
313 const Matrix3& GetMatrix()
const;
321 const Matrix3& GetInverseMatrix()
const;
352 mutable bool myNeedUpdate;
353 mutable bool myInvNeedUpdate;
Color is an utility class for manipulating 32-bits RGBA colors.
Abstract base class for every object that can be drawn into a render window.
Utility class to manipulate 3x3 matrices representing 2D transformations.
Base class for all render targets (window, image, ...)
@ Alpha
Pixel = Src * a + Dest * (1 - a)
@ Multiply
Pixel = Src * Dest.