CSharpGL.Buffer.UnmapBuffer C# (CSharp) Method

UnmapBuffer() public method

Stop reading/writing buffer.
public UnmapBuffer ( bool unbind = true ) : bool
unbind bool
return bool
        public virtual bool UnmapBuffer(bool unbind = true)
        {
            if (glUnmapBuffer == null) { glUnmapBuffer = OpenGL.GetDelegateFor<OpenGL.glUnmapBuffer>(); }
            bool result = glUnmapBuffer((uint)this.Target);
            if (unbind)
            {
                if (glBindBuffer == null) { glBindBuffer = OpenGL.GetDelegateFor<OpenGL.glBindBuffer>(); }
                glBindBuffer((uint)this.Target, 0);
            }

            return result;
        }