mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-10-04 15:18:45 +00:00
Add GSP::GPU::AcquireRight
This commit is contained in:
parent
a56b67f3ba
commit
68698ae7a7
6 changed files with 49 additions and 8 deletions
|
@ -331,6 +331,17 @@ namespace OpenGL {
|
|||
}
|
||||
};
|
||||
|
||||
enum DepthFunc {
|
||||
Never = GL_NEVER, // Depth test never passes
|
||||
Always = GL_ALWAYS, // Depth test always passes
|
||||
Equal = GL_EQUAL, // Depth test passes if frag z == depth buffer z
|
||||
NotEqual = GL_NOTEQUAL, // Depth test passes if frag z != depth buffer z
|
||||
Less = GL_LESS, // Depth test passes if frag z < depth buffer z
|
||||
Lequal = GL_LEQUAL, // Depth test passes if frag z <= depth buffer z
|
||||
Greater = GL_GREATER, // Depth test passes if frag z > depth buffer z
|
||||
Gequal = GL_GEQUAL, // Depth test passes if frag z >= depth buffer z
|
||||
};
|
||||
|
||||
static void setClearColor(float val) { glClearColor(val, val, val, val); }
|
||||
static void setClearColor(float r, float g, float b, float a) { glClearColor(r, g, b, a); }
|
||||
static void setClearDepth(float depth) { glClearDepthf(depth); }
|
||||
|
@ -359,6 +370,8 @@ namespace OpenGL {
|
|||
static void enableStencil() { glEnable(GL_STENCIL_TEST); }
|
||||
static void disableStencil() { glDisable(GL_STENCIL_TEST); }
|
||||
|
||||
static void setDepthFunc(DepthFunc func) { glDepthFunc(static_cast<GLenum>(func)); }
|
||||
|
||||
enum Primitives {
|
||||
Triangle = GL_TRIANGLES,
|
||||
Triangles = Triangle,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue