コード例 #1
0
        public void Dispose()
        {
            if (instance == this)

            {

                levelIndex.Clear();

                cache.Clear();

                instance = null;

            }
        }
コード例 #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        private RenderableManager()
        {
            numRenderables = 0;

            indexes = new IndexBuffer();

            renderables = new ArrayList();
            queue = new RenderableQueue();

            renderablesLoadQueue = new RenderableQueue();
            tilesLoadQueue = new TileQueue();

            // Add the requested initial number
            addBatch(Options.Instance.Num_Renderables);
        }
コード例 #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public IndexBuffer()
        {
            if (instance != null)

            {

                throw new ApplicationException("IndexBuffer.Constructor() called twice!");

            }

            instance = this;

            tileSize = Options.Instance.TileSize + 1;
            numIndexes = Options.Instance.MaxRenderLevel + 1;
            //mLevelIndex.reserve (mNumIndexes);
            cache = new ArrayList();
            levelIndex = new ArrayList((int)numIndexes);
            for ( long i = 0; i < numIndexes; i++ )
            {
                levelIndex.Add( new Map() );
            }
        }
コード例 #4
0
        public void Dispose()
        {
            if (instance == this)

            {

                renderables.Clear();

                indexes = null;

                instance = null;

            }
        }