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