adding namespace for ADrawable2D.cpp & ADrawable3D.cpp

This commit is contained in:
Clément Le Bihan
2021-05-25 09:27:21 +02:00
parent efa6d4b154
commit 6fea6b8f83
4 changed files with 60 additions and 57 deletions
+23 -22
View File
@@ -7,32 +7,33 @@
#include "Drawables/ADrawable3D.hpp"
RAY::Drawables::Drawables3D::ADrawable3D::ADrawable3D(const RAY::Vector3 &position, const RAY::Color &color):
_position(position), _color(color)
namespace RAY::Drawables::Drawables3D
{
}
ADrawable3D::ADrawable3D(const RAY::Vector3 &position, const RAY::Color &color) :
_position(position), _color(color)
{
}
const RAY::Color &RAY::Drawables::Drawables3D::ADrawable3D::getColor(void) const
{
return this->_color;
}
const RAY::Color &ADrawable3D::getColor(void) const
{
return this->_color;
}
RAY::Drawables::Drawables3D::ADrawable3D &RAY::Drawables::Drawables3D::ADrawable3D::setColor(const RAY::Color &color)
{
this->_color = color;
return *this;
}
ADrawable3D &ADrawable3D::setColor(const RAY::Color &color)
{
this->_color = color;
return *this;
}
const RAY::Vector3 &ADrawable3D::getPosition(void) const
{
return this->_position;
}
const RAY::Vector3 &RAY::Drawables::Drawables3D::ADrawable3D::getPosition(void) const
{
return this->_position;
}
RAY::Drawables::Drawables3D::ADrawable3D &RAY::Drawables::Drawables3D::ADrawable3D::setPosition(const RAY::Vector3 &position)
{
this->_position = position;
return *this;
ADrawable3D &ADrawable3D::setPosition(const RAY::Vector3 &position)
{
this->_position = position;
return *this;
}
}