Пример #1
0
func VertexAttrib2f(
	indx uint32, x float32, y float32) {
	C.glVertexAttrib2f(
		C.GLuint(indx),
		C.GLfloat(x),
		C.GLfloat(y))
}
Пример #2
0
func VertexAttrib2f(dst Attrib, x, y float32) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.VertexAttrib2f(%v, %v, %v) %v", dst, x, y, errstr)
	}()
	C.glVertexAttrib2f(dst.c(), C.GLfloat(x), C.GLfloat(y))
}
Пример #3
0
func VertexAttrib2f(dst Attrib, x, y float32) {
	C.glVertexAttrib2f(dst.c(), C.GLfloat(x), C.GLfloat(y))
}
Пример #4
0
func (indx AttribLocation) Attrib2f(x float32, y float32) {
	C.glVertexAttrib2f(C.GLuint(indx), C.GLfloat(x), C.GLfloat(y))
}
Пример #5
0
func (a Vec2Attrib) Set(x, y float32) {
	C.glVertexAttrib2f(a.index, C.GLfloat(x), C.GLfloat(y))
}