Пример #1
0
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
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)
}