0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-26 00:45:46 +00:00
ryujinx-fork/Ryujinx.Graphics.OpenGL/Converters/FaceConverter.cs

24 lines
612 B
C#
Raw Normal View History

2019-10-13 06:02:07 +00:00
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}\".");
}
}
}