summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove initialize/shutdown from APIv5.6.0-beta1Kevin Ottens2015-12-141-1/+0
| | | | | | | | Hiding them in QAspectEnginePrivate and calling them when needed from setRootEntity. Change-Id: I4c3dfb19d84ae90cc15bbff29a4abd0705bb61dc Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Turn all services private for nowKevin Ottens2015-12-122-4/+4
| | | | | Change-Id: I9da605c77c5489b9bef4f07079e05f8babb9559f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QTransform: Add convenience properties for Euler angle rotationsAndy Nichols2015-12-111-1/+20
| | | | | | | | | | | | | | | | Since refactoring the QTransform API to enable matrix decomposition, it has become more inconvenient to apply rotation transforms through the QML API. This is due to the need to set QQuaternion values for the rotation property, which makes using the Qt Quick animation framework difficult. To remedy this, there are now some additional properties added to Qt3DCore::QTransform which enable direct usage of Euler angles instead of just QQuaternion. Internally the rotation property is still used by translating the Euler angle transforms to a QQuaternion. Change-Id: Iad48542a7b125f7615f7a69516fb10a973d8395b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Move all raycasting code as private in Qt3DRenderKevin Ottens2015-12-104-8/+7
| | | | | Change-Id: I871cbc57166493f30ea307305d8664e2f8a8873f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Make QFrameAllocator privateKevin Ottens2015-12-084-3/+4
| | | | | Change-Id: Id69a161da691322184d8ec5ed7a1b375cf2038ed Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Indicate light typeLaszlo Agocs2015-12-071-0/+6
| | | | | | | | | | | | Having a dedicated type field is required not just to make the shaders cleaner but also to avoid incorrect results when lights get moved around in the scene. Currently the shaders rely on the direction uniform to distinguish directional lights from the others, but this cannot work when the elements in the lights uniform array change, potentially leaving type-specific members like direction set when a point light takes the same index. Change-Id: I170e4b471c8cd9b4a23eca49690239c01944b3e6 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAxisInput/QActionInput: use list of int rather than int maskPaul Lemire2015-12-043-15/+29
| | | | | | | Needed to allow devices like keyboards which have more than 64 keys Change-Id: Ia837285ba9c5b7c26d3d89046d7d9f7a4cddb2ba Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAbstractPhysicalDevice: Remove axis/buttons methodsPaul Lemire2015-12-041-2/+0
| | | | | | | They do not need to be on the frontend node Change-Id: I16cd5ad9a2d556916a3d8f4e6856eddf00fb7d3e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Make QNodeVisitor privateKevin Ottens2015-12-032-2/+2
| | | | | Change-Id: Ie36f6f170b5b627d0ed371bcd1a8dc292e7226b3 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Move core/io content to render/geometry and ioKevin Ottens2015-12-022-11/+11
| | | | | Change-Id: I79e0b0d62e07a269ebfce99edff56d30da28494c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add autotest for lightsLaszlo Agocs2015-12-023-0/+266
| | | | | Change-Id: Id8639d437bd55de15dc924af49930c12a3489cea Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add command support on aspects and QAspectEngineKevin Ottens2015-12-021-20/+103
| | | | | | Change-Id: I5c3847a2779b691a2748083fb768b37d1f629274 Task-Id: QTBUG-49683 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add missing test for QAspectEngine::registerAspectKevin Ottens2015-12-021-0/+42
| | | | | | Change-Id: Id41bd1acd5e9b1d272b13ec6e53cc34080df51fe Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Move definition of tests in the classKevin Ottens2015-12-021-49/+45
| | | | | | | | It will make this test suite just easier to update. Change-Id: I1d6df0f4bb7b0e36f1471c9ca29a2246d0795ffa Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Unit tests for AxisInputPaul Lemire2015-12-019-65/+272
| | | | | Change-Id: Ib639eec6cfaa3839f43e09e9dd3ad31f0524e700 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Unit tests for ActionPaul Lemire2015-12-013-1/+167
| | | | | Change-Id: I463d0b469aa78e42c2671b6d3798546328898786 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Unit tests for AxisPaul Lemire2015-12-013-1/+167
| | | | | Change-Id: I58b95eea52d8e4cfe2d072eb51abfd29c07e11b5 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Unit tests for QLogicalDevicePaul Lemire2015-12-013-1/+196
| | | | | Change-Id: I49b22190422f32ead46f794fb785f7fbbb7531f8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Unit tests for QActionInputPaul Lemire2015-12-013-1/+190
| | | | | Change-Id: I6c7388352fd615d1a596b406dff63d783dbb14c3 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Unit tests for QAxisInputPaul Lemire2015-12-013-1/+206
| | | | | Change-Id: I9f56464d9e4cb6bc6f96528f7838c0cc1743f79b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Unit tests for QActionPaul Lemire2015-12-013-1/+176
| | | | | Change-Id: Ib72f56c57ef6e7ff1c9996c141a813c6e10b7ba6 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Unit tests for QAxisPaul Lemire2015-12-014-1/+182
| | | | | Change-Id: I7090ff89feaf0cf93f901a38827f00a331ccee9b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAspectFactory can now also give registered name of an aspectKevin Ottens2015-12-011-0/+14
| | | | | Change-Id: I8f89eefb06e20943f7abb82d461b5e90fd9799f9 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Remove unused code from QAspectFactoryKevin Ottens2015-12-011-21/+0
| | | | | Change-Id: I1639a3ee2e4aac177f1c7cf4252a1c65db7cf721 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Make QAspectFactory privateKevin Ottens2015-12-012-2/+2
| | | | | Change-Id: I1301887b4572310eebc3086699447ff574e1345b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Unit tests for QTransformPaul Lemire2015-11-253-1/+205
| | | | | Change-Id: Iefe3f3afb8281a2eb994bfc8b63ca81500f66934 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QRenderAspect/Renderer: refactored to use the AbstractRenderer interfacePaul Lemire2015-11-241-6/+7
| | | | | Change-Id: I662577e6dd337b1f056f73b4a11262e902d4dde2 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Restore mouse picking testsPaul Lemire2015-11-241-1/+0
| | | | | Change-Id: Iccc02982a165f8aa54cd68e4293f1b244802b5ae Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Add unit tests for triangleboundingvolumePaul Lemire2015-11-243-1/+236
| | | | | Change-Id: I05f3450bbb037c2d8b9bf45a3d6eb66d1db846bd Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* QRayCastingService improvementsPaul Lemire2015-11-241-14/+26
| | | | | Change-Id: Id8072015f153bebf3e44b9d0a6ad9e2e9254aa83 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Unit tests for TriangleExtractorPaul Lemire2015-11-243-1/+414
| | | | | Change-Id: Iab3c5690a18edc652f314b6bf758eea7f73a1c50 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* jobs benchmarksPaul Lemire2015-11-244-1/+400
| | | | | Change-Id: I0585281d2ba3e109b8ab8e45762e5101f7ea2163 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Remove aspect enumsMike Krus2015-11-212-2/+2
| | | | | | Change-Id: I5cd1c2ddb54d32a7d650e2a44f48d9f67f9821a2 Task-Id: QTBUG-49001 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Remove transforms property of QTransformSean Harmer2015-11-172-10/+6
| | | | | | | | Compound transformations are now built up using QMatrix4x4 in both QML and C++. Updating examples accordingly. Change-Id: I03c9abf1f6cdd1b56226dc0e16a7ad5ce84516dd Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Setting matrix property to decompose to S, R, TSean Harmer2015-11-171-0/+1
| | | | | | | | | | | | | | | | | | | Updating the matrix property now decomposes the matrix to calculate the scale, rotation and translation properties that get sent to the backend. The test example will be updated to show how to build a matrix from a series of "sub transformations" in an imperative way. This will reinforce in the API the fact that we can't decompose an affine transform into an arbitrary set of sub transforms. That is the API will emphasise the one way nature. The decomposition functions were provided by Konstantin Ritt. Note: mouse picking unit tests skipped for now Change-Id: Ibc259dacac7a3dc32f4b03b375607291d998601c Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Updated Entity unit testsPaul Lemire2015-11-161-0/+3
| | | | | Change-Id: I27866c85f3ad221e750dab4810dd4f5b8a7d0155 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Unit tests for default meshesPaul Lemire2015-11-163-1/+163
| | | | | Change-Id: Id936d44b08cbda400fd63448ff21d733551a2bf4 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Entity unit tests updatedPaul Lemire2015-11-161-1/+10
| | | | | | Change-Id: I3f3ecc220d5a6ae57e40bb8a3db8cd71f84aa5a9 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Unit tests for BoundingVolumeDebugPaul Lemire2015-11-163-1/+169
| | | | | | Change-Id: Id035a38092da0d12f01fc94d662c1492c4f7ccd9 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Unit Tests for QBoundingVolumeDebugPaul Lemire2015-11-163-1/+195
| | | | | | Change-Id: I1c6de6bb78f1c8952e03f260ee3132f77d55bcdb Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Remove anything related to pick attribute in QObjectPickerPaul Lemire2015-11-163-52/+1
| | | | | | Change-Id: I5a25c97841854bd231af0600ecfe08ff4c056de1 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Unit tests for Geometry updatedPaul Lemire2015-11-161-0/+17
| | | | | | Change-Id: Iac97033ac00bdea74c724f96b9596f7ff436ebb3 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Update test for QGeometry with a QBoundingVolumeSpecifierPaul Lemire2015-11-161-2/+20
| | | | | | Change-Id: Iff43fe206cb262da5f1aca2700c0577ce1502995 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Fix qray3d testLaszlo Agocs2015-11-121-4/+4
| | | | | | | | | Use fuzzy compare in the transform test. On some machines we get floats with a very small difference, resulting in false with == but true with fuzzy compare. Change-Id: I541e648b5a86dd0b407f7ba4ecd277ecf0086392 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* d-pointer classes, private/public changesTomi Korpipää2015-10-308-9/+9
| | | | | | Change-Id: I4ca133aebad0c088296ab293f95f0a6d76d18395 Task-number: QTBUG-39946 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Shadow version of benchmarking appMika Salmela2015-10-2915-31/+668
| | | | | | | | Added shadows to benchmarking test application to test two pass rendering performance. Change-Id: I81bb6e9fea32ab70d6c5c65a9ba787d976e2eaa0 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QObjectPicker: Use namespaced names in Q_SIGNALS declerationsAndy Nichols2015-10-261-3/+3
| | | | | Change-Id: I7f9e742ceaedbd68d622d5dec2a5320608cb0b1e Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add Picking unit testsPaul Lemire2015-10-243-1/+291
| | | | | Change-Id: Ide5ea4fe6321e02c0066cdd57488d2a6713f0dc6 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Sphere moved into Render namespace and made privatePaul Lemire2015-10-241-3/+2
| | | | | Change-Id: I940a8ea898a338f20bb9abbebcc1fcef9830a118 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Added new raycasting testsPaul Lemire2015-10-241-27/+102
| | | | | Change-Id: I1f0444d5c8007ab9705370877ed2eadf8f275017 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>