Esempio n. 1
0
func (b *Bitmap) LockRegion(x, y, w, h, format, flags int) LockedRegion {
	ptr := C.al_lock_bitmap_region((*C.ALLEGRO_BITMAP)(b), C.int(x), C.int(y),
		C.int(w), C.int(h), C.int(format), C.int(flags))
	return CreateLockedRegion(ptr, w, h)
}
Esempio n. 2
0
func (b *Bitmap) LockRegion(x, y, width, height, format, flags int32) *LockedRegion {
	l := C.al_lock_bitmap_region((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b)), C.int(x), C.int(y), C.int(width), C.int(height), C.int(format), C.int(flags))
	return (*LockedRegion)(unsafe.Pointer(l))
}