DeleteFramebuffers() public static method

This function deletes a set of Texture objects.
public static DeleteFramebuffers ( uint n, uint framebuffers ) : void
n uint Number of textures to delete.
framebuffers uint The array containing the names of the textures to delete.
return void
Ejemplo n.º 1
0
        private void Dispose(bool disposing)
        {
            if (this.disposedValue == false)
            {
                if (disposing)
                {
                    // Dispose managed resources.
                }

                // Dispose unmanaged resources.
                {
                    Renderbuffer depthBuffer = this.depthBuffer;
                    if (depthBuffer != null)
                    {
                        depthBuffer.Dispose();
                    }
                }
                {
                    Renderbuffer[] array = this.colorBufferList.ToArray();
                    foreach (var item in array)
                    {
                        item.Dispose();
                    }
                }
                {
                    OpenGL.DeleteFramebuffers(1, this.frameBuffer);
                }
            }

            this.disposedValue = true;
        }