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