/// <summary> /// End batching sprites. /// </summary> public void End() { // Throw if the sprite batch is inactive if (!active) { this.Throw("Cannot end an inactive sprite batch."); } // Flush the sprites Flush(); framebuffer.Unbind(); Game.Viewport.DrawTexture(framebuffer.BufferTextures[FboAttachment.DiffuseAttachment]); // Mark the sprite batch as inactive active = false; }
public void Unbind() { Framebuffer.Unbind(this); }