Exemplo n.º 1
0
 /**
  * Reset the state of the API completely. The object table is cleared, and
  * all search paths areset back to their default values.
  */
 public void reset()
 {
     scene               = new Scene();
     bucketRenderer      = new BucketRenderer();
     progressiveRenderer = new ProgressiveRenderer();
     includeSearchPath   = new SearchPath("include");
     textureSearchPath   = new SearchPath("texture");
     parameterList       = new ParameterList();
     renderObjects       = new RenderObjectMap();
     currentFrame        = 1;
 }
Exemplo n.º 2
0
        public LayerGridBucket(int uid, RectI rect, Layer layer, Type renderer)
        {
            this.uid                 = uid;
            this.rect                = rect;
            this.layer               = layer;
            this.tilables            = new Tilable[this.rect.width * this.rect.height];
            this.titlablesByType     = new Dictionary <TilableType, HashSet <Tilable> >();
            this.tilablesMatrices    = new Dictionary <int, List <Matrix4x4> >();
            this.tilablesMatricesArr = new Dictionary <int, Matrix4x4[]>();
            this.properties          = new BucketProperty();

            if (renderer != null)
            {
                this._staticRenderer = (BucketRenderer)Activator.CreateInstance(renderer, this, this.layer);
            }
        }