Exemplo n.º 1
0
func (b *Bitmap) GetDimensions() (int, int) {
	ptr := (*C.ALLEGRO_BITMAP)(b)
	var w, h C.int

	w = C.al_get_bitmap_width(ptr)
	h = C.al_get_bitmap_height(ptr)

	return int(w), int(h)
}
Exemplo n.º 2
0
// Gets the height of the bitmap.
func (self *Bitmap) Height() int {
	return int(C.al_get_bitmap_height(self.handle))
}
Exemplo n.º 3
0
func (b *Bitmap) GetHeight() int32 {
	return int32(C.al_get_bitmap_height((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b))))
}