Esempio n. 1
0
func (b *Bitmap) GetParentBitmap() *Bitmap {
	var bmp *Bitmap

	bmp = (*Bitmap)(C.al_get_parent_bitmap((*C.ALLEGRO_BITMAP)(b)))

	return bmp
}
Esempio n. 2
0
// Returns the parent bitmap of this sub bitmap, or nil if there is no parent.
// This is a raw bitmap that has no finaliser set on it since likely
/// this function will only be used for inspection.
func (self *Bitmap) Parent() *Bitmap {
	return wrapBitmapRaw(C.al_get_parent_bitmap(self.handle))
}
Esempio n. 3
0
func (b *Bitmap) GetParent() *Bitmap {
	return (*Bitmap)(unsafe.Pointer(C.al_get_parent_bitmap((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b)))))
}