示例#1
0
            internal bool CreateHandle(out GraphicsHandle.Texture Handle)
            {
                bool ret = false;

                lock (this) if (this.Handle.Alive == GraphicsHandle.Null)
                    {
                        this.Handle.Gen(); this.Handle.Tag = this; ret = true;
                    }
                Handle = this.Handle;
                return(ret);
            }
示例#2
0
 internal static void UpdateHandle(
     TextureFormats.Raw bitmap,
     ref GraphicsHandle.Texture handle)
 {
     /*
      * using (var bmp = bitmap.ToBitmap())
      *      if (null == (object)bmp)
      *      {
      *              handle.Delete();
      *      }
      *      else*/
     LoadTextureHandle(/*bmp*/ bitmap, handle);
 }