Abstract base class for all other shapes. More...
#include <canvas.hpp>
Public Member Functions | |
virtual | ~tshape () |
virtual void | draw (surface &canvas, const game_logic::map_formula_callable &variables)=0 |
Draws the canvas. More... | |
Public Member Functions inherited from reference_counted_object | |
reference_counted_object () | |
reference_counted_object (const reference_counted_object &) | |
reference_counted_object & | operator= (const reference_counted_object &) |
virtual | ~reference_counted_object () |
void | add_ref () const |
void | dec_ref () const |
int | refcount () const |
Additional Inherited Members | |
Protected Member Functions inherited from reference_counted_object | |
void | turn_reference_counting_off () const |
Abstract base class for all other shapes.
The other shapes are declared and defined in canvas.cpp, since the implementation details are not interesting for users of the canvas.
Definition at line 53 of file canvas.hpp.
|
inlinevirtual |
Definition at line 56 of file canvas.hpp.
|
pure virtual |
Draws the canvas.
canvas | The resulting image will be blitted upon this canvas. |
variables | The canvas can have formulas in it's definition, this parameter contains the values for these formulas. |