X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finit.cpp;h=a56674c309506b5ac8f0876be5338b8241dfebf3;hb=e53a0e2e711a7d8bd9b0ddacd1360aa14370643f;hp=73a73094749ec1e6d6712f5dc2a7296816ee6f96;hpb=f90ec88e6728ce865bcf892c810a36abd90d9001;p=blank.git diff --git a/src/init.cpp b/src/init.cpp index 73a7309..a56674c 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -149,20 +149,20 @@ void GLContext::EnableVSync() { } } -void GLContext::EnableDepthTest() { +void GLContext::EnableDepthTest() noexcept { glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LESS); } -void GLContext::EnableBackfaceCulling() { +void GLContext::EnableBackfaceCulling() noexcept { glEnable(GL_CULL_FACE); } -void GLContext::Clear() { +void GLContext::Clear() noexcept { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); } -void GLContext::ClearDepthBuffer() { +void GLContext::ClearDepthBuffer() noexcept { glClear(GL_DEPTH_BUFFER_BIT); }