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.
22
33#pragma once
44
@@ -19,11 +19,11 @@ class RenderTarget;
1919 */
2020enum class StencilState {
2121 // / State for writing GUI elements to stencil buffer.
22- WRITE_STENCIL_MASK,
22+ WRITE_STENCIL_MASK,
2323 // / State for using the mask when rendering scene.
24- USE_STENCIL_TEST,
24+ USE_STENCIL_TEST,
2525 // / State for normal rendering (GUI rendering).
26- DISABLE_STENCIL,
26+ DISABLE_STENCIL
2727};
2828
2929/* *
@@ -109,10 +109,9 @@ class RenderPass {
109109 *
110110 * @param priority Priority of the layer. Layers with higher priority are drawn first.
111111 * @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.
113113 */
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);
116115
117116 /* *
118117 * Set the stencil state for the render pass.
@@ -160,11 +159,10 @@ class RenderPass {
160159 *
161160 * @param index Index in \p layers member to insert the new layer.
162161 * @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.
165164 */
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);
168166
169167 /* *
170168 * Render target to write to.
0 commit comments