예제 #1
0
파일: gldebug.go 프로젝트: Miaque/mojo
func Uniform3fv(dst Uniform, src []float32) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.Uniform3fv(%v, len(%d)) %v", dst, len(src), errstr)
	}()
	C.glUniform3fv(dst.c(), C.GLsizei(len(src)/3), (*C.GLfloat)(&src[0]))
}
예제 #2
0
파일: gles2.go 프로젝트: remogatto/egles
func Uniform3fv(
	location int32, count Sizei, v *float32) {
	C.glUniform3fv(
		C.GLint(location),
		C.GLsizei(count),
		(*C.GLfloat)(v))
}
예제 #3
0
파일: gl_opengles.go 프로젝트: tanema/amore
func Uniform3fv(dst Uniform, src []float32) {
	C.glUniform3fv(dst.c(), C.GLsizei(len(src)/3), (*C.GLfloat)(&src[0]))
}
예제 #4
0
func (location UniformLocation) Uniform3fv(count int, v []float32) {
	if len(v) < 1 {
		panic("Invalid array length - must be at least 1")
	}
	C.glUniform3fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(&v[0]))
}
예제 #5
0
파일: es2.go 프로젝트: nick-fedesna/egles
func Uniform3fv(location, count int, value []float32) {
	C.glUniform3fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(&value[0]))
}
예제 #6
0
func (u Uniform3f) Setv(data []float32) {
	C.glUniform3fv(u.location, C.GLsizei(len(data)/3), (*C.GLfloat)(&data[0]))
}
예제 #7
0
func (location UniformLocation) Uniform3fv(count int, v []float32) {
	if len(v) < 1 {
		panic(ErrorInputSize)
	}
	C.glUniform3fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(&v[0]))
}
예제 #8
0
func (location UniformLocation) Uniform3fv(v []float32) {
	if len(v) > 0 {
		C.glUniform3fv(C.GLint(location), C.GLsizei(len(v)), (*C.GLfloat)(&v[0]))
	}
}