Example #1
0
File: color.go Project: Nvveen/gl
//void glColor4fv (const float *v)
func Color4fv(v []float32) {
	if len(v) != 4 {
		panic(ErrorInputSize)
	}
	C.glColor4fv((*C.GLfloat)(&v[0]))
}
Example #2
0
//void glColor4fv (const float *v)
func Color4fv(v *[4]float32) {
	C.glColor4fv((*C.GLfloat)(&v[0]))
}