|
Untitled Game engine no.5
1.0
|
Singleton, the current view! More...
#include <Camera.hpp>

Public Member Functions | |
| Camera () | |
| Creates a new camera. | |
| glm::mat4 | GetView () const |
Static Public Member Functions | |
| static Ref< Camera > | Main () |
| static void | Update (const Scene &s) |
| static void | UpdateCameras (ECS &ecs, const EntityID &e) |
Public Attributes | |
| Transform | transform |
| Transform of this camera. | |
| Transform | offset |
| offset to the subject of this camera | |
| float | w |
| Bounding box of this camera. | |
| float | h |
| float | snap_delay_factor = 2.0f |
Static Public Attributes | |
| static Ref< Camera > | main = nullptr |
Singleton, the current view!
|
inline |
|
inlinestatic |
Update all cameras present in the scene.
| s | scene reference |
|
inlinestatic |
Given that an entity with id: e has a camera and a transform. Move the camera so that it is behind the player.
| ecs | entity lookup |
| e | entity id |
1.8.17