Пример #1
0
func NewBitmap(w, h int) *Bitmap {
	var b *Bitmap

	b = (*Bitmap)(C.al_create_bitmap(C.int(w), C.int(h)))

	return b
}
Пример #2
0
// Creates a new bitmap. It has a finalizer in place that will let it be automatically
// destroyed.
func CreateBitmap(w, h int) *Bitmap {
	return wrapBitmap(C.al_create_bitmap(C.int(w), C.int(h)))
}
Пример #3
0
func CreateBitmap(w, h int32) *Bitmap {
	return (*Bitmap)(unsafe.Pointer(C.al_create_bitmap(C.int(w), C.int(h))))
}