Is there any way to use an array directly from CPU and not read it everytime from GPU?
In the example below, a VBO is created and the buffer is transfered to GPU, so every time the screen gets rendered,
it reads from GPU and not CPU. How can we modify this implementation if we don't want to keep the buffer in GPU and instead read it every time from CPU?
Code :Vector3f Vertices; Vertices = Vector3f(0.0f, 0.0f, 0.0f); glGenBuffers(1, &VBO); glBindBuffer(GL_ARRAY_BUFFER, VBO); glBufferData(GL_ARRAY_BUFFER, sizeof(Vertices), Vertices, GL_STATIC_DRAW);