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_image_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 Color get_default_image_color(SDL_Texture* texture);
21 void set_image_color(const Color& color, SDL_Texture* texture);
22
23 public:
24 SdlImageStrategy(SDL_Renderer& sdl_renderer);
25 ~SdlImageStrategy() override = default;
26 void draw(Component& component, Camera& camera) override;
27};
Camera GameObject class Inherits from GameObject class and represents a camera in the scene....
Definition camera.h:18
Represents a color with red, green, blue, and alpha components. Each component is represented as an u...
Definition color.h:7
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 image rendering strategy.
Definition sdl_image_strategy.h:16
SdlImageStrategy(SDL_Renderer &sdl_renderer)
void draw(Component &component, Camera &camera) override
~SdlImageStrategy() override=default