Add lineWidth property to QSGGeometry
authorAlex Wilson <alex.wilson@nokia.com>
Wed, 14 Dec 2011 06:10:15 +0000 (16:10 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Dec 2011 10:02:55 +0000 (11:02 +0100)
commit4bb5b4f01c1b38fce9f1a11346de5bd4ee3c6fd4
treee95f5ea2bf8cff0a29cef8e59fa8481681f95e46
parentad91ab8b7db93ee13db18b1284542b9853183092
Add lineWidth property to QSGGeometry

Allows users to set a line width when using drawingModes GL_LINES,
GL_LINE_LOOP etc. Only calls glLineWidth on these drawingModes, and
does it just before the glDrawElements/glDrawArrays.

Change-Id: I2af583970b2acf0ddb59025a454caa75a8ddbd4f
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/quick/scenegraph/coreapi/qsggeometry.cpp
src/quick/scenegraph/coreapi/qsggeometry.h
src/quick/scenegraph/coreapi/qsgrenderer.cpp