public ResourceHandle<TerrainTexture> CreateInstance(RenderSystem rs, FileLocation rl)
 {
     Resource retrived = base.Exists(rl.Name);
     if (retrived == null)
     {
         TerrainTexture mdl = new TerrainTexture(rs, rl);
         retrived = mdl;
         base.NotifyResourceNew(mdl);
     }
     
     //else
     //{
     //    retrived.Use();
     //}
     return new ResourceHandle<TerrainTexture>((TerrainTexture)retrived);
 }
Esempio n. 2
0
        public ResourceHandle <TerrainTexture> CreateInstance(RenderSystem rs, FileLocation rl)
        {
            Resource retrived = base.Exists(rl.Name);

            if (retrived == null)
            {
                TerrainTexture mdl = new TerrainTexture(rs, rl);
                retrived = mdl;
                base.NotifyResourceNew(mdl);
            }

            //else
            //{
            //    retrived.Use();
            //}
            return(new ResourceHandle <TerrainTexture>((TerrainTexture)retrived));
        }