示例#1
0
func LoadBitmapFont(fname string) *Font {
	cfname := C.CString(fname)
	defer C.free(unsafe.Pointer(cfname))

	var f *Font

	f = (*Font)(C.al_load_bitmap_font(cfname))

	return f
}
示例#2
0
func LoadBitmapFont(fname string) *Font {
	f := C.CString(fname)
	defer C.free(unsafe.Pointer(f))
	return (*Font)(unsafe.Pointer(C.al_load_bitmap_font(f)))
}