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

SDL implementation of the box collider 2D rendering strategy. More...

#include <sdl_circle_collider_2d_strategy.h>

Inheritance diagram for SdlCircleCollider2DStrategy:
[legend]

Public Member Functions

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

Detailed Description

SDL implementation of the box collider 2D rendering strategy.

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

Constructor & Destructor Documentation

◆ SdlCircleCollider2DStrategy()

SdlCircleCollider2DStrategy::SdlCircleCollider2DStrategy ( SDL_Renderer &  sdl_renderer)

◆ ~SdlCircleCollider2DStrategy()

SdlCircleCollider2DStrategy::~SdlCircleCollider2DStrategy ( )
overridedefault

Member Function Documentation

◆ draw()

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

Implements IRenderingStrategy.


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