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