shengine pre-release
shengine by mrsinho
Loading...
Searching...
No Matches
shTransform.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Defines the ShTransform structure for representing transformations in the engine.
4 *
5 * The ShTransform structure represents a transformation in the engine, including the model matrix, position, rotation, scale, and related vectors.
6 */
7
8#ifndef SH_TRANSFORM_H
9#define SH_TRANSFORM_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif//__cplusplus
14
15
16
17/**
18 * @struct ShTransform
19 * @brief Represents a transformation in the engine.
20 */
21typedef struct ShTransform {
22 float model[4][4]; /**< Model matrix. */
23 float position[4]; /**< Position vector. */
24 float rotation[4]; /**< Rotation vector. */
25 float euler[4]; /**< Euler vector. */
26 float scale[4]; /**< Scale vector. */
27 float front[4]; /**< Front vector. */
28 float left[4]; /**< Left vector. */
29 float up[4]; /**< Up vector. */
31
32
33
34#ifdef __cplusplus
35}
36#endif//__cplusplus
37
38#endif//SH_TRANSFORM_H
Represents a transformation in the engine.
Definition shTransform.h:21
float left[4]
Definition shTransform.h:28
float up[4]
Definition shTransform.h:29
float euler[4]
Definition shTransform.h:25
float scale[4]
Definition shTransform.h:26
float model[4][4]
Definition shTransform.h:22
float position[4]
Definition shTransform.h:23
float rotation[4]
Definition shTransform.h:24
float front[4]
Definition shTransform.h:27