2#include "hellfire/scene/Scene.h"
3#include "hellfire/ecs/CameraComponent.h"
4#include "hellfire/ecs/TransformComponent.h"
8 float fov,
float aspect,
float near_plane,
9 float far_plane,
const glm::vec3& position) {
14 camera->set_perspective(fov, aspect, near_plane, far_plane);
22 const glm::vec3& position,
23 const glm::vec3& target,
24 float fov,
float aspect,
25 float near_plane,
float far_plane) {
26 EntityID id = create(scene, name, fov, aspect, near_plane, far_plane, position);
33 float size,
float aspect,
float near_plane,
34 float far_plane,
const glm::vec3& position) {
40 float half_width = size * aspect * 0.5f;
41 float half_height = size * 0.5f;
42 camera->set_orthographic(-half_width, half_width, -half_height, half_height, near_plane, far_plane);
50 float left,
float right,
float bottom,
51 float top,
float near_plane,
float far_plane,
52 const glm::vec3& position) {
57 camera->set_orthographic(left, right, bottom, top, near_plane, far_plane);
TransformComponent * transform()
Manages a collection of entities and their hierarchical relationships.
Entity * get_entity(EntityID id)
Retrieves an entity by its ID.
EntityID create_entity(const std::string &name="GameObject")
Creates a new entity in the scene.