27 #include "GraphicsApi.h" 28 #include "Transformable.h" 29 #include "VertexArray.h" 30 #include "VertexBuffer.h" 33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 98 void setTexture(
const Texture& texture,
bool resetRect =
false);
122 return m_texture !=
nullptr;
146 void setTextureRect(
const RectF& rect);
156 return m_textureRect;
175 void setColor(
const Color4f& color);
197 void setOutlineColor(
const Color4f& color);
207 return m_outlineColor;
219 void setOutlineThickness(
float thickness);
228 return m_outlineThickness;
237 virtual std::size_t getPointCount()
const = 0;
254 virtual Vector2f getPoint(std::size_t index)
const = 0;
267 RectF getLocalBounds()
const;
279 void setAnchor(
Anchor anchor);
312 void updateGeometry();
319 void updateBounds(
RectF bounds);
324 void updateAutoBounds();
328 void updateTexCoords();
329 void updateOutline();
330 void updateOutlineColors();
340 float m_outlineThickness;
344 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Base class for textured shapes with outline.
Definition: Shape.h:73
A set of primitives.
Definition: VertexArray.h:65
const Color4f & getOutlineColor() const
Get the outline color of the shape.
Definition: Shape.h:206
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
Data in the graphics memory.
Definition: VertexBuffer.h:81
A texture for colored images.
Definition: Texture.h:313
float getOutlineThickness() const
Get the outline thickness of the shape.
Definition: Shape.h:227
The namespace for gf classes.
Definition: Action.h:35
const RectF & getTextureRect() const
Get the sub-rectangle of the texture displayed by the shape.
Definition: Shape.h:155
A 4D vector.
Definition: Vector.h:852
const Texture & getTexture() const
Get the source texture of the shape.
Definition: Shape.h:110
bool hasTexture() const
Check if a texture is set.
Definition: Shape.h:121
Anchor
An anchor of a box.
Definition: Anchor.h:38
const Color4f & getColor() const
Get the fill color of the shape.
Definition: Shape.h:184
General purpose math vector.
Definition: Vector.h:61