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