Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
SdlImageStrategy Class Referencefinal

SDL implementation of the image rendering strategy. More...

#include <sdl_image_strategy.h>

Inheritance diagram for SdlImageStrategy:
[legend]

Public Member Functions

 SdlImageStrategy (SDL_Renderer &sdl_renderer)
 
 ~SdlImageStrategy () override=default
 
void draw (Component &component, Camera &camera) override
 
- Public Member Functions inherited from IRenderingStrategy
virtual ~IRenderingStrategy ()=default
 

Detailed Description

SDL implementation of the image rendering strategy.

SdlImageStrategy is responsible for rendering Image components using SDL. It utilizes an SDL_Renderer to draw the associated Texture of the Image component onto the screen, applying transformations and color modulations as specified by the Image.

Constructor & Destructor Documentation

◆ SdlImageStrategy()

SdlImageStrategy::SdlImageStrategy ( SDL_Renderer &  sdl_renderer)

◆ ~SdlImageStrategy()

SdlImageStrategy::~SdlImageStrategy ( )
overridedefault

Member Function Documentation

◆ draw()

void SdlImageStrategy::draw ( Component component,
Camera camera 
)
overridevirtual

Implements IRenderingStrategy.


The documentation for this class was generated from the following file: