Ejemplo n.º 1
0
func Uniform3iv(
	location int32, count Sizei, v *int32) {
	C.glUniform3iv(
		C.GLint(location),
		C.GLsizei(count),
		(*C.GLint)(v))
}
Ejemplo n.º 2
0
func Uniform3iv(dst Uniform, src []int32) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.Uniform3iv(%v, %v) %v", dst, src, errstr)
	}()
	C.glUniform3iv(dst.c(), C.GLsizei(len(src)/3), (*C.GLint)(&src[0]))
}
Ejemplo n.º 3
0
func Uniform3iv(dst Uniform, src []int32) {
	C.glUniform3iv(dst.c(), C.GLsizei(len(src)/3), (*C.GLint)(&src[0]))
}
Ejemplo n.º 4
0
func (location UniformLocation) Uniform3iv(count int, v []int32) {
	if len(v) < 1 {
		panic("Invalid array length - must be at least 1")
	}
	C.glUniform3iv(C.GLint(location), C.GLsizei(count), (*C.GLint)(&v[0]))
}
Ejemplo n.º 5
0
func Uniform3iv(location, count int, value []int32) {
	C.glUniform3iv(C.GLint(location), C.GLsizei(count), (*C.GLint)(&value[0]))
}
Ejemplo n.º 6
0
func (location UniformLocation) Uniform3iv(count int, v []int32) {
	if len(v) < 1 {
		panic(ErrorInputSize)
	}
	C.glUniform3iv(C.GLint(location), C.GLsizei(count), (*C.GLint)(&v[0]))
}
Ejemplo n.º 7
0
func (location UniformLocation) Uniform3iv(v []int32) {
	if len(v) > 0 {
		C.glUniform3iv(C.GLint(location), C.GLsizei(len(v)), (*C.GLint)(&v[0]))
	}
}