Initial work
This commit is contained in:
parent
f617fb542a
commit
1876b346fe
518 changed files with 15170 additions and 12486 deletions
23
Ryujinx.Graphics.OpenGL/Converters/FaceConverter.cs
Normal file
23
Ryujinx.Graphics.OpenGL/Converters/FaceConverter.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
using OpenTK.Graphics.OpenGL;
|
||||
using Ryujinx.Graphics.GAL;
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.OpenGL
|
||||
{
|
||||
static class FaceConverter
|
||||
{
|
||||
public static CullFaceMode Convert(this Face face)
|
||||
{
|
||||
switch (face)
|
||||
{
|
||||
case Face.Back: return CullFaceMode.Back;
|
||||
case Face.Front: return CullFaceMode.Front;
|
||||
case Face.FrontAndBack: return CullFaceMode.FrontAndBack;
|
||||
}
|
||||
|
||||
return CullFaceMode.FrontAndBack;
|
||||
|
||||
throw new ArgumentException($"Invalid face \"{face}\".");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue