X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finterface.hpp;h=16ee89f46c37313578d4ca41583c82b4672d01af;hb=bee003d1d375789b6533cfd39c65f6d4478f1966;hp=8bdb8fb7ca0248bf4cb06ce14c3c9cff55cfd8b1;hpb=e52e3c500b679ab7bae9cfdda3fb0d630a2584ad;p=blank.git diff --git a/src/interface.hpp b/src/interface.hpp index 8bdb8fb..16ee89f 100644 --- a/src/interface.hpp +++ b/src/interface.hpp @@ -8,6 +8,7 @@ #include "shader.hpp" #include +#include namespace blank { @@ -34,14 +35,14 @@ public: void Handle(const SDL_MouseMotionEvent &); void Handle(const SDL_MouseButtonEvent &); void Handle(const SDL_MouseWheelEvent &); - void Handle(const SDL_WindowEvent &); + void Handle(const SDL_WindowEvent &) noexcept; void FaceBlock(); void TurnBlock(); void PickBlock(); void PlaceBlock(); - void RemoveBlock(); + void RemoveBlock() noexcept; void PrintBlockInfo(); void PrintChunkInfo(); @@ -54,7 +55,7 @@ public: void Update(int dt); - void Render(DirectionalLighting &); + void Render(DirectionalLighting &) noexcept; private: World &world; @@ -73,7 +74,7 @@ private: Block remove; Block selection; - bool front, back, left, right, up, down; + glm::tvec3 fwd, rev; };