Araq/Nimrod — pull request #561 by fenekku (2013-08-04 23:18:56+00:00)
Title: glColor*v now accept vector (array) as input (as in original lib)

Hello,

The OpenGL 2.1 specification allows for arrays to be passed for glColor*v() style function. Although these functions were listed in Nimrod's opengl.nim they were taking a pointer to a single value as argument rather than an actual array. I changed that to allow arrays explicitly e.g.

glColor4fv*(v: PGLfloat){.stdcall, importc, ogl.} #before
glColor4fv*(v: TGLVectorf4){.stdcall, importc, ogl.} #after

Now a call like:

glColor4fv*([1.0'f32,0.0'f32,0.0'f32,1.0'f32,]) # Red!

is valid; whereas it wasn't before, but it should have been (I believe).

(The change is much smaller than the git diff makes it seem because of the line endings conversion to ubuntu and back - sorry about that!)