Example #1
0
        public unsafe void Dispose()
        {
            uint t = texture;

            gl.DeleteTextures(1, &t);
            shaderProgram.Delete(gl);
            t = vertexBuffer;
            gl.DeleteBuffers(1, &t);
            t = vertexArray;
            gl.DeleteVertexArrays(1, &t);
        }