Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtessellator_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QTESSELATOR_P_H
5#define QTESSELATOR_P_H
6
7#include <QPoint>
8#include <QRect>
9
11
13
14typedef int Q27Dot5;
15#define Q27Dot5ToDouble(i) ((i)/32.)
16#define FloatToQ27Dot5(i) (int)((i) * 32)
17#define IntToQ27Dot5(i) ((i) << 5)
18#define Q27Dot5ToXFixed(i) ((i) << 11)
19#define Q27Dot5Factor 32
20
22public:
24 virtual ~QTessellator();
25
26 QRectF tessellate(const QPointF *points, int nPoints);
27 void tessellateConvex(const QPointF *points, int nPoints);
28 void tessellateRect(const QPointF &a, const QPointF &b, qreal width);
29
30 void setWinding(bool w);
31
32 struct Vertex {
35 };
44 virtual void addTrap(const Trapezoid &trap) = 0;
45
46private:
47 friend class QTessellatorPrivate;
49};
50
52
53#endif
\inmodule QtCore\reentrant
Definition qpoint.h:217
\inmodule QtCore\reentrant
Definition qrect.h:484
void tessellateConvex(const QPointF *points, int nPoints)
void tessellateRect(const QPointF &a, const QPointF &b, qreal width)
void setWinding(bool w)
virtual ~QTessellator()
QRectF tessellate(const QPointF *points, int nPoints)
virtual void addTrap(const Trapezoid &trap)=0
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
GLfloat GLfloat GLfloat w
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLint GLsizei width
GLfixed GLfixed GLint GLint GLfixed points
int Q27Dot5
double qreal
Definition qtypes.h:187
const Vertex * bottomRight
const Vertex * bottomLeft