diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2015-01-23 16:22:00 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-08-07 00:11:31 +0000 |
commit | c2f6f37699296557c5d79ae750e0ce91647de2ee (patch) | |
tree | 6c140186656c46d5e8584d48772f70e78d04806c /src/quick3d/imports/core | |
parent | ce69c98f6954ef2c8806bc44a457a58e4202d751 (diff) |
New Buffer API Frontend Classes
- Switch QAbstractAttribute and QAbstractBuffer to QNode subclasses
- Get rid of all shared pointer when dealing with these (needed to expose to
QML and use the QObject ownership)
- Introduce QGeometryRender, QGeometry, QAttributeProvider,
QAttributeAggregator.
A QMesh component now is:
a QGeometryRenderer which specifies its QGeometry.
The QGeometry refererences n attributes. Each attribute references a QAbstractBuffer.
Change-Id: I49a10c11a605e5fe7c180af86a404f622e763f48
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/quick3d/imports/core')
-rw-r--r-- | src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp b/src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp index 23ef7cb92..9cfcab31c 100644 --- a/src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp +++ b/src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp @@ -43,6 +43,7 @@ #include <Qt3DCore/qmatrixtransform.h> #include <Qt3DCore/qtranslatetransform.h> #include <Qt3DCore/qrotatetransform.h> +#include <Qt3DCore/qabstractattribute.h> #include <Qt3DQuick/quick3dentity.h> #include <Qt3DQuick/quick3dentityloader.h> #include <Qt3DQuick/quick3dtransform.h> @@ -75,6 +76,8 @@ void Qt3DQuick3DCorePlugin::registerTypes(const char *uri) qmlRegisterType<Qt3D::QRotateTransform>(uri, 2, 0, "Rotate"); qmlRegisterType<Qt3D::QLookAtTransform>(uri, 2, 0, "LookAt"); qmlRegisterType<Qt3D::QScaleTransform>(uri, 2, 0, "Scale"); + + qmlRegisterUncreatableType<Qt3D::QAbstractAttribute>(uri, 2, 0, "AbstractAttribute", QStringLiteral("QAbstractAttribute is abstract")); } QT_END_NAMESPACE |