Exemple #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]))
}
Exemple #2
0
func VertexAttrib4fv(dst Attrib, src []float32) {
	C.glVertexAttrib4fv(dst.c(), (*C.GLfloat)(&src[0]))
}
Exemple #3
0
func VertexAttrib4fv(
	indx uint32, values *float32) {
	C.glVertexAttrib4fv(
		C.GLuint(indx),
		(*C.GLfloat)(values))
}
Exemple #4
0
func (indx AttribLocation) Attrib4fv(values []float32) {
	if len(values) != 4 {
		panic(ErrorInputSize)
	}
	C.glVertexAttrib4fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}
Exemple #5
0
func VertexAttrib4fv(indx uint, values []float32) {
	C.glVertexAttrib4fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}
Exemple #6
0
func (a Vec4Attrib) Setv(values []float32) {
	C.glVertexAttrib4fv(a.index, (*C.GLfloat)(&values[0]))
}
Exemple #7
0
func (indx AttribLocation) Attrib4fv(values *[4]float32) {
	C.glVertexAttrib4fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}