hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/states/simulation_state.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-20 02:05:45 +0200
committerhachem <im@hachem.wtf>2026-08-20 02:18:50 +0200
commit0802ee19573e880e319a61ae814ee42c01e28cd3 (patch)
tree76d279402ea8ff3d209296192f6ac0d572798c9d /src/states/simulation_state.cpp
parent7d39ee93a6d354e727c7534a18663f1d00d46b0f (diff)
refactor: trailing return types in engine and states
Diffstat (limited to 'src/states/simulation_state.cpp')
-rw-r--r--src/states/simulation_state.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/states/simulation_state.cpp b/src/states/simulation_state.cpp
index 540f236..06955ff 100644
--- a/src/states/simulation_state.cpp
+++ b/src/states/simulation_state.cpp
@@ -15,7 +15,7 @@
namespace Donut
{
- void SimulationState::on_enter()
+ auto SimulationState::on_enter() -> void
{
DONUT_INFO("Entering Simulation State");
@@ -39,12 +39,12 @@ namespace Donut
m_initialized = true;
}
- void SimulationState::on_exit()
+ auto SimulationState::on_exit() -> void
{
DONUT_INFO("Exiting Simulation State");
}
- void SimulationState::on_update(float delta_time)
+ auto SimulationState::on_update(float delta_time) -> void
{
auto& engine = Application::get().get_engine();
engine.update_performance(delta_time);
@@ -60,7 +60,7 @@ namespace Donut
}
}
- void SimulationState::on_render()
+ auto SimulationState::on_render() -> void
{
auto& engine = Application::get().get_engine();
RenderCommand::set_clear_color(glm::vec4(0.0f, 0.0f, 0.0f, 1.0f));
@@ -71,7 +71,7 @@ namespace Donut
engine.draw_blur_pass();
}
- void SimulationState::on_event(Event& event)
+ auto SimulationState::on_event(Event& event) -> void
{
auto& engine = Application::get().get_engine();
@@ -112,7 +112,7 @@ namespace Donut
}
}
- void SimulationState::on_im_ui_render()
+ auto SimulationState::on_im_ui_render() -> void
{
auto& engine = Application::get().get_engine();