diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2016-02-24 00:44:58 +0100 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2016-02-25 11:16:19 +0100 |
commit | d18ad8a7fb3257001a5045e11f3f770a48a7fa69 (patch) | |
tree | db0d594bd7c1c4e2c458913b24a0978b7d4951d7 /include/basegfx/polygon | |
parent | 9c6b6c6c074a8597502e899a22aa7cb1c3f712ce (diff) |
opengl: shader based polyline rendering - fixes tdf#97137 for OGL
Adds native opengl polyline rendering to draw polylines, line joins
and line caps as triangle strips. The vertex shader allows for the
dynamic line width by calculating the correct vertex posiitons,
and the fragment shader is used for anti-aliasing.
Change-Id: If7982c828cae1fae59c57194c8ac77e5ad7f1d26
Diffstat (limited to 'include/basegfx/polygon')
-rw-r--r-- | include/basegfx/polygon/b2dlinegeometry.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/basegfx/polygon/b2dlinegeometry.hxx b/include/basegfx/polygon/b2dlinegeometry.hxx index 77cafdc6c8ef..d336456d0cd3 100644 --- a/include/basegfx/polygon/b2dlinegeometry.hxx +++ b/include/basegfx/polygon/b2dlinegeometry.hxx @@ -137,6 +137,12 @@ namespace basegfx double fMaxAllowedAngle = (12.5 * F_PI180), double fMaxPartOfEdge = 0.4, double fMiterMinimumAngle = (15.0 * F_PI180)); + + BASEGFX_DLLPUBLIC B2DPolygon polygonSubdivide( + const B2DPolygon& rCandidate, + double fMaxAllowedAngle = (12.5 * F_PI180), + double fMaxPartOfEdge = 0.4); + } // end of namespace tools } // end of namespace basegfx |