X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finit.hpp;h=a467e69157eebc63e29dd5dcb961aeb8cb4febad;hb=6af76d9e1a6499ebdab405c1d679d24b9e19fded;hp=0256d40fcf5ec8df6846551e73d98924eb855b43;hpb=918b4955c28fad1836a57ab3e9e033448144996c;p=blank.git diff --git a/src/init.hpp b/src/init.hpp index 0256d40..a467e69 100644 --- a/src/init.hpp +++ b/src/init.hpp @@ -21,11 +21,22 @@ public: }; +class InitIMG { + +public: + InitIMG(); + ~InitIMG(); + + InitIMG(const InitIMG &) = delete; + InitIMG &operator =(const InitIMG &) = delete; + +}; + + class InitGL { public: InitGL(); - ~InitGL(); InitGL(const InitGL &) = delete; InitGL &operator =(const InitGL &) = delete; @@ -42,6 +53,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 +82,10 @@ public: GLContext &operator =(const GLContext &) = delete; static void EnableVSync(); + static void EnableDepthTest(); + static void EnableBackfaceCulling(); + + static void Clear(); private: SDL_GLContext handle; @@ -76,7 +97,6 @@ class InitGLEW { public: InitGLEW(); - ~InitGLEW(); InitGLEW(const InitGLEW &) = delete; InitGLEW &operator =(const InitGLEW &) = delete;