Exemple #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
}
Exemple #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)))
}
Exemple #3
0
func CreateBitmap(w, h int32) *Bitmap {
	return (*Bitmap)(unsafe.Pointer(C.al_create_bitmap(C.int(w), C.int(h))))
}