class EE::Graphics::PrimitiveDrawable¶
Overview¶
#include <primitivedrawable.hpp> class PrimitiveDrawable: public EE::Graphics::Drawable { public: // construction virtual ~PrimitiveDrawable(); // methods virtual void draw(const Vector2f& position, const Sizef& size); virtual void setFillMode(const PrimitiveFillMode& Mode); const PrimitiveFillMode& getFillMode() const; virtual void setBlendMode(const BlendMode& Mode); const BlendMode& getBlendMode() const; virtual void setLineWidth(const Float& width); const Float& getLineWidth() const; bool isSmooth() const; void setSmooth(bool smooth); };
Inherited Members¶
public: // enums enum Type; // methods virtual Sizef getSize() = 0; virtual Sizef getPixelsSize() = 0; virtual void draw() = 0; virtual void draw(const Vector2f& position) = 0; virtual void draw(const Vector2f& position, const Sizef& size) = 0; virtual bool isStateful() = 0; void setAlpha(Uint8 alpha); const Uint8& getAlpha(); void setColor(const Color& color); const Color& getColor() const; void setColorFilter(const Color& color); RGB getColorFilter(); void clearColor(); void clearColorFilter(); void resetAlpha(); Type getDrawableType() const; const Vector2f& getPosition() const; void setPosition(const Vector2f& position); virtual bool isDrawableResource() const;
Detailed Documentation¶
Methods¶
virtual void setFillMode(const PrimitiveFillMode& Mode)
Set the fill mode used to draw primitives
const PrimitiveFillMode& getFillMode() const
Returns:
The fill mode used to draw primitives
virtual void setBlendMode(const BlendMode& Mode)
Set the blend mode used to draw primitives
const BlendMode& getBlendMode() const
Returns:
The blend mode used to draw primitives
virtual void setLineWidth(const Float& width)
Set the line width to draw primitives
const Float& getLineWidth() const
Returns:
The line with to draw primitives
bool isSmooth() const
Returns:
True if polygon and line smoothing is enabled
void setSmooth(bool smooth)
Enables/Disables polygon and line smoothing