]> git.localhorst.tv Git - blank.git/blobdiff - src/app/init.cpp
fancy crosshair
[blank.git] / src / app / init.cpp
index 6fa2dfd6c0b9722c2856de9cc528ac035fdaac7b..9c97c9f4b31432b212149efc1e2d30338eb317d0 100644 (file)
@@ -175,7 +175,12 @@ void GLContext::EnableAlphaBlending() noexcept {
        glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 }
 
-void GLContext::DisableAlphaBlending() noexcept {
+void GLContext::EnableInvertBlending() noexcept {
+       glEnable(GL_BLEND);
+       glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ZERO);
+}
+
+void GLContext::DisableBlending() noexcept {
        glDisable(GL_BLEND);
 }