A visual shape.
More...
#include <draw.h>
A visual shape.
To create an object of this type use Renderer::makeShape function.
virtual draw::Shape::~Shape |
( |
| ) |
|
|
virtualdefault |
virtual void draw::Shape::color |
( |
const Color & |
color | ) |
|
|
pure virtual |
virtual const Color& draw::Shape::color |
( |
| ) |
const |
|
pure virtual |
virtual void draw::Shape::geometry |
( |
const GeometryPtr & |
geometry | ) |
|
|
pure virtual |
virtual void draw::Shape::image |
( |
const ImagePtr & |
image | ) |
|
|
pure virtual |
virtual void draw::Shape::image |
( |
const ImagePtr & |
image, |
|
|
const Vector2 & |
tile |
|
) |
| |
|
pure virtual |
set image with tile factor (repetition count)
virtual ImagePtr draw::Shape::image |
( |
| ) |
const |
|
pure virtual |
virtual void draw::Shape::image |
( |
const ImagePtr & |
atlas, |
|
|
const Rect & |
element |
|
) |
| |
|
pure virtual |
set a rectangular element of image atlas
return image atlas and rectangular part of it
virtual void draw::Shape::size |
( |
const Size & |
size | ) |
|
|
pure virtual |
virtual const Size& draw::Shape::size |
( |
| ) |
const |
|
pure virtual |
virtual void draw::Shape::transparency |
( |
bool |
value | ) |
|
|
pure virtual |
enable/disable transparency (alpha = image.a * color.a)
virtual bool draw::Shape::transparency |
( |
| ) |
const |
|
pure virtual |
check if transparency is enabled or not
The documentation for this class was generated from the following file: