![]() |
Gorgon Game Engine
|
Represents a drawable object, that can be drawn to the given point. More...
Public Member Functions | |
| virtual | ~Drawable () |
| void | Draw (TextureTarget &target, const Geometry::Point &p, RGBAf color=RGBAf(1.f)) const |
| Draw to the given coordinates. More... | |
| void | Draw (TextureTarget &target, const Geometry::Pointf &p, RGBAf color=RGBAf(1.f)) const |
| Draw to the given coordinates. More... | |
| void | Draw (TextureTarget &target, float x, float y, RGBAf color=RGBAf(1.f)) const |
| Draw to the given coordinates. More... | |
| void | Draw (TextureTarget &target, int x, int y, RGBAf color=RGBAf(1.f)) const |
| Draw to the given coordinates. More... | |
Protected Member Functions | |
| virtual void | draw (TextureTarget &target, const Geometry::Pointf &p, RGBAf color) const =0 |
| This is the only function that needs to implemented for a drawable. More... | |
Represents a drawable object, that can be drawn to the given point.
Size of the object is assumed to be fixed. Drawing a single drawable can cause many texture to be added to the given texture target
|
virtual |
| void Draw | ( | TextureTarget & | target, |
| const Geometry::Point & | p, | ||
| RGBAf | color = RGBAf(1.f) |
||
| ) | const |
Draw to the given coordinates.
|
protectedpure virtual |
This is the only function that needs to implemented for a drawable.
Implemented in Rectangle, Line, RectangularDrawable, basic_InstanceInjection< Graphics::RectangularAnimation >, basic_AnimatedPointer< A_ >, and DrawablePointer.
| void Draw | ( | TextureTarget & | target, |
| const Geometry::Pointf & | p, | ||
| RGBAf | color = RGBAf(1.f) |
||
| ) | const |
Draw to the given coordinates.
| void Draw | ( | TextureTarget & | target, |
| float | x, | ||
| float | y, | ||
| RGBAf | color = RGBAf(1.f) |
||
| ) | const |
Draw to the given coordinates.
| void Draw | ( | TextureTarget & | target, |
| int | x, | ||
| int | y, | ||
| RGBAf | color = RGBAf(1.f) |
||
| ) | const |
Draw to the given coordinates.