summaryrefslogtreecommitdiffstats
path: root/src/render/geometry/qspheregeometry_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire350@gmail.com>2015-08-30 18:30:51 +0200
committerPaul Lemire <paul.lemire@kdab.com>2015-10-14 21:47:11 +0000
commite8557e086eb476df77fc05b31dd2de3ac5bfd1be (patch)
tree625beaa5aa1823c34443cbe44cca5eeea5cb996e /src/render/geometry/qspheregeometry_p.h
parent7758f05f986c514998d7814fa8241b537a3dcab4 (diff)
QSphereGeometry refactored into a public class
Change-Id: I546ec48312aa9c966d79a50529dd70d8b5430cab Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/geometry/qspheregeometry_p.h')
-rw-r--r--src/render/geometry/qspheregeometry_p.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/render/geometry/qspheregeometry_p.h b/src/render/geometry/qspheregeometry_p.h
new file mode 100644
index 000000000..5696ec216
--- /dev/null
+++ b/src/render/geometry/qspheregeometry_p.h
@@ -0,0 +1,75 @@
+/****************************************************************************
+**
+** Copyright (C) 2015 Paul Lemire
+** Contact: paul.lemire350@gmail.com
+**
+** This file is part of the Qt3D module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL3$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see http://www.qt.io/terms-conditions. For further
+** information use the contact form at http://www.qt.io/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 3 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPLv3 included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 3 requirements
+** will be met: https://www.gnu.org/licenses/lgpl.html.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 2.0 or later as published by the Free
+** Software Foundation and appearing in the file LICENSE.GPL included in
+** the packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 2.0 requirements will be
+** met: http://www.gnu.org/licenses/gpl-2.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QT3DRENDER_QSPHEREGEOMETRY_P_H
+#define QT3DRENDER_QSPHEREGEOMETRY_P_H
+
+#include <Qt3DRenderer/private/qgeometry_p.h>
+
+QT_BEGIN_NAMESPACE
+
+namespace Qt3DRender {
+
+class QAttribute;
+class QBuffer;
+
+class QSphereGeometryPrivate : public QGeometryPrivate
+{
+public:
+ QSphereGeometryPrivate();
+ void init();
+
+ bool m_generateTangents;
+ int m_rings;
+ int m_slices;
+ float m_radius;
+ QAttribute *m_positionAttribute;
+ QAttribute *m_normalAttribute;
+ QAttribute *m_texCoordAttribute;
+ QAttribute *m_tangentAttribute;
+ QAttribute *m_indexAttribute;
+ QBuffer *m_vertexBuffer;
+ QBuffer *m_indexBuffer;
+
+ Q_DECLARE_PUBLIC(QSphereGeometry);
+};
+
+} // Qt3DRender
+
+QT_END_NAMESPACE
+
+#endif // QT3DRENDER_QSPHEREGEOMETRY_P_H
+