|
SDL_FRect const & | screen_area () const |
|
float | screen_angle () const |
|
virtual float | x () const =0 |
|
virtual float | y () const =0 |
|
virtual float | z () const =0 |
|
virtual float | angle () const =0 |
|
virtual float | width () const =0 |
|
virtual float | height () const =0 |
|
virtual bool | spatial () const =0 |
|
virtual std::shared_ptr< wze::texture > const & | texture () const =0 |
|
virtual uint8_t | color_r () const =0 |
|
virtual uint8_t | color_g () const =0 |
|
virtual uint8_t | color_b () const =0 |
|
virtual uint8_t | color_a () const =0 |
|
virtual wze::flip | flip () const =0 |
|
virtual bool | visible () const =0 |
|
virtual uint8_t | priority () const =0 |
|
| renderable (renderable const &other) |
|
renderable & | operator= (renderable const &other) |
|
Definition at line 35 of file renderable.hpp.
◆ renderable() [1/2]
wze::renderable::renderable |
( |
| ) |
|
Definition at line 49 of file renderable.cpp.
49 {
50 set_screen_area({0, 0, 0, 0});
51 set_screen_angle(0);
52 _instances.push_back(this);
53}
◆ renderable() [2/2]
wze::renderable::renderable |
( |
renderable const & | other | ) |
|
Definition at line 55 of file renderable.cpp.
55 {
56 *this = other;
57 _instances.push_back(this);
58}
◆ ~renderable()
wze::renderable::~renderable |
( |
| ) |
|
|
virtual |
Definition at line 60 of file renderable.cpp.
60 {
61 _instances.erase(std::find(instances().begin(), instances().end(), this));
62}
◆ screen_area()
SDL_FRect const & wze::renderable::screen_area |
( |
| ) |
const |
|
nodiscard |
◆ screen_angle()
float wze::renderable::screen_angle |
( |
| ) |
const |
|
nodiscard |
◆ operator=()
Definition at line 64 of file renderable.cpp.
64 {
65 if (&other != this) {
66 set_screen_area(other.screen_area());
67 set_screen_angle(other.screen_angle());
68 }
69
70 return *this;
71}
The documentation for this class was generated from the following files: