Пример #1
0
 public void Unload()
 {
     if (BitmapTarget != null)
     {
         BitmapTarget.Dispose();
     }
 }
Пример #2
0
        public override void Initialize()
        {
            var settings = services.GetService <IDirectXDeviceSettings>();

            BitmapTarget = ToDispose(BitmapTarget.New(Name, Device, settings.PreferredBackBufferWidth, settings.PreferredBackBufferHeight, settings.PreferredBackBufferFormat));

            Initialize(BitmapTarget);
        }
Пример #3
0
 public override void Initialize()
 {
     try
     {
         var swapChainService = Services.GetService <ISwapChainPresenterService>();
         BitmapTarget = ToDispose(BitmapTarget.New("BT_Backbuffer", Device, swapChainService.SwapChain.GetBackBuffer <Surface2>(0)));
         Initialize(BitmapTarget);
     }
     catch (ArgumentException e)
     {
         LogEvent.Engine.Warning("A SwapChain is required");
         LogEvent.Engine.Error(e);
     }
 }