Пример #1
0
        public void SetRenderTarget(RenderTarget renderTarget)
        {
            if (renderTarget == null)
            {
                throw new global::System.ArgumentNullException("renderTarget");
            }

            global::Uno.Recti full = new global::Uno.Recti(new global::Uno.Int2(0), renderTarget.Size);
            this.SetRenderTarget(renderTarget, full, full);
        }
Пример #2
0
        public void SetRenderTarget(RenderTarget renderTarget, global::Uno.Recti viewport, global::Uno.Recti scissor)
        {
            if (renderTarget == null)
            {
                throw new global::System.ArgumentNullException("renderTarget");
            }

            this._renderTarget = renderTarget;
            global::OpenGL.GL.BindFramebuffer(global::OpenGL.GLFramebufferTarget.Framebuffer, this._renderTarget.GLFramebufferHandle);
            this.Viewport = viewport;
            this.Scissor  = scissor;
        }