summaryrefslogtreecommitdiffstats
path: root/src/render/geometry
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Exclude private header files from the documentation buildTopi Reinio2016-01-254-16/+0
| | | | | | | | | | | | In the documentation configuration, exclude all '_p.h' files from the documentation build. This prevents QDoc from generating documentation for private classes, and also allows removal of documentation that explicitly set the private classes \internal. Change-Id: I8fcf5c99a2a0b75e9ee5dcd928fa4a2b4b8cf34f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Added skeleton docs to geometry classesTomi Korpipää2016-01-2017-12/+1542
| | | | | | | Change-Id: I312b3f1eed1578899319cfc30b9bad143c5c467e Task-number: QTBUG-46037 Reviewed-by: Pasi Keränen <pasi.keranen@theqtcompany.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Fixed some documentation warningsTomi Korpipää2016-01-191-1/+1
| | | | | | | Change-Id: I5055043641a1916dde47ad614d8ab7a5788fd93b Task-number: QTBUG-46037 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> Reviewed-by: Pasi Keränen <pasi.keranen@theqtcompany.com>
* Move all raycasting code as private in Qt3DRenderKevin Ottens2015-12-102-8/+6
| | | | | Change-Id: I871cbc57166493f30ea307305d8664e2f8a8873f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Added parameters to signals and made setters Q_SLOTSTomi Korpipää2015-12-0930-181/+196
| | | | | | Change-Id: Icec2f9f207221e35ffdeeb594bb9b4dc6ef890f1 Task-number: QTBUG-49797 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Move core/io content to render/geometry and ioKevin Ottens2015-12-0219-38/+782
| | | | | Change-Id: I79e0b0d62e07a269ebfce99edff56d30da28494c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Turns out QAbstractFunctor is specific to Qt3DRenderKevin Ottens2015-12-022-4/+4
| | | | | Change-Id: Ida4d78d7ccd3c64eeedd38a3cba40ca099a2ecab Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix the leaking of Bounding VolumesAndy Nichols2015-11-261-0/+2
| | | | | | Change-Id: Ifaf8ff275923120f99a8cb008a7d501b88594f8f Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* GeometryRenderer: add vector of QBoundingVolumesPaul Lemire2015-11-242-0/+23
| | | | | Change-Id: Ie3bf07e641c5600a82bc069cb74782d48167277b Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* GeometryRendererManager: contains vector of instances requiring a triangle ↵Paul Lemire2015-11-242-0/+24
| | | | | | | data reload Change-Id: Ie9da997a8c9a8fc064814fd8310e1e9923fbf6d0 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Added support for partial OBJ mesh loadingMike Krus2015-11-213-5/+31
| | | | | | | | | | | | | | | Added a subMesh string property to the QMesh class. This is passed to the ObjLoader and, if not empty, it will only load the sub meshes at match. The string is assumed to be a regular expression against which sub mesh names are matched. If the string is not a valid regex then a valid one is constructed. Change-Id: Iecc39af8a41429bb924fb1e3e47d8cbdb9ff1086 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Updated CalcBoundingVolumeJob: to compute BV only when neededPaul Lemire2015-11-161-0/+1
| | | | | Change-Id: I864423c8262a7c90fe6cf04b0bcfd5baa1bacef8 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* GeometryRenderer: do not leak geometry build with functorPaul Lemire2015-11-162-2/+4
| | | | | Change-Id: Ib4f2d366da12d7295a3089da9378e8d8e0c53392 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Geometry updated to copy properties from QBoundingVolumeSpecifierPaul Lemire2015-11-162-0/+9
| | | | | | Change-Id: I94e3cadb0ede77336b41f2241198b877b7dd57a7 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Add QBoundingVolumeSpecifier as a grouped property of QGeometryPaul Lemire2015-11-163-1/+41
| | | | | | Change-Id: Ica5d2a35e8e9113ed1c739d81cb1a86750365d24 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* QBoundingVolumeSpecifier addedPaul Lemire2015-11-163-2/+156
| | | | | | Change-Id: Idf19ce106ab400b50cc457d7263e9568eb1ad906 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* QCuboidGeometry: remove QT3D_CLONEABLEPaul Lemire2015-11-121-1/+0
| | | | | Change-Id: Ie5fe9afd5bd70a5166912c4810e30c04ec1c9c9c Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QCylinderGeometry: remove QT3D_CLONEABLEPaul Lemire2015-11-121-1/+0
| | | | | Change-Id: I000a6060f7808a59e2511fc85fb3ed9977ed8012 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QSphereGeometry: remove QT3D_CLONEABLEPaul Lemire2015-11-121-1/+0
| | | | | Change-Id: Ie3a91350fdea27741a6b73475766397c1d1b3675 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QTorusGeometry: remove QT3D_CLONEABLEPaul Lemire2015-11-121-1/+0
| | | | | Change-Id: Iec7650da46b0d7bed98a67b5028beadccd88b0e0 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QPlaneGeometry: remove QT3D_CLONEABLEPaul Lemire2015-11-121-1/+0
| | | | | | | | Otherwise when cloning we are cloning a QPlaneGeometry instead of a QGeometry and adding the implicit attributes... Change-Id: Ia25e56797412ddab97e2f5738213d0bda19af5fe Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Remove some uncessary QOpenGL* includesAndy Nichols2015-11-032-6/+0
| | | | | | | These includes seem to be left over from previous iterations. Change-Id: I58945b72c354bfa8ebbe687d52d3eb146f021f70 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Qt3DRender::QMeshPrivate: Remove unnecessary exportAndy Nichols2015-10-301-2/+1
| | | | | Change-Id: I96327938682da1effefb7f2df05c219b7e720744 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QPlaneGeometry: expose attributes as propertiesPaul Lemire2015-10-242-0/+43
| | | | | Change-Id: Ib8aabd77f07de3bfe4981864d7bb587bb7f29dc0 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QTorusGeometry: expose attributes as propertiesPaul Lemire2015-10-242-0/+35
| | | | | Change-Id: I568e15138147f4f4d35b112ae8585ed28734a84b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QCuboidGeometry: expose attributes as propertiesPaul Lemire2015-10-242-0/+43
| | | | | Change-Id: I48e6100b875905554008ece3233453085522a41e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QCylinderGeometry: expose attributes as propertiesPaul Lemire2015-10-242-0/+34
| | | | | Change-Id: I525b3ce19a5c98c8015c295363e6fe49e99e3409 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QSphereGeometry: expose the attributes as propertiesPaul Lemire2015-10-242-0/+43
| | | | | Change-Id: I80543a1fa2cd48a9d28b043f3e41d734fe83ed4b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Rename Renderer -> Render throughoutSean Harmer2015-10-1944-94/+94
| | | | | | | | This is for consistency between the C++ namespaces and QML imports and with the other aspects. Change-Id: I73392f138b4e519b12888f52530123e3d0ba445e Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add an example showing instancing using VBO with divisor of 1Sean Harmer2015-10-191-1/+1
| | | | | Change-Id: I710df314902ca592c236e2120119718fc3b90c2c Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add missing "We mean it" comments to private headers.Friedemann Kleint2015-10-174-0/+44
| | | | | Change-Id: If88c0da6b722ae41f62a858356f917cfd9b7d1e9 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Use floats for plane geometry sizeSean Harmer2015-10-152-6/+6
| | | | | | Task-number: QTBUG-48790 Change-Id: I2fdbf96b3667e3d3a78a57cddf14a06e5ff7cac3 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QPlaneGeometry refactored into a public classPaul Lemire2015-10-155-325/+556
| | | | | Change-Id: I16e2a3a70f7f70c6ad42034a4d57bf2b6031400c Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QCuboidGeometry refactored into a public classPaul Lemire2015-10-155-595/+849
| | | | | Change-Id: I25e1647ecf45e2d4e5133b9c1f080e11605cc1ba Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QSphereGeometry registered to QMLPaul Lemire2015-10-141-2/+2
| | | | | Change-Id: I61751094b522dcdaadd19c15052a9783c4d65921 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QSphereGeometry refactored into a public classPaul Lemire2015-10-145-365/+605
| | | | | Change-Id: I546ec48312aa9c966d79a50529dd70d8b5430cab Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* RenderGeometryRenderer: monitor the enabled propertyPaul Lemire2015-10-142-0/+7
| | | | | | | | Unit tests updated accordingly Change-Id: I74c9e2926ac4c648ea35347762aa3fd0c5842146 Task-number: QTBUG-48630 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* QTorusGeometry refactored into a public classPaul Lemire2015-10-145-311/+550
| | | | | Change-Id: Icc93f078c54367d79f2e155a03eb87b19d373666 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* QAbstractAttribute: remove NodeAdded/Remove notification on bufferPaul Lemire2015-10-141-14/+1
| | | | | | | | Just set the parent for inline definition and use the emit bufferChanged to have automatic notification changes sent. Change-Id: I74f37caa2487259f3ab1e1359741d7339d706f89 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Resurrect bounding volumesLaszlo Agocs2015-10-141-1/+1
| | | | | | | | | | | | | | For BackToFront sorting to work we need to calculate a depth value based on the entity's bounding spheres. This is currently missing as there is no AABB from which the RenderEntity's localBoundingVolume could be calculated. Bring it back. RenderEntity contains two world bounding volumes from now on: just having one that includes the children is not ideal because in some cases we want to know the entitys own bounding volume not including the children. This is the case when building render commands for example. Change-Id: I20f5bccdc3f868bcbd5faa3164f0e9995a3171ec Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* RenderBuffer: handle the sync propertyPaul Lemire2015-10-144-1/+28
| | | | | | | | | And update the frontend QBuffer with the data obtained from the functor if sync is true. Change-Id: I86e4dff50fedf3fbc6057843a8a60c978d68b047 Task-number: QTBUG-48454 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* QBuffer: add a sync propertyPaul Lemire2015-10-143-1/+36
| | | | | | | | When true, data loaded through a functor will also be updated to the frontend. Change-Id: I2980e00a927ed5f787e217a20e2c42d8c5ea0e81 Task-number: QTBUG-48454 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* QAttribute: default name methode made invokablePaul Lemire2015-10-141-5/+5
| | | | | Change-Id: I7419c008605c53b60222fdd111ade8c84ef30653 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Move Qt3DCore into Qt3DCore namespaceSean Harmer2015-10-1333-116/+116
| | | | | | | Update other aspects, tests and examples accordingly. Change-Id: Ib1bcf0bdf4f5aec4422dc0c80bfc32b27fb1a317 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add "We mean it" warnings to private headersSean Harmer2015-10-1312-0/+132
| | | | | Change-Id: Ic4a69123255c33990765ea3601e01914c2d8cb70 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Final batch of file moves for nowSean Harmer2015-10-139-1/+871
| | | | | Change-Id: I0c9e83e3142e6b083feb2cbcabcc4279de64b95b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Move geometry related classes to their own directorySean Harmer2015-10-1335-0/+5572
Change-Id: I74fdfceeeca4801c51fba3586404d5b5dab771b4 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>