27 #include "Portability.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();
   316     void updateTexCoords();
   317     void updateOutline();
   318     void updateOutlineColors();
   328     float m_outlineThickness;
   332 #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:66
 
Define the states used for drawing to a RenderTarget. 
Definition: RenderStates.h:82
 
Data in the graphics memory. 
Definition: VertexBuffer.h:70
 
A texture for colored images. 
Definition: Texture.h:339
 
float getOutlineThickness() const
Get the outline thickness of the shape. 
Definition: Shape.h:227
 
The namespace for gf classes. 
Definition: Action.h:34
 
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
 
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