From 6ea15072a718b093e3688d22f7f6954e44e383b6 Mon Sep 17 00:00:00 2001 From: ImJezze Date: Sun, 5 Jun 2016 23:50:44 +0200 Subject: Procedural texture for vectors in HLSL * added simple procedural texture for vectors with rounded line ends and beam smoothness * added optional -vector_beam_smooth option * removed -antialias option, antialiasing is now always applied, except for plain D3D --- src/osd/modules/render/drawbgfx.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/osd/modules/render/drawbgfx.cpp') diff --git a/src/osd/modules/render/drawbgfx.cpp b/src/osd/modules/render/drawbgfx.cpp index e0966fdbd62..dec0110157a 100644 --- a/src/osd/modules/render/drawbgfx.cpp +++ b/src/osd/modules/render/drawbgfx.cpp @@ -624,6 +624,13 @@ void renderer_bgfx::put_line(float x0, float y0, float x1, float y1, float r, UI dy *= d; } + // create diamond shape for points + else + { + // set distance to unit vector length (1,1) + dx = dy = 0.70710678f; + } + float nx = dy; float ny = -dx; float verts[4 * 3]; -- cgit v1.2.3-70-g09d2