コード例 #1
0
ファイル: graphics.go プロジェクト: bluepeppers/allegro
func (b *Bitmap) GetParentBitmap() *Bitmap {
	var bmp *Bitmap

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

	return bmp
}
コード例 #2
0
ファイル: bitmap.go プロジェクト: beoran/algo
// 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))
}
コード例 #3
0
ファイル: graphics.go プロジェクト: b1naryth1ef/allegro
func (b *Bitmap) GetParent() *Bitmap {
	return (*Bitmap)(unsafe.Pointer(C.al_get_parent_bitmap((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b)))))
}