Beispiel #1
0
func VertexAttrib3f(dst Attrib, x, y, z float32) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.VertexAttrib3f(%v, %v, %v, %v) %v", dst, x, y, z, errstr)
	}()
	C.glVertexAttrib3f(dst.c(), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
}
Beispiel #2
0
func VertexAttrib3f(
	indx uint32, x float32, y float32, z float32) {
	C.glVertexAttrib3f(
		C.GLuint(indx),
		C.GLfloat(x),
		C.GLfloat(y),
		C.GLfloat(z))
}
Beispiel #3
0
func VertexAttrib3f(dst Attrib, x, y, z float32) {
	C.glVertexAttrib3f(dst.c(), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
}
Beispiel #4
0
func (indx AttribLocation) Attrib3f(x float32, y float32, z float32) {
	C.glVertexAttrib3f(C.GLuint(indx), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
}
Beispiel #5
0
func (a Vec3Attrib) Set(x, y, z float32) {
	C.glVertexAttrib3f(a.index, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
}