コード例 #1
0
ファイル: opengl.go プロジェクト: bluepeppers/allegro
func (b *Bitmap) GetGLTexturePosition() (int, int) {
	var x, y C.int

	C.al_get_opengl_texture_position((*C.ALLEGRO_BITMAP)(b), &x, &y)

	return int(x), int(y)
}
コード例 #2
0
ファイル: opengl.go プロジェクト: b1naryth1ef/allegro
func (b *Bitmap) GetOpenglTexturePosition() (int32, int32) {
	var u, v C.int
	C.al_get_opengl_texture_position((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b)), &u, &v)
	return int32(u), int32(v)
}