diff options
author | Mike Krus <mike.krus@kdab.com> | 2020-01-22 21:35:32 +0000 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2020-02-27 06:29:57 +0000 |
commit | 17706144e9dc6c2dfde580b7821f18c5f6924682 (patch) | |
tree | 5f77929db358607fe63a1d438b7a746a6966cbfb /src/render/backend/buffervisitor_p.h | |
parent | 7f625e93620b313466d0223e911c0c3a5b492617 (diff) |
Geometry refactoring
Move QBuffer, QAttribute, QGeometry to Qt3DCore.
Change-Id: I59dfd091eefadcada93350b3aba955f40b304385
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/backend/buffervisitor_p.h')
-rw-r--r-- | src/render/backend/buffervisitor_p.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/render/backend/buffervisitor_p.h b/src/render/backend/buffervisitor_p.h index f3863f0a3..6d916208b 100644 --- a/src/render/backend/buffervisitor_p.h +++ b/src/render/backend/buffervisitor_p.h @@ -52,7 +52,7 @@ // #include <Qt3DCore/qnodeid.h> -#include <Qt3DRender/QAttribute> +#include <Qt3DCore/qattribute.h> #include <Qt3DRender/private/trianglesvisitor_p.h> #include <Qt3DRender/private/attribute_p.h> #include <Qt3DRender/private/buffer_p.h> @@ -72,7 +72,7 @@ namespace Qt3DRender { namespace Render { -template <typename ValueType, QAttribute::VertexBaseType VertexBaseType, uint dataSize> +template <typename ValueType, Qt3DCore::QAttribute::VertexBaseType VertexBaseType, uint dataSize> class Q_AUTOTEST_EXPORT BufferVisitor { public: @@ -137,20 +137,20 @@ public: if (indexAttribute) { auto indexData = m_manager->lookupResource<Buffer, BufferManager>(indexAttribute->bufferId())->data(); switch (indexAttribute->vertexBaseType()) { - case QAttribute::UnsignedShort: { - auto indexBuffer = BufferTypeInfo::castToType<QAttribute::UnsignedShort>(indexData, indexAttribute->byteOffset()); + case Qt3DCore::QAttribute::UnsignedShort: { + auto indexBuffer = BufferTypeInfo::castToType<Qt3DCore::QAttribute::UnsignedShort>(indexData, indexAttribute->byteOffset()); traverseCoordinateIndexed(vertexBuffer, indexBuffer, attribute->byteStride(), drawVertexCount, primitiveRestartEnabled, primitiveRestartIndex); break; } - case QAttribute::UnsignedInt: { - auto indexBuffer = BufferTypeInfo::castToType<QAttribute::UnsignedInt>(indexData, indexAttribute->byteOffset()); + case Qt3DCore::QAttribute::UnsignedInt: { + auto indexBuffer = BufferTypeInfo::castToType<Qt3DCore::QAttribute::UnsignedInt>(indexData, indexAttribute->byteOffset()); traverseCoordinateIndexed(vertexBuffer, indexBuffer, attribute->byteStride(), drawVertexCount, primitiveRestartEnabled, primitiveRestartIndex); break; } - case QAttribute::UnsignedByte: { - auto indexBuffer = BufferTypeInfo::castToType<QAttribute::UnsignedByte>(indexData, indexAttribute->byteOffset()); + case Qt3DCore::QAttribute::UnsignedByte: { + auto indexBuffer = BufferTypeInfo::castToType<Qt3DCore::QAttribute::UnsignedByte>(indexData, indexAttribute->byteOffset()); traverseCoordinateIndexed(vertexBuffer, indexBuffer, attribute->byteStride(), drawVertexCount, primitiveRestartEnabled, primitiveRestartIndex); break; @@ -292,7 +292,7 @@ protected: NodeManagers *m_manager; }; -typedef BufferVisitor<float, QAttribute::Float, 3> Buffer3fVisitor; +typedef BufferVisitor<float, Qt3DCore::QAttribute::Float, 3> Buffer3fVisitor; } // namespace Render |