diff options
author | Alex Wilson <alex.wilson@nokia.com> | 2011-12-14 16:10:15 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-15 11:02:55 +0100 |
commit | 4bb5b4f01c1b38fce9f1a11346de5bd4ee3c6fd4 (patch) | |
tree | e95f5ea2bf8cff0a29cef8e59fa8481681f95e46 /src/quick/scenegraph/coreapi/qsggeometry.h | |
parent | ad91ab8b7db93ee13db18b1284542b9853183092 (diff) |
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>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsggeometry.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsggeometry.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsggeometry.h b/src/quick/scenegraph/coreapi/qsggeometry.h index aea6f0b94b..85f48814ed 100644 --- a/src/quick/scenegraph/coreapi/qsggeometry.h +++ b/src/quick/scenegraph/coreapi/qsggeometry.h @@ -160,6 +160,9 @@ public: void markIndexDataDirty(); void markVertexDataDirty(); + float lineWidth() const; + void setLineWidth(float w); + private: friend class QSGGeometryData; @@ -181,6 +184,8 @@ private: uint m_reserved_bits : 27; float m_prealloc[16]; + + float m_line_width; }; inline uint *QSGGeometry::indexDataAsUInt() |