The CPU and the GPU

We'll want to copy that data to the GPU for rendering. First we must create places to store it, called vertex buffer objects.

positionBuffer = gl.createBuffer();
triangleBuffer = gl.createBuffer();

Like the program, those buffers are in GPU memory, so we receive only handles to them.