Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
sdl_circle_collider_2d_strategy.h
Go to the documentation of this file.
1#pragma once
2
3#include <SDL3/SDL.h>
7
17 private:
18 SDL_Renderer& sdl_renderer_;
19
20 void draw_circle(int cx, int cy, int radius);
21
22 public:
23 SdlCircleCollider2DStrategy(SDL_Renderer& sdl_renderer);
24 ~SdlCircleCollider2DStrategy() override = default;
25 void draw(Component& component, Camera& camera) override;
26};
Camera GameObject class Inherits from GameObject class and represents a camera in the scene....
Definition camera.h:18
Base class for all components that can be attached to GameObjects.
Definition component.h:24
Interface for rendering strategies used by renderable components.
Definition irendering_strategy.h:13
SDL implementation of the box collider 2D rendering strategy.
Definition sdl_circle_collider_2d_strategy.h:16
SdlCircleCollider2DStrategy(SDL_Renderer &sdl_renderer)
~SdlCircleCollider2DStrategy() override=default
void draw(Component &component, Camera &camera) override