@AngelDaniel: What part of:
so I end up with glLightfv(GL_LIGHT0, GL_AMBIENT, Varptr(ambient.r)) seems ok, but not too elegant ?
It will mess up if I change the Type definition later.
Is there a better way?
did you not read? :D It will mess up if I change the Type definition later.
Is there a better way?