Exemple #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))
}
Exemple #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))
}
Exemple #3
0
func VertexAttrib3f(dst Attrib, x, y, z float32) {
	C.glVertexAttrib3f(dst.c(), C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
}
Exemple #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))
}
Exemple #5
0
func (a Vec3Attrib) Set(x, y, z float32) {
	C.glVertexAttrib3f(a.index, C.GLfloat(x), C.GLfloat(y), C.GLfloat(z))
}