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
12
extern
"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
*/
23
typedef
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. */
32
}
ShCamera
;
33
34
35
36
#ifdef __cplusplus
37
}
38
#endif
//__cplusplus
39
40
#endif
//SH_CAMERA_H
ShCamera
Represents a camera component in scene.
Definition
shCamera.h:23
ShCamera::speed
float speed
Definition
shCamera.h:27
ShCamera::mouse_speed
float mouse_speed
Definition
shCamera.h:28
ShCamera::view
float view[4][4]
Definition
shCamera.h:30
ShCamera::free_flight
uint8_t free_flight
Definition
shCamera.h:31
ShCamera::fov
float fov
Definition
shCamera.h:24
ShCamera::fc
float fc
Definition
shCamera.h:26
ShCamera::nc
float nc
Definition
shCamera.h:25
ShCamera::projection
float projection[4][4]
Definition
shCamera.h:29
shengine
collection
shcomponents
include
shcomponents
shCamera.h
Generated by
1.9.8