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

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

#include <sdl_text_strategy.h>

Inheritance diagram for SdlTextStrategy:
[legend]

Public Member Functions

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

Detailed Description

SDL implementation of the text rendering strategy.

SdlTextStrategy is responsible for rendering text components using SDL. It utilizes an SDL_Renderer to draw the associated text elements of the Component onto the screen, applying necessary transformations and styles as specified by the text component.

Constructor & Destructor Documentation

◆ SdlTextStrategy()

SdlTextStrategy::SdlTextStrategy ( SDL_Renderer &  sdl_renderer)

◆ ~SdlTextStrategy()

SdlTextStrategy::~SdlTextStrategy ( )
overridedefault

Member Function Documentation

◆ draw()

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

Implements IRenderingStrategy.


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