mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-20 14:01:44 +12:00
[PICA] Add some clipping definitions
This commit is contained in:
parent
0cc8d0d8a4
commit
f7ad66c708
3 changed files with 14 additions and 4 deletions
|
@ -10,6 +10,13 @@ namespace PICA {
|
|||
ViewportHeight = 0x43,
|
||||
ViewportInvh = 0x44,
|
||||
|
||||
// Clipping plane control
|
||||
ClipEnable = 0x47,
|
||||
ClipData0 = 0x48,
|
||||
ClipData1 = 0x49,
|
||||
ClipData2 = 0x4A,
|
||||
ClipData3 = 0x4B,
|
||||
|
||||
DepthScale = 0x4D,
|
||||
DepthOffset = 0x4E,
|
||||
ShaderOutputCount = 0x4F,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue