CSharpGL.Framebuffer.SetParameter C# (CSharp) Method

SetParameter() public method

Sets the size of an empty framebuffer.
public SetParameter ( int width, int height, int samples ) : void
width int
height int
samples int how many samples?
return void
        public void SetParameter(int width, int height, int samples)
        {
            if (glFramebufferParameteri == null) { throw new Exception(string.Format("{0} is not supported on this device!", glFramebufferParameteri)); }

            //if (glFramebufferParameteri != null)
            {
                glFramebufferParameteri(OpenGL.GL_DRAW_FRAMEBUFFER, OpenGL.GL_FRAMEBUFFER_DEFAULT_WIDTH, width);//512
                glFramebufferParameteri(OpenGL.GL_DRAW_FRAMEBUFFER, OpenGL.GL_FRAMEBUFFER_DEFAULT_HEIGHT, height);//512
                glFramebufferParameteri(OpenGL.GL_DRAW_FRAMEBUFFER, OpenGL.GL_FRAMEBUFFER_DEFAULT_SAMPLES, samples);//4
            }
        }