Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
camera.h
Go to the documentation of this file.
1#include <raptiquax.h>
2#include <math/math_util.h>
3#include <io/shader.h>
4
5#ifndef CAMERA_H
6#define CAMERA_H
7
8struct Node;
9struct WorldShaders;
10
16typedef struct Camera {
17 vec3 pos;
18 vec3 rot;
19 float fov;
20} Camera;
21
37void init_camera(Camera *c);
38
50void camera_projection(Camera *c, struct WorldShaders *shaders);
51
// end of Camera group
53
54#endif
A structure to represent a camera with position and rotation in 3D space.
Definition camera.class.c:29
vec3 rot
Definition camera.h:18
vec3 pos
Definition camera.h:17
float fov
Definition camera.h:19
Represents a node in the tree structure.
Definition node.class.c:26
void init_camera(Camera *c)
Initializes the camera.
Definition camera.c:13
void camera_projection(Camera *c, struct WorldShaders *shaders)
Sets up the camera projection.
Definition camera.c:21
This file contains type definitions for fixed-width integer types and floating-point types.
A structure to hold various shaders used in the rendering process.
Definition render.h:25