diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2014-04-28 12:44:29 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-30 16:13:21 +0200 |
commit | e0ebadcf758e5129f378ec48cee7c2d40b019d6a (patch) | |
tree | 4281ee780edd33198e3653f626d7152d7158aaa2 /examples/cpp_example | |
parent | 531c4255401ba4f96d1eb63baf19ae3cd9b57a21 (diff) |
Transform updates synched with QChangeArbiter
Transform monitor changes of each of its AbstractTransform objects.
On a change, it notifies the QChangeArbiter. The QChangeArbiter tells
the associated RenderNode about the change. The RenderNode updates its
localTransform matrix.
Small typo correction appendTransform instead of appendTransfrom.
Change-Id: I8613cda1b3c7b7211722f78585ac75736528f86a
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/cpp_example')
-rw-r--r-- | examples/cpp_example/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cpp_example/main.cpp b/examples/cpp_example/main.cpp index 207ea0a83..923a5ebb8 100644 --- a/examples/cpp_example/main.cpp +++ b/examples/cpp_example/main.cpp @@ -96,8 +96,8 @@ int main(int ac, char **av) torusRotation->setAxis(QVector3D(1, 0, 0)); torusRotation->setAngleDeg(35.0f); - torusTransforms->appendTransfrom(torusTranslation); - torusTransforms->appendTransfrom(torusRotation); + torusTransforms->appendTransform(torusTranslation); + torusTransforms->appendTransform(torusRotation); torusEntity->addComponent(torusTransforms); |