Skip to content

Commit 7eca3b5

Browse files
committed
clean some format issues
1 parent 18622d4 commit 7eca3b5

File tree

7 files changed

+20
-22
lines changed

7 files changed

+20
-22
lines changed

libopenage/presenter/presenter.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ void Presenter::init_graphics(const renderer::window_settings &window_settings)
165165
this->asset_manager,
166166
this->time_loop->get_clock());
167167
this->render_passes.push_back(this->hud_renderer->get_render_pass());
168-
169-
for (auto& render_pass : render_passes) {
168+
169+
for (auto &render_pass : render_passes) {
170170
render_pass->set_stencil_state(renderer::StencilState::USE_STENCIL_TEST);
171171
}
172172

@@ -220,7 +220,7 @@ void Presenter::init_gui() {
220220
qml_root, // directory to watch for qml file changes
221221
qml_assets, // qml data: Engine *, the data directory, ...
222222
this->renderer // openage renderer
223-
);
223+
);
224224

225225
auto stencil_pass = this->gui->get_stencil_pass();
226226
this->render_passes.push_back(stencil_pass);

libopenage/presenter/presenter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class Presenter {
230230
* Input manager.
231231
*/
232232
std::shared_ptr<input::InputManager> input_manager;
233-
233+
234234
/**
235235
* Pass indices.
236236
*/

libopenage/renderer/gui/gui.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015-2024 the openage authors. See copying.md for legal info.
1+
// Copyright 2015-2025 the openage authors. See copying.md for legal info.
22

33
#include "gui.h"
44

libopenage/renderer/gui/gui.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015-2024 the openage authors. See copying.md for legal info.
1+
// Copyright 2015-2025 the openage authors. See copying.md for legal info.
22

33
#pragma once
44

@@ -65,8 +65,8 @@ class GUI {
6565

6666
/**
6767
* Get the stencil render pass of the GUI.
68-
*
69-
* @return stencil render pass of the GUI
68+
*
69+
* @return stencil render pass of the GUI.
7070
*/
7171
std::shared_ptr<renderer::RenderPass> get_stencil_pass() const;
7272

libopenage/renderer/opengl/renderer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ class GlRenderer final : public Renderer {
6464
static void optimize(const std::shared_ptr<GlRenderPass> &pass);
6565

6666
void setupStencilWrite();
67-
67+
6868
void setupStencilTest();
69-
69+
7070
void disableStencilTest();
7171

7272
/// The GL context.

libopenage/renderer/render_pass.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
#include "render_pass.h"
44

libopenage/renderer/render_pass.h

+9-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
*/
2020
enum 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

Comments
 (0)