Exemplo n.º 1
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);
 }
Exemplo 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));
        }