I am new to the "new OpenGL" method of doing things.

I think that I have misunderstood, or not understood some of the steps for drawing data with OpenGL.

Assuming that I can open an OpenGL context, please could you (a SO user reading this question) clarify all the steps required to render an array of points describing a line in OpenGL.

Currently I have been doing this:

```
// In main:
float* my_points = new float[100];
// Fill my_points with some data to be drawn as a continuous line on the screen in x-y space.

// Inside esMainLoop, inside drawing function:
GLfloat* points = new GLfloat[3 * 100]; // x,, y, z points
// Copy data to points

glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, points); // No idea what this is or how it works
glEnableVertexAttribArray(0);
glDrawArrays(GL_LINE_STRIP, 0, 100);

// In function called when CTRL+C is pressed:
delete my_points;

```

Previously (years ago) I have used things like glBindBuffers, glGenBuffers, etc. I don't understand these things either or if I need them, hence the question.