]> git.localhorst.tv Git - blank.git/blobdiff - src/interface.cpp
noexcept all the things
[blank.git] / src / interface.cpp
index e4888c5b5f35d1ee3f15a1b9d0f96190ec34b336..12117f7d28632342b9746dddf588debe89caf38f 100644 (file)
@@ -201,7 +201,7 @@ void Interface::PlaceBlock() {
        mod_chunk->Invalidate();
 }
 
-void Interface::RemoveBlock() {
+void Interface::RemoveBlock() noexcept {
        if (!aim_chunk) return;
        aim_chunk->SetBlock(aim_block, remove);
        aim_chunk->Invalidate();
@@ -234,7 +234,7 @@ void Interface::SelectPrevious() {
        hud.Display(selection);
 }
 
-void Interface::Handle(const SDL_WindowEvent &event) {
+void Interface::Handle(const SDL_WindowEvent &event) noexcept {
        if (event.event == SDL_WINDOWEVENT_RESIZED) {
                hud.Viewport(event.data1, event.data2);
        }
@@ -260,7 +260,7 @@ void Interface::Update(int dt) {
 }
 
 
-void Interface::Render(DirectionalLighting &program) {
+void Interface::Render(DirectionalLighting &program) noexcept {
        if (config.visual_disabled) return;
 
        if (aim_chunk) {