예제 #1
0
파일: BSPSample.cs 프로젝트: axiom3d/axiom
        protected override void LoadResources()
        {
            /* NOTE: The browser initializes everything at the beginning already, so we use a 0 init proportion.
             *          If you're not compiling this sample for use with the browser, then leave the init proportion at 0.7. */
            TrayManager.ShowLoadingBar(1, 1, 0);
            // associate the world geometry with the world resource group, and then load the group
            //ResourceGroupManager.Instance.LinkWorldGeometryToResourceGroup( "BSPSAMPLE", "maps/chiropteradm.bsp", SceneManager );
            ResourceGroupManager.Instance.LinkWorldGeometryToResourceGroup("BSPSAMPLE", "maps/chiropteradm.bsp", SceneManager);
            ResourceGroupManager.Instance.InitializeResourceGroup("BSPSAMPLE");
            ResourceGroupManager.Instance.LoadResourceGroup("BSPSAMPLE", false, true);

            TrayManager.HideLoadingBar();
        }