|
Bomberman
|
Abstraction of any three-dimensionnal drawable. More...
#include <ADrawable3D.hpp>
Public Member Functions | |
| ADrawable3D (const RAY::Vector3 &position, const RAY::Color &color) | |
| ADrawable3D (const ADrawable3D &)=default | |
| A default copy constructor. More... | |
| ~ADrawable3D () override=default | |
| A default destructor. More... | |
| void | drawOn (RAY::Window &) override=0 |
| Draw drawble on window. More... | |
| virtual void | drawWiresOn (RAY::Window &) |
| Draw drawble's wires on window. More... | |
| const RAY::Color & | getColor (void) const |
| ADrawable3D & | setColor (const RAY::Color &color) |
| set color More... | |
| const RAY::Color & | getDebugColor (void) const |
| ADrawable3D & | setDebugColor (const RAY::Color &debugColor) |
| set the debug color More... | |
| virtual const RAY::Vector3 & | getPosition (void) const |
| virtual ADrawable3D & | setPosition (const Vector3 &position) |
| set position More... | |
Public Member Functions inherited from RAY::Drawables::IDrawable | |
| virtual | ~IDrawable ()=default |
Protected Attributes | |
| Vector3 | _position |
| Position of the ADrawable. More... | |
| Color | _color |
| Color of the ADrawable. More... | |
| Color | _debugColor = GREEN |
| Color of the ADrawable's Debug. More... | |
Abstraction of any three-dimensionnal drawable.
| RAY::Drawables::ADrawable3D::ADrawable3D | ( | const RAY::Vector3 & | position, |
| const RAY::Color & | color | ||
| ) |
|
default |
A default copy constructor.
|
overridedefault |
A default destructor.
|
overridepure virtual |
Draw drawble on window.
Implements RAY::Drawables::IDrawable.
Implemented in RAY::Drawables::Drawables3D::Model, RAY::Drawables::Drawables3D::Cylinder, RAY::Drawables::Drawables3D::Triangle, RAY::Drawables::Drawables3D::Grid, RAY::Drawables::Drawables3D::Line, RAY::Drawables::Drawables3D::Circle, RAY::Drawables::Drawables3D::Cube, RAY::Drawables::Drawables3D::Ray, RAY::Drawables::Drawables3D::Plane, RAY::Drawables::Drawables3D::Sphere, and RAY::Drawables::Drawables3D::Point.
|
virtual |
Draw drawble's wires on window.
Reimplemented in RAY::Drawables::Drawables3D::Model, RAY::Drawables::Drawables3D::Cylinder, RAY::Drawables::Drawables3D::Cube, and RAY::Drawables::Drawables3D::Sphere.
| const RAY::Color & RAY::Drawables::ADrawable3D::getColor | ( | void | ) | const |
| const RAY::Color & RAY::Drawables::ADrawable3D::getDebugColor | ( | void | ) | const |
|
virtual |
Reimplemented in RAY::Drawables::Drawables3D::Grid.
| ADrawable3D & RAY::Drawables::ADrawable3D::setColor | ( | const RAY::Color & | color | ) |
set color
| ADrawable3D & RAY::Drawables::ADrawable3D::setDebugColor | ( | const RAY::Color & | debugColor | ) |
set the debug color
|
virtual |
set position
Reimplemented in RAY::Drawables::Drawables3D::Grid.
|
protected |
Position of the ADrawable.
1.8.17