20 Color backgroundColor_;
Camera GameObject class Inherits from GameObject class and represents a camera in the scene....
Definition camera.h:18
void set_background_color(const Color &color)
Sets the background color of the camera.
void set_main()
The main camera is the one used for rendering the primary view of the scene. Only one camera can be t...
int get_screen_height() const
Retrieves the current screen height in pixels.
Camera(Scene &scene, Color backgroundColor, float zoom, bool isMain)
void set_zoom(float zoom)
Sets the zoom level of the camera.
int get_screen_width() const
Retrieves the current screen width in pixels.
Color background_color() const
Represents a color with red, green, blue, and alpha components. Each component is represented as an u...
Definition color.h:7
Concept to constrain types to be derived from Component.
Definition gameObject.h:33
std::optional< std::reference_wrapper< T > > get_component() const noexcept
Get the first component of type T attached to this GameObject.
Definition gameObject.h:141
Scene & scene() const noexcept
Represents a scene within the engine. A scene contains multiple GameObjects and manages their lifecyc...
Definition scene.h:19