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#pragma once
11
12#include <sal/config.h>
13#include <vector>
14
15#include <epoxy/gl.h>
16
18 struct ARGBColor;
19}
20namespace basegfx {
21 class B2DPolyPolygon;
22 class B2DHomMatrix;
23}
24
25namespace oglcanvas
26{
27 void renderComplexPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly );
28 void renderPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly );
29 void setupState( const ::basegfx::B2DHomMatrix& rTransform,
30 GLenum eSrcBlend,
31 GLenum eDstBlend,
32 const com::sun::star::rendering::ARGBColor& rColor );
33
34 void renderOSD( const std::vector<double>& rNumbers, double scale );
35}
36
37/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void renderComplexPolyPolygon(const ::basegfx::B2DPolyPolygon &rPolyPoly)
triangulates polygon before
void renderOSD(const std::vector< double > &rNumbers, double scale)
void setupState(const ::basegfx::B2DHomMatrix &rTransform, GLenum eSrcBlend, GLenum eDstBlend, const rendering::ARGBColor &rColor)
void renderPolyPolygon(const ::basegfx::B2DPolyPolygon &rPolyPoly)
only use this for line polygons.