Esempio n. 1
0
        public void Dispose()
        {
            if (!_isDisposed)
            {
                GL.BindVertexArray(0);
                GL.DeleteVertexArray(_handle);

                for (int i = 0; i < _buffers.Count; i++)
                {
                    BufferObject bo = _buffers[i];
                    bo.Dispose();
                }

                GC.SuppressFinalize(this);
                _isDisposed = true;
            }
        }