diff options
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgnode.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgnode.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgnode.h b/src/quick/scenegraph/coreapi/qsgnode.h index 26af56f3d0..3475206945 100644 --- a/src/quick/scenegraph/coreapi/qsgnode.h +++ b/src/quick/scenegraph/coreapi/qsgnode.h @@ -3,7 +3,7 @@ ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** -** This file is part of the QtQml module of the Qt Toolkit. +** This file is part of the QtQuick module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage @@ -62,6 +62,11 @@ class QSGNodePrivate; class QSGBasicGeometryNodePrivate; class QSGGeometryNodePrivate; +namespace QSGBatchRenderer { + class Renderer; + class Updater; +} + class Q_QUICK_EXPORT QSGNode { public: @@ -82,16 +87,19 @@ public: OwnedByParent = 0x0001, UsePreprocess = 0x0002, - // Upper 16 bits reserved for node subclasses + // 0x00ff0000 bits reserved for node subclasses // QSGBasicGeometryNode OwnsGeometry = 0x00010000, OwnsMaterial = 0x00020000, OwnsOpaqueMaterial = 0x00040000 + + // Uppermost 8 bits are reserved for internal use. }; Q_DECLARE_FLAGS(Flags, Flag) enum DirtyStateBit { + DirtySubtreeBlocked = 0x0080, DirtyMatrix = 0x0100, DirtyNodeAdded = 0x0400, DirtyNodeRemoved = 0x0800, @@ -152,6 +160,7 @@ protected: private: friend class QSGRootNode; + friend class QSGBatchRenderer::Renderer; void init(); void destroy(); @@ -165,7 +174,7 @@ private: int m_subtreeRenderableCount; Flags m_nodeFlags; - DirtyState m_dirtyState; + DirtyState m_dirtyState; // Obsolete, remove in Qt 6 protected: friend class QSGNodePrivate; @@ -195,6 +204,8 @@ protected: private: friend class QSGNodeUpdater; + friend class QSGBatchRenderer::Updater; + QSGGeometry *m_geometry; int m_reserved_start_index; |