CG-Project2
Loading...
Searching...
No Matches
systems::camera Namespace Reference

All utilities to manage the world camera. More...

Functions

Shared< ogl::CameragetCamera (const unsigned int &id)
 Retrieves a pointer to the camera given.
void updateCameraCollider (const unsigned int &id, const glm::vec3 &position, const glm::vec3 &size)
 Updates the collider of the camera given.

Detailed Description

All utilities to manage the world camera.

Function Documentation

◆ getCamera()

Shared< ogl::Camera > systems::camera::getCamera ( const unsigned int & id)

Retrieves a pointer to the camera given.

Parameters
idthe camera id
Returns
a shared pointer to the camera

◆ updateCameraCollider()

void systems::camera::updateCameraCollider ( const unsigned int & id,
const glm::vec3 & position,
const glm::vec3 & size )

Updates the collider of the camera given.

Parameters
idthe camera id
positionthe camera position
sizethe camera collider size