From fefd4619a5347b4ef86314a4e17e1d6e63ced297 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 25 Jun 2021 20:11:54 -0300 Subject: Add support for custom line widths (#2406) --- Ryujinx.Graphics.OpenGL/Pipeline.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Ryujinx.Graphics.OpenGL') diff --git a/Ryujinx.Graphics.OpenGL/Pipeline.cs b/Ryujinx.Graphics.OpenGL/Pipeline.cs index a651dc75..948a8b89 100644 --- a/Ryujinx.Graphics.OpenGL/Pipeline.cs +++ b/Ryujinx.Graphics.OpenGL/Pipeline.cs @@ -746,6 +746,20 @@ namespace Ryujinx.Graphics.OpenGL } } + public void SetLineParameters(float width, bool smooth) + { + if (smooth) + { + GL.Enable(EnableCap.LineSmooth); + } + else + { + GL.Disable(EnableCap.LineSmooth); + } + + GL.LineWidth(width); + } + public void SetPointParameters(float size, bool isProgramPointSize, bool enablePointSprite, Origin origin) { // GL_POINT_SPRITE was deprecated in core profile 3.2+ and causes GL_INVALID_ENUM when set. -- cgit v1.2.3