Bomberman
Public Member Functions | Protected Attributes | List of all members
RAY::Drawables::ADrawable3D Class Referenceabstract

Abstraction of any three-dimensionnal drawable. More...

#include <ADrawable3D.hpp>

Inheritance diagram for RAY::Drawables::ADrawable3D:
Collaboration diagram for RAY::Drawables::ADrawable3D:

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::ColorgetColor (void) const
 
ADrawable3DsetColor (const RAY::Color &color)
 set color More...
 
const RAY::ColorgetDebugColor (void) const
 
ADrawable3DsetDebugColor (const RAY::Color &debugColor)
 set the debug color More...
 
virtual const RAY::Vector3getPosition (void) const
 
virtual ADrawable3DsetPosition (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...
 

Detailed Description

Abstraction of any three-dimensionnal drawable.

Constructor & Destructor Documentation

◆ ADrawable3D() [1/2]

RAY::Drawables::ADrawable3D::ADrawable3D ( const RAY::Vector3 position,
const RAY::Color color 
)
Parameters
ColorColor of the drawable
PositionPosition of the drawable (wether its center or start position for lines)

◆ ADrawable3D() [2/2]

RAY::Drawables::ADrawable3D::ADrawable3D ( const ADrawable3D )
default

A default copy constructor.

◆ ~ADrawable3D()

RAY::Drawables::ADrawable3D::~ADrawable3D ( )
overridedefault

A default destructor.

Member Function Documentation

◆ drawOn()

void RAY::Drawables::ADrawable3D::drawOn ( RAY::Window )
overridepure virtual

◆ drawWiresOn()

void RAY::Drawables::ADrawable3D::drawWiresOn ( RAY::Window )
virtual

◆ getColor()

const RAY::Color & RAY::Drawables::ADrawable3D::getColor ( void  ) const
Returns
the color of the ADrawable

◆ getDebugColor()

const RAY::Color & RAY::Drawables::ADrawable3D::getDebugColor ( void  ) const
Returns
the debug color of the ADrawable

◆ getPosition()

const RAY::Vector3 & RAY::Drawables::ADrawable3D::getPosition ( void  ) const
virtual
Returns
the position of the ADrawable

Reimplemented in RAY::Drawables::Drawables3D::Grid.

◆ setColor()

ADrawable3D & RAY::Drawables::ADrawable3D::setColor ( const RAY::Color color)

set color

◆ setDebugColor()

ADrawable3D & RAY::Drawables::ADrawable3D::setDebugColor ( const RAY::Color debugColor)

set the debug color

◆ setPosition()

ADrawable3D & RAY::Drawables::ADrawable3D::setPosition ( const Vector3 position)
virtual

set position

Reimplemented in RAY::Drawables::Drawables3D::Grid.

Member Data Documentation

◆ _color

Color RAY::Drawables::ADrawable3D::_color
protected

Color of the ADrawable.

◆ _debugColor

Color RAY::Drawables::ADrawable3D::_debugColor = GREEN
protected

Color of the ADrawable's Debug.

◆ _position

Vector3 RAY::Drawables::ADrawable3D::_position
protected

Position of the ADrawable.


The documentation for this class was generated from the following files: