func (f *Font) GetTextDimensions(text string) (int32, int32, int32, int32) { var x, y, w, h C.int t := C.CString(text) defer C.free(unsafe.Pointer(t)) C.al_get_text_dimensions((*C.ALLEGRO_FONT)(unsafe.Pointer(f)), t, &x, &y, &w, &h) return int32(x), int32(y), int32(w), int32(h) }
func (f *Font) GetTextDimensions(text string) (int, int, int, int) { ctext := C.CString(text) defer C.free(unsafe.Pointer(ctext)) var x, y, w, h C.int C.al_get_text_dimensions((*C.ALLEGRO_FONT)(f), ctext, &x, &y, &w, &h) return int(x), int(y), int(w), int(h) }