Exemple #1
0
        protected FrameBuffer(int width, int height, FramebufferAttachment framebufferAttachment, TextureOptions options)
        {
            GLFramebuffer = new GLFramebuffer();
            GLTexture     = new GLTexture2D(width, height, options: options);

            GLFramebuffer.Bind();
            GLFramebuffer.SetTexture(GLTexture, framebufferAttachment);
            InitializeReadBuffer(width, height);
            InitializeDrawBuffer(width, height);
            GLFramebuffer.Unbind();
        }
Exemple #2
0
 public void Unbind()
 {
     GLFramebuffer.Unbind();
 }