Esempio n. 1
0
        private void ThreadLoad(ResourceHandle handle, ResType res, Intermediate data)
        {
            handle.inactive.resource = doLoad(res, data);
            handle.inactive.state    = ResourceState.Ready;

            handle.Swap();
        }
 public void Load(ResourceHandle handle)
 {
     try {
         handle.inactive.resource = doLoad(handle.Name);
         handle.inactive.state    = ResourceState.Ready;
         handle.Swap();
     }
     finally {
         handle.Finished();
     }
 }