33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
146 return m_textureRect;
197 return m_outlineColor;
218 return m_outlineThickness;
306 void updateTexCoords();
307 void updateOutline();
308 void updateOutlineColors();
318 float m_outlineThickness;
322 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Base class for textured shapes with outline.
Definition: Shape.h:73
virtual void draw(RenderTarget &target, RenderStates states) override
Draw the object to a render target.
A set of primitives.
Definition: VertexArray.h:65
VertexBuffer commitGeometry() const
Create a buffer with the current geometry.
Vector< float, 2 > Vector2f
A float vector with 2 components.
Definition: Vector.h:741
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:65
void setTexture(const Texture &texture, bool resetRect=false)
Change the source texture of the shape.
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:81
void setAnchor(Anchor anchor)
Set the anchor origin of the entity.
Shape()
Default constructor.
Data in the graphics memory.
Definition: VertexBuffer.h:70
RectF getLocalBounds() const
Get the local bounding rectangle of the entity.
void updateGeometry()
Recompute the internal geometry of the shape.
virtual Vector2f getPoint(std::size_t index) const =0
Get a point of the shape.
const Color4f & getOutlineColor() const
Get the outline color of the shape.
Definition: Shape.h:196
A texture for colored images.
Definition: Texture.h:317
const Color4f & getColor() const
Get the fill color of the shape.
Definition: Shape.h:174
Rect< float > RectF
A float rectangle.
Definition: Rect.h:306
void setTextureRect(const RectF &rect)
Set the sub-rectangle of the texture that the shape will display.
void setOutlineThickness(float thickness)
Set the thickness of the shape's outline.
const RectF & getTextureRect() const
Get the sub-rectangle of the texture displayed by the shape.
Definition: Shape.h:145
void setOutlineColor(const Color4f &color)
Set the outline color of the shape.
VertexBuffer commitOutlineGeometry() const
Create a buffer with the current outline geometry.
Vector< float, 4 > Color4f
A float color vector with 4 components.
Definition: Vector.h:855
Anchor
The origin anchor of the transformable object.
Definition: Transformable.h:45
void setColor(const Color4f &color)
Set the fill color of the shape.
#define GF_API
Definition: Portability.h:35
float getOutlineThickness() const
Get the outline thickness of the shape.
Definition: Shape.h:217
const Texture * getTexture() const
Get the source texture of the shape.
Definition: Shape.h:111
void unsetTexture()
Unset the source texture of the shape.
virtual std::size_t getPointCount() const =0
Get the total number of points of the shape.