shengine pre-release
shengine by mrsinho
Loading...
Searching...
No Matches
shCamera.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Defines the ShCamera structure and related constants and functions.
4 *
5 * The ShCamera structure represents a camera component for an entity, along with its properties and transformation matrices.
6 */
7
8#ifndef SH_CAMERA_H
9#define SH_CAMERA_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif//__cplusplus
14
15#include <stdint.h>
16
17
18
19/**
20 * @struct ShCamera
21 * @brief Represents a camera component in scene.
22 */
23typedef struct ShCamera {
24 float fov; /**< Field of view. */
25 float nc; /**< Near clipping plane. */
26 float fc; /**< Far clipping plane. */
27 float speed; /**< Camera movement speed. */
28 float mouse_speed; /**< Mouse sensitivity for camera rotation. */
29 float projection[4][4]; /**< Projection matrix. */
30 float view[4][4]; /**< View matrix. */
31 uint8_t free_flight; /**< Flag indicating free flight mode. */
33
34
35
36#ifdef __cplusplus
37}
38#endif//__cplusplus
39
40#endif//SH_CAMERA_H
Represents a camera component in scene.
Definition shCamera.h:23
float speed
Definition shCamera.h:27
float mouse_speed
Definition shCamera.h:28
float view[4][4]
Definition shCamera.h:30
uint8_t free_flight
Definition shCamera.h:31
float fov
Definition shCamera.h:24
float fc
Definition shCamera.h:26
float nc
Definition shCamera.h:25
float projection[4][4]
Definition shCamera.h:29