Esempio n. 1
0
func LoadBitmap(fname string) *Bitmap {
	cfname := C.CString(fname)
	defer C.free(unsafe.Pointer(cfname))

	var b *Bitmap

	b = (*Bitmap)(C.al_load_bitmap(cfname))

	return b
}
Esempio n. 2
0
func LoadBitmap(fileName string) *Bitmap {
	f := C.CString(fileName)
	defer C.free(unsafe.Pointer(f))
	return (*Bitmap)(unsafe.Pointer(C.al_load_bitmap(f)))
}