Пример #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)
}
Пример #2
0
// Gets the width of the bitmap.
func (self *Bitmap) Width() int {
	return int(C.al_get_bitmap_width(self.handle))
}
Пример #3
0
func (b *Bitmap) GetWidth() int32 {
	return int32(C.al_get_bitmap_width((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b))))
}