Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LodGroupNode"/> class.
        /// </summary>
        /// <param name="capacity">The initial capacity of the LOD collection.</param>
        public LodGroupNode(int capacity)
        {
            // The actual value of the following flags does not matter. The LodGroupNodes
            // need be handled explicitly in scene queries!
            IsRenderable = true;
            CastsShadows = true;

            Levels = new LodCollection(this, capacity);
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LodCollection.Enumerator"/> struct.
 /// </summary>
 /// <param name="collection">The <see cref="LodCollection"/> to be enumerated.</param>
 internal Enumerator(LodCollection collection)
 {
     _collection = collection;
     _index      = 0;
     _current    = new LodEntry();
 }