Use GL_CLAMP, not GL_REPEAT (and other changes)

And also:
* Use glVertex2f, not glVertex3f
* Opening curly brackets on a new line
* spaces between most operators
* avoir some very long lines, or indentations