Hymn to Beauty
C++ 3D Engine
Types.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace Video {
4
6enum class CullFace {
7 NONE,
8 BACK,
9 FRONT
10};
11
13enum class DepthMode {
14 NONE,
15 TEST,
17};
18
20enum class DepthComparison {
21 LESS,
23 ALWAYS,
24};
25
27enum class PolygonMode {
28 FILL,
29 LINE,
30};
31
33enum class Filtering {
35 LINEAR,
36};
37
39enum class BlendMode {
40 NONE,
43};
44
46enum class PrimitiveType {
47 POINT,
48 LINE,
50};
51
52}
Definition: Editor.hpp:18
PrimitiveType
The type of primitives to render.
Definition: Types.hpp:46
DepthComparison
How to perform depth comparisons.
Definition: Types.hpp:20
@ LESS
Passes if incoming value is less than stored value.
@ LESS_EQUAL
Passes if incoming value is less than or equal to stored value.
@ ALWAYS
Always passes.
PolygonMode
How polygons are rasterized.
Definition: Types.hpp:27
@ LINE
Draw boundary edges as lines.
@ FILL
Fill polygons.
BlendMode
Blending mode.
Definition: Types.hpp:39
@ ONE_ONE_MINUS_SRC_ALPHA
Pre-multiplied alpha.
@ ALPHA_ONE_MINUS_SRC_ALPHA
Regular blending.
@ NONE
Don't use blending.
DepthMode
How to use depth buffer.
Definition: Types.hpp:13
@ TEST
Test depth, but don't write to depth buffer.
@ TEST_WRITE
Test depth and write to depth buffer.
@ NONE
Neither test against nor write to depth buffer.
CullFace
Which face to cull.
Definition: Types.hpp:6
@ BACK
Cull back faces.
@ NONE
Don't perform face culling.
@ FRONT
Cull front faces.
Filtering
Filtering.
Definition: Types.hpp:33
@ NEAREST_NEIGHBOR
Nearest neighbor filtering.
@ LINEAR
Linear filtering.