예제 #1
0
 protected override void Dispose(bool disposing)
 {
     if (!disposing)
     {
         return;
     }
     FrequentlyUsedStates.Dispose();
     _rootRenderTarget.Dispose();
 }
예제 #2
0
        internal RenderContext(StageRenderer renderer, Size clientSize)
        {
            Renderer   = renderer;
            ClientSize = clientSize;

            Direct3DDevice       = renderer.Direct3DDevice;
            DxgiDevice           = renderer.DxgiDevice;
            DxgiFactory          = renderer.DxgiFactory;
            SwapChain            = renderer.SwapChain;
            SwapChainDescription = renderer.SwapChainDescription;
            DirectWriteFactory   = renderer.DirectWriteFactory;
            DxgiDeviceManager    = renderer.DxgiDeviceManager;

            FrequentlyUsedStates = new FrequentlyUsedStates(this);

            Initialize();
        }