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