Esempio n. 1
0
        public virtual void blitFrom(IRenderingEngine re, FBTexture src)
        {
            if (fboId == -1)
            {
                createFBO(re, false);
            }

            // Bind the source and destination FBOs
            re.bindFramebuffer(pspsharp.graphics.RE.IRenderingEngine_Fields.RE_READ_FRAMEBUFFER, src.fboId);
            re.bindFramebuffer(pspsharp.graphics.RE.IRenderingEngine_Fields.RE_DRAW_FRAMEBUFFER, fboId);

            // Copy the source FBO to the destination FBO
            re.blitFramebuffer(0, 0, src.ResizedWidth, src.ResizedHeight, 0, 0, ResizedWidth, ResizedHeight, pspsharp.graphics.RE.IRenderingEngine_Fields.RE_COLOR_BUFFER_BIT, GeCommands.TFLT_NEAREST);

            // Re-bind the source FBO
            re.bindFramebuffer(pspsharp.graphics.RE.IRenderingEngine_Fields.RE_FRAMEBUFFER, src.fboId);
        }
Esempio n. 2
0
 public FBTexture(FBTexture copy) : base(copy.address, copy.bufferWidth, copy.width, copy.height, copy.pixelFormat, copy.useViewportResize)
 {
 }