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