Back to class index
| VertexBuffer::UpdateToGpuSyntaxvoid VertexBuffer::UpdateToGpu();Copies the CPU-side vertex buffer data to the GPU memory. Call this function after having modified the CPU-side data. Work in progress:Todo: in void VertexBuffer::UpdateToGpu(): Should this be '>=' since if equal, we'll write the full data ?! Todo: in void VertexBuffer::UpdateToGpu(): Differentiate between GL_STREAM_DRAW and GL_DYNAMIC_DRAW. Leave a Comment |