33 #ifndef DOXYGEN_SHOULD_SKIP_THIS   122       return m_texture != 
nullptr;
   156       return m_textureRect;
   175     void setColor(
const Color4f& color);
   207       return m_outlineColor;
   228       return m_outlineThickness;
   254     virtual Vector2f 
getPoint(std::size_t index) 
const = 0;
   316     void updateTexCoords();
   317     void updateOutline();
   318     void updateOutlineColors();
   327     Color4f m_outlineColor;
   328     float m_outlineThickness;
   332 #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
 
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:66
 
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:82
 
void setAnchor(Anchor anchor)
Set the anchor origin of the entity. 
 
Shape()
Default constructor. 
 
Data in the graphics memory. 
Definition: VertexBuffer.h:70
 
VertexBuffer commitOutlineGeometry() const
Create a buffer with the current outline geometry. 
 
void updateGeometry()
Recompute the internal geometry of the shape. 
 
virtual Vector2f getPoint(std::size_t index) const =0
Get a point of the shape. 
 
A texture for colored images. 
Definition: Texture.h:339
 
RectF getLocalBounds() const
Get the local bounding rectangle of the entity. 
 
float getOutlineThickness() const
Get the outline thickness of the shape. 
Definition: Shape.h:227
 
The namespace for gf classes. 
Definition: Action.h:34
 
VertexBuffer commitGeometry() const
Create a buffer with the current geometry. 
 
void setTextureRect(const RectF &rect)
Set the sub-rectangle of the texture that the shape will display. 
 
const RectF & getTextureRect() const
Get the sub-rectangle of the texture displayed by the shape. 
Definition: Shape.h:155
 
const Texture & getTexture() const
Get the source texture of the shape. 
Definition: Shape.h:110
 
void setOutlineThickness(float thickness)
Set the thickness of the shape's outline. 
 
void setOutlineColor(const Color4f &color)
Set the outline color of the shape. 
 
bool hasTexture() const
Check if a texture is set. 
Definition: Shape.h:121
 
Anchor
An anchor of a box. 
Definition: Anchor.h:41
 
void setColor(const Color4f &color)
Set the fill color of the shape. 
 
const Color4f & getColor() const
Get the fill color of the shape. 
Definition: Shape.h:184
 
#define GF_API
Definition: Portability.h:35
 
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.