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