1 goog.provide('FlappDisplay');
3 goog.scope(function () {
8 FlappDisplay = function() {
13 FlappDisplay.prototype = {
14 set: function(depth, obj, place) {
16 this.objs[depth] = obj;
18 obj.matrix = place.matrix;
20 if (place.colorTransform) {
21 obj.colorTransform = place.colorTransform;
24 this.places[depth] = place;
26 getObj: function(depth) {
27 return this.objs[depth];
29 getPlace: function(depth) {
30 return this.places[depth];
32 del: function(depth) {
33 delete this.objs[depth];
34 delete this.places[depth];
36 descSortedDepth: function() {
37 var depthList = new Array(this.objs.length);
38 var keys = Object.keys(this.objs);
40 function(a,b) { return (a>b)?-1:((a<b)?1:0); }