Beispiel #1
0
func VertexAttrib4fv(dst Attrib, src []float32) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.VertexAttrib4fv(%v, len(%d)) %v", dst, len(src), errstr)
	}()
	C.glVertexAttrib4fv(dst.c(), (*C.GLfloat)(&src[0]))
}
Beispiel #2
0
func VertexAttrib4fv(dst Attrib, src []float32) {
	C.glVertexAttrib4fv(dst.c(), (*C.GLfloat)(&src[0]))
}
Beispiel #3
0
func VertexAttrib4fv(
	indx uint32, values *float32) {
	C.glVertexAttrib4fv(
		C.GLuint(indx),
		(*C.GLfloat)(values))
}
Beispiel #4
0
func (indx AttribLocation) Attrib4fv(values []float32) {
	if len(values) != 4 {
		panic(ErrorInputSize)
	}
	C.glVertexAttrib4fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}
Beispiel #5
0
func VertexAttrib4fv(indx uint, values []float32) {
	C.glVertexAttrib4fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}
Beispiel #6
0
func (a Vec4Attrib) Setv(values []float32) {
	C.glVertexAttrib4fv(a.index, (*C.GLfloat)(&values[0]))
}
Beispiel #7
0
func (indx AttribLocation) Attrib4fv(values *[4]float32) {
	C.glVertexAttrib4fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}