Bomberman
Point.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2021
3 ** Bomberman
4 ** File description:
5 ** Pixel
6 */
7 
8 #ifndef PIXEL_HPP_
9 #define PIXEL_HPP_
10 
11 #include <raylib.h>
13 
16  class Point: public ADrawable2D
17  {
18  public:
22  Point(const Vector2 &position, const Color &);
23 
28  Point(int x, int y, const Color &);
29 
31  Point(const Point &) = default;
32 
34  Point &operator=(const Point &) = default;
35 
37  ~Point() override = default;
38 
40  void drawOn(RAY::Window &) override;
42  void drawOn(RAY::Image &image) override;
43 
44  };
45 };
46 
47 #endif /* !PIXEL_HPP_ */
RAY::Drawables::Drawables2D::Point
Point in a two-dimensionnal space.
Definition: Point.hpp:16
RAY::Window
Definition: Window.hpp:32
RAY::Vector2
A Two-dimensionnal Vector data type.
Definition: Vector2.hpp:15
RAY::Drawables::Drawables2D::Point::Point
Point(const Vector2 &position, const Color &)
Point constructor.
Definition: Point.cpp:14
RAY::Drawables::Drawables2D::Point::drawOn
void drawOn(RAY::Window &) override
Draw point on window.
Definition: Point.cpp:24
RAY::Drawables::Drawables2D::Point::operator=
Point & operator=(const Point &)=default
A point is assignable.
RAY::Drawables::Drawables2D::Point::~Point
~Point() override=default
A default destructor.
RAY::Image
Object representation of a framebuffer.
Definition: Image.hpp:20
RAY::Color
Object representation of color.
Definition: Color.hpp:15
RAY::Drawables::ADrawable2D
Abstraction of any two-dimensionnal drawable.
Definition: ADrawable2D.hpp:21
ADrawable2D.hpp
RAY::Drawables::Drawables2D
Definition: Circle.cpp:11