示例#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
文件: bitmap.go 项目: beoran/algo
// 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))))
}