示例#1
0
文件: gldebug.go 项目: Miaque/mojo
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]))
}
示例#2
0
文件: gles2.go 项目: remogatto/egles
func Uniform1iv(
	location int32, count Sizei, v *int32) {
	C.glUniform1iv(
		C.GLint(location),
		C.GLsizei(count),
		(*C.GLint)(v))
}
示例#3
0
func Uniform1iv(dst Uniform, src []int32) {
	C.glUniform1iv(dst.c(), C.GLsizei(len(src)), (*C.GLint)(&src[0]))
}
示例#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]))
}
示例#5
0
文件: es2.go 项目: nick-fedesna/egles
func Uniform1iv(location, count int, value []int32) {
	C.glUniform1iv(C.GLint(location), C.GLsizei(count), (*C.GLint)(&value[0]))
}
示例#6
0
func (u Uniform1i) Setv(data []int32) {
	C.glUniform1iv(u.location, C.GLsizei(len(data)), (*C.GLint)(&data[0]))
}
示例#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]))
}
示例#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]))
	}
}