From 026e7bc249d04fe12c5918f5ab5ec398564fb3f7 Mon Sep 17 00:00:00 2001 From: samcake Date: Wed, 5 Apr 2017 14:17:26 -0700 Subject: [PATCH] Add a description of the Transaction class --- libraries/render/src/render/Scene.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libraries/render/src/render/Scene.h b/libraries/render/src/render/Scene.h index dcbd87b74a..cca72bb3c6 100644 --- a/libraries/render/src/render/Scene.h +++ b/libraries/render/src/render/Scene.h @@ -19,6 +19,15 @@ namespace render { class Engine; +// Transaction is the mechanism to make any change to the scene. +// Whenever a new item need to be reset, +// or when an item changes its position or its size +// or when an item's payload has to be be updated with new states (coming from outside the scene knowledge) +// or when an item is destroyed +// These changes must be expressed through the corresponding command from the Transaction +// THe Transaction is then queued on the Scene so all the pending transactions can be consolidated and processed at the time +// of updating the scene before it s rendered. +// class Transaction { public: Transaction() {}