t
Loading...
Searching...
No Matches
constants.hpp
Go to the documentation of this file.
1#include "math/Vector3.hpp"
2
8#ifndef CONSTANTS_HPP
9#define CONSTANTS_HPP
10
11namespace t {
12
19enum class EulerRotationOrder { Xyz, Xzy, Yxz, Yzx, Zxy, Zyx };
20
28enum class TextureFormat {
29 RgbDouble = 3 ,
30 Depth = 1
31};
32
36enum class FrontFace { Clockwise = 1, CounterClockwise = -1 };
37
41enum class CullMode {
42 None = 0 ,
43 Front = 1 ,
44 Back = -1
45};
46
50#define DEFAULT_UP Vector3(0, 1, 0)
51
52} // namespace t
53
54#endif // CONSTANTS_HPP
The t software 3D graphics library namespace.
Definition algorithms.hpp:12
FrontFace
The winding order that determines the front face of a triangle.
Definition constants.hpp:36
EulerRotationOrder
The Euler rotation order.
Definition constants.hpp:19
TextureFormat
The texture format.
Definition constants.hpp:28
@ Depth
Stores the depth in normalized floating-point values.
@ RgbDouble
Stores RGB values in normalized floating-point values.
CullMode
Which faces to cull in the render.
Definition constants.hpp:41
@ Back
Culls back faces.
@ Front
Culls front faces.
@ None
Renders both front and back faces.