Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: samples/o3d-webgl/transform.js

Issue 1745002: Incremental progress toward archive loading in o3d-webgl. Implemented... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/o3d-webgl/texture.js ('k') | samples/third_party/json/json2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/o3d-webgl/transform.js
===================================================================
--- samples/o3d-webgl/transform.js (revision 45126)
+++ samples/o3d-webgl/transform.js (working copy)
@@ -135,11 +135,26 @@
*/
o3d.Transform.prototype.getTransformsInTree =
function() {
+ var result = [];
+ o3d.Transform.getTransformInTreeRecursive_(this, result);
+ return result;
+};
+
+/**
+ * Recursive helper function for getTransformInTree.
+ * @private
+ */
+o3d.Transform.getTransformInTreeRecursive_ =
+ function(treeRoot, children) {
+ children.push(treeRoot);
+ var childrenArray = treeRoot.children;
+ for (var ii = 0; ii < childrenArray.length; ++ii) {
+ o3d.Transform.getTransformInTreeRecursive_(childrenArray[ii], children);
+ }
};
-
/**
* Searches for transforms that match the given name in the hierarchy under and
* including this transform. Since there can be more than one transform with a
@@ -155,10 +170,9 @@
*/
o3d.Transform.prototype.getTransformsByNameInTree =
function(name) {
-
+ o3d.notImplemented();
};
-
/**
* Evaluates and returns the current world matrix.
*
@@ -166,7 +180,7 @@
*/
o3d.Transform.prototype.getUpdatedWorldMatrix =
function() {
-
+ o3d.notImplemented();
};
« no previous file with comments | « samples/o3d-webgl/texture.js ('k') | samples/third_party/json/json2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698