Пример #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]))
}
Пример #2
0
func VertexAttrib3fv(dst Attrib, src []float32) {
	C.glVertexAttrib3fv(dst.c(), (*C.GLfloat)(&src[0]))
}
Пример #3
0
func VertexAttrib3fv(
	indx uint32, values *float32) {
	C.glVertexAttrib3fv(
		C.GLuint(indx),
		(*C.GLfloat)(values))
}
Пример #4
0
func (indx AttribLocation) Attrib3fv(values []float32) {
	if len(values) != 3 {
		panic(ErrorInputSize)
	}
	C.glVertexAttrib3fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}
Пример #5
0
func VertexAttrib3fv(indx uint, values []float32) {
	C.glVertexAttrib3fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}
Пример #6
0
func (a Vec3Attrib) Setv(values []float32) {
	C.glVertexAttrib3fv(a.index, (*C.GLfloat)(&values[0]))
}
Пример #7
0
func (indx AttribLocation) Attrib3fv(values *[3]float32) {
	C.glVertexAttrib3fv(C.GLuint(indx), (*C.GLfloat)(&values[0]))
}