Implement OpenGL index buffer creation and mapping.