Example #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]))
}
Example #2
0
func VertexAttrib1fv(dst Attrib, src []float32) {
	C.glVertexAttrib1fv(dst.c(), (*C.GLfloat)(&src[0]))
}
Example #3
0
func VertexAttrib1fv(
	indx uint32, values *float32) {
	C.glVertexAttrib1fv(
		C.GLuint(indx),
		(*C.GLfloat)(values))
}
Example #4
0
func (indx AttribLocation) Attrib1fv(values []float32) {
	if len(values) != 1 {
		panic(ErrorInputSize)
	}
	C.glVertexAttrib1fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}
Example #5
0
func VertexAttrib1fv(indx uint, values []float32) {
	C.glVertexAttrib1fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}
Example #6
0
func (a FloatAttrib) Setv(values []float32) {
	C.glVertexAttrib1fv(a.index, (*C.GLfloat)(&values[0]))
}
Example #7
0
func (indx AttribLocation) Attrib1fv(values *[1]float32) {
	C.glVertexAttrib1fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}
Example #8
0
File: gl.go Project: beoran/fungo
func VertexAttrib1fv(index uint, v1 *float32) {
	C.glVertexAttrib1fv(C.GLuint(index), (*C.GLfloat)(Pointer(v1)))
}