aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs')
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs
index bdf22b9c..05250696 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs
@@ -106,6 +106,31 @@ namespace Ryujinx.Graphics.Gal.OpenGL
return IboCache.TryGetSize(Key, out long Size) && Size == DataSize;
}
+ public void EnableCullFace()
+ {
+ GL.Enable(EnableCap.CullFace);
+ }
+
+ public void DisableCullFace()
+ {
+ GL.Disable(EnableCap.CullFace);
+ }
+
+ public void EnableDepthTest()
+ {
+ GL.Enable(EnableCap.DepthTest);
+ }
+
+ public void DisableDepthTest()
+ {
+ GL.Disable(EnableCap.DepthTest);
+ }
+
+ public void SetDepthFunction(GalComparisonOp Func)
+ {
+ GL.DepthFunc(OGLEnumConverter.GetDepthFunc(Func));
+ }
+
public void CreateVbo(long Key, byte[] Buffer)
{
int Handle = GL.GenBuffer();