fix namespaces + assets

This commit is contained in:
arthur.jamet
2021-05-25 14:21:31 +02:00
75 changed files with 36276 additions and 627 deletions
+34 -32
View File
@@ -7,44 +7,46 @@
#include "Drawables/ADrawable2D.hpp"
RAY::Drawables::Drawables2D::ADrawable2D::ADrawable2D(const Vector2 &position, const RAY::Color &color):
_position(position), _color(color)
namespace RAY::Drawables
{
}
ADrawable2D::ADrawable2D(const Vector2 &position, const RAY::Color &color) :
_position(position), _color(color)
{
}
RAY::Drawables::Drawables2D::ADrawable2D::ADrawable2D(int x, int y, const RAY::Color &color):
_position(x, y), _color(color)
{
ADrawable2D::ADrawable2D(int x, int y, const RAY::Color &color) :
_position(static_cast<float>(x), static_cast<float>(y)), _color(color)
{
}
}
const RAY::Vector2 &ADrawable2D::getPosition(void) const
{
return this->_position;
}
const RAY::Vector2 &RAY::Drawables::Drawables2D::ADrawable2D::getPosition(void) const
{
return this->_position;
}
const RAY::Color &ADrawable2D::getColor(void) const
{
return this->_color;
}
const RAY::Color &RAY::Drawables::Drawables2D::ADrawable2D::getColor(void) const
{
return this->_color;
}
ADrawable2D &ADrawable2D::setPosition(const Vector2 &position)
{
this->_position = position;
return *this;
}
RAY::Drawables::Drawables2D::ADrawable2D &RAY::Drawables::Drawables2D::ADrawable2D::setPosition(const Vector2 &position)
{
this->_position = position;
return *this;
}
ADrawable2D &ADrawable2D::setPosition(int x, int y)
{
this->_position.x = static_cast<float>(x);
this->_position.y = static_cast<float>(y);
return *this;
}
RAY::Drawables::Drawables2D::ADrawable2D &RAY::Drawables::Drawables2D::ADrawable2D::setPosition(int x, int y)
{
this->_position.x = x;
this->_position.y = y;
return *this;
}
RAY::Drawables::Drawables2D::ADrawable2D &RAY::Drawables::Drawables2D::ADrawable2D::setColor(const Color &color)
{
this->_color = color;
return *this;
}
ADrawable2D &ADrawable2D::setColor(const Color &color)
{
this->_color = color;
return *this;
}
}