|
Capycore Engine
0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
|
SDL implementation of the sprite rendering strategy. More...
#include <sdl_sprite_strategy.h>
Public Member Functions | |
| SdlSpriteStrategy (SDL_Renderer &sdl_renderer) | |
| ~SdlSpriteStrategy () override=default | |
| void | draw (Component &component, Camera &camera) override |
Public Member Functions inherited from IRenderingStrategy | |
| virtual | ~IRenderingStrategy ()=default |
SDL implementation of the sprite rendering strategy.
SdlSpriteStrategy is responsible for rendering Sprite components using SDL. It utilizes an SDL_Renderer to draw the associated Texture of the Sprite component onto the screen, applying transformations and color modulations as specified by the Sprite.
| SdlSpriteStrategy::SdlSpriteStrategy | ( | SDL_Renderer & | sdl_renderer | ) |
|
overridedefault |
Implements IRenderingStrategy.