GraphicsComponent class used to flip through frames for a GameEntity.
More...
#include <GraphicsComponent.hpp>
GraphicsComponent class used to flip through frames for a GameEntity.
◆ GraphicsComponent()
| GraphicsComponent::GraphicsComponent |
( |
SDL_Renderer * |
ren | ) |
|
◆ ~GraphicsComponent()
| GraphicsComponent::~GraphicsComponent |
( |
| ) |
|
◆ LoadImage()
| void GraphicsComponent::LoadImage |
( |
std::string |
filepath, |
|
|
SDL_Renderer * |
ren |
|
) |
| |
|
virtual |
Loads image to use for graphics.
Loads image to use for graphics and uses ResourceManager.
- Parameters
-
| filepath | the FilePath of the Image to be loaded |
| SDL_Renderer | ren |
| std::string | filepath |
| SDL_Renderer | ren |
Reimplemented from Component.
◆ Render()
| void GraphicsComponent::Render |
( |
GameEntity & |
entity | ) |
|
|
virtual |
Renders graphic.
- Parameters
-
Reimplemented from Component.
◆ ShutDown()
| void GraphicsComponent::ShutDown |
( |
| ) |
|
|
virtual |
◆ StartUp()
| void GraphicsComponent::StartUp |
( |
| ) |
|
|
virtual |
◆ Update()
| void GraphicsComponent::Update |
( |
GameEntity & |
entity | ) |
|
|
virtual |
Selects graphic to render depending on frame.
- Parameters
-
Implements Component.
The documentation for this class was generated from the following files: