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); }
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); }