public void SetPoints(IEnumerable <Point3F> points) { _points = points?.ToList(); _UpdateBounds(); if (HasInit) { _viewport.MakeSureCurrentContext(); UpdateDistance(); } }
internal void BufferBinding() { if (!_isInit) { return; } _viewport.MakeSureCurrentContext(); BindVertexArray(_vao[0]); BindBuffer(GL_ARRAY_BUFFER, _vbo[0]); BindBuffer(GL_ELEMENT_ARRAY_BUFFER, _ebo[0]); }