Platformer
Platformer
RectRenderComponent.hpp
1 #ifndef RECTRENDERCOMPONENT_HPP
2 #define RECTRENDERCOMPONENT_HPP
3 
4 #include "RenderComponent.hpp"
5 
8  public:
11  SDL_Color color);
12 
13  virtual void Render() override;
14 
15  private:
17  SDL_Color color;
18 };
19 
20 #endif
A RenderComponent class.
Definition: RenderComponent.hpp:13
SDL_Color color
The color of this RectRenderComponent.
Definition: RectRenderComponent.hpp:17
RectRenderComponent(SDL_Color color)
Constructs a new RectRenderComponent of the given color.
Definition: RectRenderComponent.cpp:5
A component class for rendering rects as solid colors.
Definition: RectRenderComponent.hpp:7
virtual void Render() override
Renders this component based on the given camera.
Definition: RectRenderComponent.cpp:7