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