Example #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
}
Example #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)))
}