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