Ejemplo n.º 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
}
Ejemplo n.º 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)))
}