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
12
extern
"C"
{
13
#endif
//__cplusplus
14
15
16
17
/**
18
* @struct ShTransform
19
* @brief Represents a transformation in the engine.
20
*/
21
typedef
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. */
30
}
ShTransform
;
31
32
33
34
#ifdef __cplusplus
35
}
36
#endif
//__cplusplus
37
38
#endif
//SH_TRANSFORM_H
ShTransform
Represents a transformation in the engine.
Definition
shTransform.h:21
ShTransform::left
float left[4]
Definition
shTransform.h:28
ShTransform::up
float up[4]
Definition
shTransform.h:29
ShTransform::euler
float euler[4]
Definition
shTransform.h:25
ShTransform::scale
float scale[4]
Definition
shTransform.h:26
ShTransform::model
float model[4][4]
Definition
shTransform.h:22
ShTransform::position
float position[4]
Definition
shTransform.h:23
ShTransform::rotation
float rotation[4]
Definition
shTransform.h:24
ShTransform::front
float front[4]
Definition
shTransform.h:27
shengine
collection
shcomponents
include
shcomponents
shTransform.h
Generated by
1.9.8