diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2014-12-18 11:47:58 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2014-12-18 12:05:36 +0100 |
commit | 783ba49aa0cd068c7e3dacdd3c13e9c37cf52e22 (patch) | |
tree | 9aed0f29ff635612f8f668414efd07c15e6bb7b1 /vcl/inc/openglgdiimpl.hxx | |
parent | a2e4be6ded508030a6c2a33919cbe8cb504382e0 (diff) |
draw also opengl polygon with AA edges if AA is wanted
Especially given that lines are sometimes actually drawn using polygons.
Change-Id: I429a24faff94f8b9accc20bdee3ff66f47669bde
Diffstat (limited to 'vcl/inc/openglgdiimpl.hxx')
-rw-r--r-- | vcl/inc/openglgdiimpl.hxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx index 2c911eeb50d7..4ca30b3441c5 100644 --- a/vcl/inc/openglgdiimpl.hxx +++ b/vcl/inc/openglgdiimpl.hxx @@ -56,6 +56,9 @@ protected: SalColor mnLineColor; SalColor mnFillColor; +#ifdef DBG_UTIL + bool mProgramIsSolidLineColor; +#endif void ImplInitClipRegion(); void ImplSetClipBit( const vcl::Region& rClip, GLuint nMask ); @@ -67,20 +70,21 @@ public: bool UseSolid( SalColor nColor, sal_uInt8 nTransparency ); bool UseSolid( SalColor nColor, double fTransparency ); bool UseSolid( SalColor nColor ); + bool UseSolidAA( SalColor nColor, double fTransparency ); bool UseSolidAA( SalColor nColor ); bool UseInvert(); void DrawPoint( long nX, long nY ); - void DrawLine( long nX1, long nY1, long nX2, long nY2 ); + void DrawLine( double nX1, double nY1, double nX2, double nY2 ); void DrawLines( sal_uInt32 nPoints, const SalPoint* pPtAry, bool bClose ); - void DrawLineAA( long nX1, long nY1, long nX2, long nY2 ); + void DrawLineAA( double nX1, double nY1, double nX2, double nY2 ); void DrawLinesAA( sal_uInt32 nPoints, const SalPoint* pPtAry, bool bClose ); void DrawConvexPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry ); void DrawConvexPolygon( const Polygon& rPolygon ); void DrawRect( long nX, long nY, long nWidth, long nHeight ); void DrawRect( const Rectangle& rRect ); void DrawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry ); - void DrawPolyPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon ); + void DrawPolyPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, bool blockAA = false ); void DrawRegionBand( const RegionBand& rRegion ); void DrawTextureRect( OpenGLTexture& rTexture, const SalTwoRect& rPosAry, bool bInverted = false ); void DrawTexture( OpenGLTexture& rTexture, const SalTwoRect& rPosAry, bool bInverted = false ); |