| 
    nCine 2025.10.r510-151873a
    
   A cross-platform 2D game engine 
   | 
 
The camera class that handles matrices for shaders. More...
#include <Camera.h>
Classes | |
| struct | ProjectionValues | 
| struct | ViewValues | 
Public Member Functions | |
| Camera () | |
| Creates a camera with default matrices.  | |
| const ProjectionValues & | projectionValues () const | 
| Returns the projection values that are used to create the projection matrix.  | |
| const ViewValues & | viewValues () const | 
| Returns the view values that are used to create the model matrix.  | |
| const Matrix4x4f & | projection () const | 
| Returns the current projection matrix.  | |
| const Matrix4x4f & | view () const | 
| Returns the current model matrix.  | |
| void | setOrthoProjection (float left, float right, float top, float bottom) | 
| Updates the projection matrix using the projection values.  | |
| void | setOrthoProjection (const ProjectionValues &values) | 
| Updates the projection matrix using the projection values from the structure.  | |
| void | setView (const Vector2f &pos, float rotation, float scale) | 
Updates the model matrix using the view values (with position as a Vector2f)  | |
| void | setView (float x, float y, float rotation, float scale) | 
| Updates the model matrix using the view values.  | |
| void | setView (const ViewValues &values) | 
| Updates the model matrix using the view values from the structure.  | |
| unsigned long int | updateFrameProjectionMatrix () const | 
| Returns the last frame when the projection matrix was changed.  | |
| unsigned long int | updateFrameViewMatrix () const | 
| Returns the last frame when the model matrix was changed.  | |
The camera class that handles matrices for shaders.