예제 #1
0
        public void Init()
        {
            RedGrassInstance.Init();

            data = new RGDataSource();
            data.Init(evniAsset, dataIO);

            RGPoolSig.Init();

            // Render Part Init
            mTree = new RGLODQuadTree(evniAsset);
        }
예제 #2
0
        /// <summary>
        /// Init Renderer part of Vars and Functions
        /// </summary>
        void Init_Render()
        {
            mRenderCenter = new INTVECTOR2(-10000, -10000);
            mTree         = new RGLODQuadTree(evniAsset);
            mRootNodes    = new Dictionary <int, RGLODQuadTreeNode>();
            mTargetNodes  = new Dictionary <int, RGLODQuadTreeNode>();

            mTailNodes = new Dictionary <int, Dictionary <int, RGLODQuadTreeNode> >();

            int maxlod = evniAsset.MaxLOD;

            mXLodIndex = new int[maxlod + 1];
            mZLodIndex = new int[maxlod + 1];
            mInitIndex = true;

            if (meshCreator != null)
            {
                meshCreator.Init(evniAsset, data);
            }
        }