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