Ejemplo n.º 1
0
        protected override void OnRenderTargetChange(IRenderTarget oldRenderTarget)
        {
            if (mInFrame)
            {
                throw new AgateException(
                          "Cannot change the current render target inside BeginFrame..EndFrame block!");
            }

            System.Diagnostics.Debug.Assert(mGraphics == null);

            mRenderTarget = RenderTarget.Impl as Drawing_IRenderTarget;

            OnRenderTargetResize();
        }
Ejemplo n.º 2
0
        protected override void OnEndFrame()
        {
            mGraphics.Dispose();
            mGraphics = null;

            while (mClipRects.Count > 0)
            {
                PopClipRect();
            }

            Drawing_IRenderTarget renderTarget = RenderTarget.Impl as Drawing_IRenderTarget;

            renderTarget.EndRender();
        }