示例#1
0
文件: gles2.go 项目: remogatto/egles
func VertexAttrib2f(
	indx uint32, x float32, y float32) {
	C.glVertexAttrib2f(
		C.GLuint(indx),
		C.GLfloat(x),
		C.GLfloat(y))
}
示例#2
0
文件: gldebug.go 项目: Miaque/mojo
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))
}