[PICA] Add some clipping definitions

This commit is contained in:
wheremyfoodat 2023-07-04 19:51:07 +03:00
parent 0cc8d0d8a4
commit f7ad66c708
3 changed files with 14 additions and 4 deletions

View file

@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (C) 2022 PCSX-Redux authors *
* Copyright (C) 2022 PCSX-Redux & Panda3DS authors *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@ -524,6 +524,9 @@ namespace OpenGL {
static void enableStencil() { glEnable(GL_STENCIL_TEST); }
static void disableStencil() { glDisable(GL_STENCIL_TEST); }
static void enableClipPlane(GLuint index) { glEnable(GL_CLIP_DISTANCE0 + index); }
static void disableClipPlane(GLuint index) { glDisable(GL_CLIP_DISTANCE0 + index); }
static void setDepthFunc(DepthFunc func) { glDepthFunc(static_cast<GLenum>(func)); }
enum Primitives {