float linePos[6]={0.0f,5.0f,0.0f,0.0f,30.0f,0.0f};
...
glGenBuffers(1, &buffer);
glBindBuffer(GL_ARRAY_BUFFER, buffer);
glBufferData(GL_ARRAY_BUFFER, sizeof(float)*3*2, linePos, GL_STATIC_DRAW);
...
glUniformMatrix4fv(UniformColor.modelToWorldMatrixUnif, 1, GL_FALSE, glm::value_ptr(modelMatrix.Top()));
//this just transforms all vertices
glLineWidth(3);
glDrawArrays(GL_LINES,0,2);
我想制作一些动画来改变线(linePos [0])一端的位置(ex.translate),而不是另一端。我怎样才能做到这一点?