Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
 public void Unbind()
 {
     Framebuffer.Unbind(this);
 }