13 const std::string& name,
15 float aspect = 16.0f/9.0f,
16 float near_plane = 0.1f,
17 float far_plane = 1000.0f,
18 const glm::vec3& position =
glm::
vec3(0.0f)
23 const std::string& name,
24 const glm::vec3& position,
25 const glm::vec3& target,
27 float aspect = 16.0f/9.0f,
28 float near_plane = 0.1f,
29 float far_plane = 1000.0f
37 const std::string& name,
40 float near_plane = -1.0f,
41 float far_plane = 1.0f,
42 const glm::vec3& position =
glm::
vec3(0.0f)
47 const std::string& name,
52 float near_plane = -1.0f,
53 float far_plane = 1.0f,
54 const glm::vec3& position =
glm::
vec3(0.0f)
TransformComponent * transform()
static EntityID create(Scene *scene, const std::string &name, float size, float aspect, float near_plane=-1.0f, float far_plane=1.0f, const glm::vec3 &position=glm::vec3(0.0f))
static EntityID create_with_bounds(Scene *scene, const std::string &name, float left, float right, float bottom, float top, float near_plane=-1.0f, float far_plane=1.0f, const glm::vec3 &position=glm::vec3(0.0f))
static EntityID create_looking_at(Scene *scene, const std::string &name, const glm::vec3 &position, const glm::vec3 &target, float fov=70.0f, float aspect=16.0f/9.0f, float near_plane=0.1f, float far_plane=1000.0f)
static EntityID create(Scene *scene, const std::string &name, float fov=70.0f, float aspect=16.0f/9.0f, float near_plane=0.1f, float far_plane=1000.0f, const glm::vec3 &position=glm::vec3(0.0f))
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.