|
cat3d
A tiny OpenGL 3D engine library written in and for C++.
|
5 #include "cat3d/scene.hpp"
24 camera(glm::vec3 pos, glm::vec3 aim,
float fov = 75.f);
64 glm::mat4 view_matrix()
const;
66 glm::mat4 proj_matrix(
window& win)
const;
glm::vec3 get_pos() const
Retrieve the camera's center.
void set_pos(glm::vec3 new_pos)
Set the camera's center.
Manages internal window api / state.
Definition: window.hpp:17
camera(glm::vec3 pos, glm::vec3 aim, float fov=75.f)
Constructor.
void set_aim(glm::vec3 new_aim)
Set the location that the camera points towards.
glm::vec3 get_aim() const
Get the camera's currently focused point.
void update_self(window &win)
Overridden by child classes to implement custom behavior.
Basic, semi-abstract scene node class. Can have children which are other scene nodes,...
Definition: node.hpp:28
Node for managing the camera's perspective on the scene.
Definition: camera.hpp:15