示例#1
0
func (b *Bitmap) Clone() *Bitmap {
	var n *Bitmap

	n = (*Bitmap)(C.al_clone_bitmap((*C.ALLEGRO_BITMAP)(b)))

	return n
}
示例#2
0
文件: bitmap.go 项目: beoran/algo
// Returns a clone of the bitmap, that will automatically be
// destroyed.
func (self *Bitmap) Clone() *Bitmap {
	return wrapBitmap(C.al_clone_bitmap(self.handle))
}
示例#3
0
func (b *Bitmap) Clone() *Bitmap {
	return (*Bitmap)(unsafe.Pointer(C.al_clone_bitmap((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b)))))
}