[OpenGL] Same for depth mask

This commit is contained in:
wheremyfoodat 2023-07-05 18:54:09 +03:00
parent d80785cbb5
commit 7307bd270b
4 changed files with 18 additions and 5 deletions

View file

@ -528,6 +528,8 @@ namespace OpenGL {
static void disableClipPlane(GLuint index) { glDisable(GL_CLIP_DISTANCE0 + index); }
static void setDepthFunc(DepthFunc func) { glDepthFunc(static_cast<GLenum>(func)); }
static void setColourMask(GLboolean r, GLboolean g, GLboolean b, GLboolean a) { glColorMask(r, g, b, a); }
static void setDepthMask(GLboolean mask) { glDepthMask(mask); }
enum Primitives {
Triangle = GL_TRIANGLES,