X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finit.hpp;h=d596cbc346f880247a98b8b3ceae9e278acdaa9a;hb=2d8c7c015478a4528c0909f11d43998b1393948d;hp=0256d40fcf5ec8df6846551e73d98924eb855b43;hpb=918b4955c28fad1836a57ab3e9e033448144996c;p=blank.git diff --git a/src/init.hpp b/src/init.hpp index 0256d40..d596cbc 100644 --- a/src/init.hpp +++ b/src/init.hpp @@ -21,6 +21,18 @@ public: }; +class InitIMG { + +public: + InitIMG(); + ~InitIMG(); + + InitIMG(const InitIMG &) = delete; + InitIMG &operator =(const InitIMG &) = delete; + +}; + + class InitGL { public: @@ -42,6 +54,12 @@ public: Window(const Window &) = delete; Window &operator =(const Window &) = delete; + void GrabInput(); + void ReleaseInput(); + + void GrabMouse(); + void ReleaseMouse(); + GLContext CreateContext(); void Flip(); @@ -65,6 +83,10 @@ public: GLContext &operator =(const GLContext &) = delete; static void EnableVSync(); + static void EnableDepthTest(); + static void EnableBackfaceCulling(); + + static void Clear(); private: SDL_GLContext handle;