Esempio n. 1
0
func GetUniformiv(
	program uint32, location int32, params *int32) {
	C.glGetUniformiv(
		C.GLuint(program),
		C.GLint(location),
		(*C.GLint)(params))
}
Esempio n. 2
0
func GetUniformiv(dst []int32, src Uniform, p Program) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.GetUniformiv(%v, %v, %v) %v", dst, src, p, errstr)
	}()
	C.glGetUniformiv(p.c(), src.c(), (*C.GLint)(&dst[0]))
}
Esempio n. 3
0
func (program Program) GetUniformiv(location UniformLocation, values []int32) {
	if len(values) == 0 {
		panic("Invalid values length")
	}
	// FIXME(jimt): This should really yield only one return value instead of using a slice.
	// http://www.opengl.org/sdk/docs/man/xhtml/glGetUniform.xml
	C.glGetUniformiv(C.GLuint(program), C.GLint(location), (*C.GLint)(&(values[0])))
}
Esempio n. 4
0
func GetUniformiv(dst []int32, src Uniform, p Program) {
	C.glGetUniformiv(p.c(), src.c(), (*C.GLint)(&dst[0]))
}
Esempio n. 5
0
func GetUniformiv(program uint, location int, params []int32) []int32 {
	C.glGetUniformiv(C.GLuint(program), C.GLint(location), (*C.GLint)(&params[0]))
	return params
}