1
- // Copyright 2024-2024 the openage authors. See copying.md for legal info.
1
+ // Copyright 2024-2025 the openage authors. See copying.md for legal info.
2
2
3
3
#pragma once
4
4
@@ -19,11 +19,11 @@ class RenderTarget;
19
19
*/
20
20
enum class StencilState {
21
21
// / State for writing GUI elements to stencil buffer.
22
- WRITE_STENCIL_MASK,
22
+ WRITE_STENCIL_MASK,
23
23
// / State for using the mask when rendering scene.
24
- USE_STENCIL_TEST,
24
+ USE_STENCIL_TEST,
25
25
// / State for normal rendering (GUI rendering).
26
- DISABLE_STENCIL,
26
+ DISABLE_STENCIL
27
27
};
28
28
29
29
/* *
@@ -109,10 +109,9 @@ class RenderPass {
109
109
*
110
110
* @param priority Priority of the layer. Layers with higher priority are drawn first.
111
111
* @param clear_depth If true clears the depth buffer before rendering this layer.
112
- * @param stencil_state State of the stencil buffer, using to do stencil test.
112
+ * @param stencil_state State of the stencil buffer, using to do stencil test.
113
113
*/
114
- void add_layer (int64_t priority, bool clear_depth = true ,
115
- StencilState stencil_state = StencilState::DISABLE_STENCIL);
114
+ void add_layer (int64_t priority, bool clear_depth = true , StencilState stencil_state = StencilState::DISABLE_STENCIL);
116
115
117
116
/* *
118
117
* Set the stencil state for the render pass.
@@ -160,11 +159,10 @@ class RenderPass {
160
159
*
161
160
* @param index Index in \p layers member to insert the new layer.
162
161
* @param priority Priority of the layer. Layers with higher priority are drawn first.
163
- * @param clear_depth If true clears the depth buffer before rendering this layer.
164
- * @param stencil_state State of the stencil buffer, using to do stencil test.
162
+ * @param clear_depth If true clears the depth buffer before rendering this layer.
163
+ * @param stencil_state State of the stencil buffer, using to do stencil test.
165
164
*/
166
- void add_layer (size_t index, int64_t priority, bool clear_depth = true ,
167
- StencilState stencil_state = StencilState::DISABLE_STENCIL);
165
+ void add_layer (size_t index, int64_t priority, bool clear_depth = true , StencilState stencil_state = StencilState::DISABLE_STENCIL);
168
166
169
167
/* *
170
168
* Render target to write to.
0 commit comments