![]() |
Qt 4.8
|
#include <qsggeometry.h>
Classes | |
| struct | Attribute |
| struct | AttributeSet |
| struct | ColoredPoint2D |
| struct | Point2D |
| struct | TexturedPoint2D |
Public Functions | |
| void | allocate (int vertexCount, int indexCount=0) |
| int | attributeCount () const |
| const Attribute * | attributes () const |
| GLenum | drawingMode () const |
| int | indexCount () const |
| void * | indexData () |
| const void * | indexData () const |
| uint * | indexDataAsUInt () |
| const uint * | indexDataAsUInt () const |
| quint16 * | indexDataAsUShort () |
| const quint16 * | indexDataAsUShort () const |
| int | indexType () const |
| QSGGeometry (const QSGGeometry::AttributeSet &attribs, int vertexCount, int indexCount=0, int indexType=GL_UNSIGNED_SHORT) | |
| void | setDrawingMode (GLenum mode) |
| int | stride () const |
| int | vertexCount () const |
| void * | vertexData () |
| const void * | vertexData () const |
| ColoredPoint2D * | vertexDataAsColoredPoint2D () |
| const ColoredPoint2D * | vertexDataAsColoredPoint2D () const |
| Point2D * | vertexDataAsPoint2D () |
| const Point2D * | vertexDataAsPoint2D () const |
| TexturedPoint2D * | vertexDataAsTexturedPoint2D () |
| const TexturedPoint2D * | vertexDataAsTexturedPoint2D () const |
| ~QSGGeometry () | |
Static Public Functions | |
| static const AttributeSet & | defaultAttributes_ColoredPoint2D () |
| static const AttributeSet & | defaultAttributes_Point2D () |
| static const AttributeSet & | defaultAttributes_TexturedPoint2D () |
| static void | updateRectGeometry (QSGGeometry *g, const QRectF &rect) |
| static void | updateTexturedRectGeometry (QSGGeometry *g, const QRectF &rect, const QRectF &sourceRect) |
Properties | |
| const AttributeSet & | m_attributes |
| void * | m_data |
| int | m_drawing_mode |
| int | m_index_count |
| int | m_index_data_offset |
| int | m_index_type |
| uint | m_owns_data: 1 |
| float | m_prealloc [16] |
| uint | m_reserved_bits: 31 |
| void * | m_reserved_pointer |
| int | m_vertex_count |
Definition at line 51 of file qsggeometry.h.
| QSGGeometry::QSGGeometry | ( | const QSGGeometry::AttributeSet & | attribs, |
| int | vertexCount, | ||
| int | indexCount = 0, |
||
| int | indexType = GL_UNSIGNED_SHORT |
||
| ) |
Definition at line 80 of file qsggeometry.cpp.
| QSGGeometry::~QSGGeometry | ( | ) |
Definition at line 101 of file qsggeometry.cpp.
| void QSGGeometry::allocate | ( | int | vertexCount, |
| int | indexCount = 0 |
||
| ) |
Definition at line 126 of file qsggeometry.cpp.
Referenced by drawingMode(), QSGGeometry(), and ShaderEffectItem::updateGeometry().
|
inline |
|
inline |
Definition at line 111 of file qsggeometry.h.
Referenced by ShaderEffectItem::bindGeometry(), ShaderEffectItem::renderEffect(), and ShaderEffectItem::updateShaderProgram().
|
static |
Definition at line 68 of file qsggeometry.cpp.
|
static |
Definition at line 47 of file qsggeometry.cpp.
|
static |
Definition at line 57 of file qsggeometry.cpp.
|
inline |
|
inline |
Definition at line 100 of file qsggeometry.h.
Referenced by allocate(), drawingMode(), and ShaderEffectItem::renderEffect().
| void * QSGGeometry::indexData | ( | ) |
Definition at line 107 of file qsggeometry.cpp.
Referenced by indexCount(), indexDataAsUInt(), indexDataAsUShort(), and ShaderEffectItem::renderEffect().
| const void * QSGGeometry::indexData | ( | ) | const |
Definition at line 114 of file qsggeometry.cpp.
|
inline |
|
inline |
Definition at line 146 of file qsggeometry.h.
|
inline |
Definition at line 140 of file qsggeometry.h.
Referenced by indexCount(), and ShaderEffectItem::updateGeometry().
|
inline |
Definition at line 152 of file qsggeometry.h.
|
inline |
| void QSGGeometry::setDrawingMode | ( | GLenum | mode | ) |
Definition at line 121 of file qsggeometry.cpp.
|
inline |
|
static |
Definition at line 154 of file qsggeometry.cpp.
Referenced by stride().
|
static |
Definition at line 170 of file qsggeometry.cpp.
Referenced by stride(), and ShaderEffectItem::updateGeometry().
|
inline |
Definition at line 86 of file qsggeometry.h.
Referenced by allocate(), ShaderEffectItem::renderEffect(), and ShaderEffectItem::updateGeometry().
|
inline |
|
inline |
Definition at line 93 of file qsggeometry.h.
|
inline |
|
inline |
Definition at line 217 of file qsggeometry.h.
|
inline |
|
inline |
Definition at line 194 of file qsggeometry.h.
|
inline |
Definition at line 168 of file qsggeometry.h.
Referenced by ShaderEffectItem::updateGeometry(), updateTexturedRectGeometry(), and vertexData().
|
inline |
Definition at line 204 of file qsggeometry.h.
|
private |
Definition at line 122 of file qsggeometry.h.
Referenced by allocate(), attributeCount(), attributes(), QSGGeometry(), stride(), vertexDataAsColoredPoint2D(), vertexDataAsPoint2D(), and vertexDataAsTexturedPoint2D().
|
private |
Definition at line 123 of file qsggeometry.h.
Referenced by allocate(), indexData(), vertexData(), vertexDataAsColoredPoint2D(), vertexDataAsPoint2D(), vertexDataAsTexturedPoint2D(), and ~QSGGeometry().
|
private |
Definition at line 118 of file qsggeometry.h.
Referenced by drawingMode(), and setDrawingMode().
|
private |
Definition at line 120 of file qsggeometry.h.
Referenced by allocate(), and indexCount().
|
private |
Definition at line 124 of file qsggeometry.h.
Referenced by allocate(), and indexData().
|
private |
Definition at line 121 of file qsggeometry.h.
Referenced by allocate(), indexDataAsUInt(), indexDataAsUShort(), and indexType().
|
private |
Definition at line 128 of file qsggeometry.h.
Referenced by allocate(), and ~QSGGeometry().
|
private |
Definition at line 131 of file qsggeometry.h.
Referenced by allocate().
|
private |
Definition at line 129 of file qsggeometry.h.
|
private |
Definition at line 126 of file qsggeometry.h.
|
private |
Definition at line 119 of file qsggeometry.h.
Referenced by allocate(), and vertexCount().