Files
Bomberman/lib/Ray/sources/Drawables/3D/Point.hpp
2021-05-22 01:14:21 +02:00

49 lines
1.0 KiB
C++

/*
** EPITECH PROJECT, 2021
** Bomberman
** File description:
** Pixel
*/
#ifndef POINT3D_HPP_
#define POINT3D_HPP_
#include <raylib.h>
#include "Drawables/ADrawable3D.hpp"
namespace RAY::Drawables::Drawables3D {
//! @brief Point in a three-dimensionnal space
class Point: public ADrawable3D
{
public:
//! @brief Point constructor
//! @param position position of point
//! @param Color Color of the point
Point(const Vector3 &position, const Color &color);
//! @brief A default copy constructor
Point(const Point &) = default;
//! @brief A point is assignable
Point &operator=(const Point &) = default;
//! @brief A default destructor
~Point() = default;
//! @return the position of the point
const Vector3 &getPosition(void) const;
//! @brief Set position
Point &setPosition(const Vector3 &Position);
//! @brief Draw point on window
void drawOn(RAY::Window &) override;
private:
//! @brief point position
Vector3 _position;
};
};
#endif /* !PIXEL_HPP_ */