Qt 4.8
Public Functions | Public Variables | List of all members
QOpenGLImmediateModeTessellator Class Reference
Inheritance diagram for QOpenGLImmediateModeTessellator:
QOpenGLTessellator QTessellator

Public Functions

void addTrap (const Trapezoid &trap)
 
void tessellate (const QPointF *points, int nPoints, bool winding)
 
- Public Functions inherited from QOpenGLTessellator
 QOpenGLTessellator ()
 
QGLTrapezoid toGLTrapezoid (const Trapezoid &trap)
 
 ~QOpenGLTessellator ()
 
- Public Functions inherited from QTessellator
 QTessellator ()
 
void setWinding (bool w)
 
QRectF tessellate (const QPointF *points, int nPoints)
 
void tessellateConvex (const QPointF *points, int nPoints)
 
void tessellateRect (const QPointF &a, const QPointF &b, qreal width)
 
virtual ~QTessellator ()
 

Public Variables

QVector< QGLTrapezoidtrapezoids
 

Detailed Description

Definition at line 1711 of file qpaintengine_opengl.cpp.

Functions

◆ addTrap()

void QOpenGLImmediateModeTessellator::addTrap ( const Trapezoid trap)
virtual

Implements QTessellator.

Definition at line 1724 of file qpaintengine_opengl.cpp.

1725 {
1727 }
QGLTrapezoid toGLTrapezoid(const Trapezoid &trap)
void append(const T &t)
Inserts value at the end of the vector.
Definition: qvector.h:573

◆ tessellate()

void QOpenGLImmediateModeTessellator::tessellate ( const QPointF points,
int  nPoints,
bool  winding 
)
inline

Definition at line 1715 of file qpaintengine_opengl.cpp.

Referenced by QGLPathMaskGenerator::generateTrapezoids().

1715  {
1716  trapezoids.reserve(trapezoids.size() + nPoints);
1717  setWinding(winding);
1718  QTessellator::tessellate(points, nPoints);
1719  }
QRectF tessellate(const QPointF *points, int nPoints)
void setWinding(bool w)
void reserve(int size)
Attempts to allocate memory for at least size elements.
Definition: qvector.h:339
int size() const
Returns the number of items in the vector.
Definition: qvector.h:137

Properties

◆ trapezoids

QVector<QGLTrapezoid> QOpenGLImmediateModeTessellator::trapezoids

The documentation for this class was generated from the following file: