25 #ifndef CPP3DS_SHAPE_HPP 
   26 #define CPP3DS_SHAPE_HPP 
   31 #include <cpp3ds/Graphics/Drawable.hpp> 
   32 #include <cpp3ds/Graphics/Transformable.hpp> 
   33 #include <cpp3ds/Graphics/VertexArray.hpp> 
   34 #include <cpp3ds/System/Vector2.hpp> 
  275     void updateFillColors();
 
  281     void updateTexCoords();
 
  287     void updateOutline();
 
  293     void updateOutlineColors();
 
  303     Color          m_outlineColor;     
 
  304     float          m_outlineThickness; 
 
const Color & getOutlineColor() const 
Get the outline color of the shape. 
 
FloatRect getLocalBounds() const 
Get the local bounding rectangle of the entity. 
 
const Color & getFillColor() const 
Get the fill color of the shape. 
 
void update()
Recompute the internal geometry of the shape. 
 
Utility class for manpulating RGBA colors. 
 
Define a set of one or more 2D primitives. 
 
virtual unsigned int getPointCount() const  =0
Get the total number of points of the shape. 
 
void setTexture(const Texture *texture, bool resetRect=false)
Change the source texture of the shape. 
 
virtual ~Shape()
Virtual destructor. 
 
void setOutlineColor(const Color &color)
Set the outline color of the shape. 
 
const IntRect & getTextureRect() const 
Get the sub-rectangle of the texture displayed by the shape. 
 
void setOutlineThickness(float thickness)
Set the thickness of the shape's outline. 
 
Abstract base class for objects that can be drawn to a render target. 
 
float getOutlineThickness() const 
Get the outline thickness of the shape. 
 
Shape()
Default constructor. 
 
Base class for textured shapes with outline. 
 
Base class for all render targets (window, texture, ...) 
 
Define the states used for drawing to a RenderTarget. 
 
void setTextureRect(const IntRect &rect)
Set the sub-rectangle of the texture that the shape will display. 
 
virtual Vector2f getPoint(unsigned int index) const  =0
Get a point of the shape. 
 
void setFillColor(const Color &color)
Set the fill color of the shape. 
 
some things could easily be broken/////// 
 
const Texture * getTexture() const 
Get the source texture of the shape. 
 
FloatRect getGlobalBounds() const 
Get the global bounding rectangle of the entity.