X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finterface.hpp;h=16ee89f46c37313578d4ca41583c82b4672d01af;hb=bee003d1d375789b6533cfd39c65f6d4478f1966;hp=7bfd7155cc3823e335fd7d0cf69964a2121fbfbc;hpb=f90ec88e6728ce865bcf892c810a36abd90d9001;p=blank.git diff --git a/src/interface.hpp b/src/interface.hpp index 7bfd715..16ee89f 100644 --- a/src/interface.hpp +++ b/src/interface.hpp @@ -8,6 +8,7 @@ #include "shader.hpp" #include +#include namespace blank { @@ -34,16 +35,17 @@ 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(); void PrintLightInfo(); void PrintSelectionInfo(); void Print(const Block &); @@ -53,7 +55,7 @@ public: void Update(int dt); - void Render(DirectionalLighting &); + void Render(DirectionalLighting &) noexcept; private: World &world; @@ -72,7 +74,7 @@ private: Block remove; Block selection; - bool front, back, left, right, up, down; + glm::tvec3 fwd, rev; };