2

This is the idea how to upload data to gpu: glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_vboID); void *vbo = glMapBuffer(GL_ELEMENT_ARRAY_BUFFER, GL_WRITE_ONLY); memcpy(vbo, indices, byteSize); glUnmapBuffer(GL_ELEMENT_ARRAY_BUFFER);


Only top voted, non community-wiki answers of a minimum length are eligible