示例#1
0
文件: gles2.go 项目: remogatto/egles
func GetUniformfv(
	program uint32, location int32, params *float32) {
	C.glGetUniformfv(
		C.GLuint(program),
		C.GLint(location),
		(*C.GLfloat)(params))
}
示例#2
0
文件: gldebug.go 项目: Miaque/mojo
func GetUniformfv(dst []float32, src Uniform, p Program) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.GetUniformfv(len(%d), %v, %v) %v", len(dst), src, p, errstr)
	}()
	C.glGetUniformfv(p.c(), src.c(), (*C.GLfloat)(&dst[0]))
}
示例#3
0
文件: program.go 项目: kanelbulle/gl
func (program Program) GetUniformfv(location UniformLocation, values []float32) {
	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.glGetUniformfv(C.GLuint(program), C.GLint(location), (*C.GLfloat)(&(values[0])))
}
示例#4
0
func GetUniformfv(dst []float32, src Uniform, p Program) {
	C.glGetUniformfv(p.c(), src.c(), (*C.GLfloat)(&dst[0]))
}
示例#5
0
文件: es2.go 项目: nick-fedesna/egles
func GetUniformfv(program uint, location int, params []float32) []float32 {
	C.glGetUniformfv(C.GLuint(program), C.GLint(location), (*C.GLfloat)(&params[0]))
	return params
}