1 goog.provide('FlappDisplay');
3 goog.scope(function () {
8 FlappDisplay = function() {
12 FlappDisplay.prototype = {
13 set: function(depth, obj, place) {
14 this.objs[depth] = obj;
15 obj.matrix = place.matrix;
16 obj.colorTransform = place.colorTransform;
17 obj.clipDepth = place.clipDepth;
18 console.log('this.objs');
19 console.log(this.objs);
21 move: function(depth, place)
23 var obj = this.objs[depth];
25 obj.matrix = place.matrix;
27 if (place.colorTransform) {
28 obj.colorTransform = place.colorTransform;
31 get: function(depth) {
32 // console.debug("get: depth:"+depth);
33 // console.debug(this.objs);
34 return this.objs[depth];
36 del: function(depth) {
37 this.objs[depth].destroy();
38 delete this.objs[depth];
40 descSortedDepth: function() {
41 var keys = Object.keys(this.objs);
43 function(a,b) { return (a>b)?-1:((a<b)?1:0); }