diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-09-05 07:50:58 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-09-07 09:00:27 +0200 |
commit | e5a93d6ea1c9eb9982e98a6a5b1f52719fe446e6 (patch) | |
tree | f7692ce697142ce10a6ebf088aa7bf1e4277a012 /src/declarative/items | |
parent | f696ddad0eaab53104f2f2ed85979ecd2c1a9259 (diff) |
Added QSGGeometry::Attribute::isPosition to give a hint about vertex data
Also added a QSGGeomtry::sizeOfIndex() function for convenience
Change-Id: If1f13afd4c1c5295dcfb00254144ef6b8b8b7878
Reviewed-on: http://codereview.qt.nokia.com/4307
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/declarative/items')
-rw-r--r-- | src/declarative/items/qsgspriteimage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/items/qsgspriteimage.cpp b/src/declarative/items/qsgspriteimage.cpp index afa80e4aa1..9a43b710a5 100644 --- a/src/declarative/items/qsgspriteimage.cpp +++ b/src/declarative/items/qsgspriteimage.cpp @@ -225,8 +225,8 @@ void QSGSpriteImage::createEngine() } static QSGGeometry::Attribute SpriteImage_Attributes[] = { - { 0, 2, GL_FLOAT }, // tex - { 1, 4, GL_FLOAT } // animData + QSGGeometry::Attribute::create(0, 2, GL_FLOAT), // tex + QSGGeometry::Attribute::create(1, 4, GL_FLOAT) // animData }; static QSGGeometry::AttributeSet SpriteImage_AttributeSet = |