LibreOffice Module canvas (master)  1
ogl_canvastools.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef INCLUDED_CANVAS_SOURCE_OPENGL_OGL_CANVASTOOLS_HXX
11 #define INCLUDED_CANVAS_SOURCE_OPENGL_OGL_CANVASTOOLS_HXX
12 
13 #include <sal/config.h>
14 #include <vector>
15 
16 #include <epoxy/gl.h>
17 
18 namespace com { namespace sun { namespace star { namespace rendering {
19  struct ARGBColor;
20 }}}}
21 namespace basegfx {
22  class B2DPolyPolygon;
23  class B2DHomMatrix;
24 }
25 
26 namespace oglcanvas
27 {
28  void renderComplexPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly );
29  void renderPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly );
30  void setupState( const ::basegfx::B2DHomMatrix& rTransform,
31  GLenum eSrcBlend,
32  GLenum eDstBlend,
33  const com::sun::star::rendering::ARGBColor& rColor );
34 
35  void renderOSD( const std::vector<double>& rNumbers, double scale );
36 }
37 
38 #endif
39 
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void setupState(const ::basegfx::B2DHomMatrix &rTransform, GLenum eSrcBlend, GLenum eDstBlend, const rendering::ARGBColor &rColor)
void renderOSD(const std::vector< double > &rNumbers, double scale)
void renderComplexPolyPolygon(const ::basegfx::B2DPolyPolygon &rPolyPoly)
triangulates polygon before
void renderPolyPolygon(const ::basegfx::B2DPolyPolygon &rPolyPoly)
only use this for line polygons.