问题 I have a simple 2d triangle displayed on the screen, I want to update the color buffer data every frame, so the color of the triangle changes constantly, but im not sure how to update the data efficiently. this is the code for the color buffer: GLfloat colourVert[] = { 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f }; GLuint colourBuffer; glGenBuffers(1, &colourBuffer); glBindBuffer(GL_ARRAY_BUFFER, colourBuffer); glBufferData(GL_ARRAY_BUFFER, sizeof(colourVert), colourVert, GL_DYNAMIC