1 #ifndef CAMERA_COMPONENT_HPP 2 #define CAMERA_COMPONENT_HPP 6 #include "Component.hpp" void Update() override
Updates this component.
Definition: CameraComponent.cpp:18
SDL_Rect renderArea
The render area for this camera.
Definition: CameraComponent.hpp:39
void Translate(SDL_Rect &dest)
Translates the given SDL_Rect based on this camera.
Definition: CameraComponent.cpp:20
void SetActive()
Set this camera as the active camera.
Definition: CameraComponent.cpp:32
CameraComponent()
Constructs a new CameraComponent that renders the whole screen.
Definition: CameraComponent.cpp:6
Class representing a component of a GameObject.
Definition: Component.hpp:12
A class representing a camera within our game.
Definition: CameraComponent.hpp:9
void SetCaptureArea(SDL_Rect r)
Sets the area viewed by the camera to the given rect.
Definition: CameraComponent.cpp:37
SDL_Rect renderView
The area of the game world to capture.
Definition: CameraComponent.hpp:37