physfs.go 496 B

1234567891011121314151617181920212223
  1. package al
  2. // Native dialogs extension
  3. /*
  4. #cgo pkg-config: allegro_physfs-5
  5. #cgo CFLAGS: -I/usr/local/include
  6. #cgo linux LDFLAGS: -lc_nonshared
  7. #include <stdlib.h>
  8. #include <allegro5/allegro.h>
  9. #include <allegro5/allegro_physfs.h>
  10. #include "helpers.h"
  11. */
  12. import "C"
  13. // Sets up to use the PHYSFS helper to easily read data in zip file .
  14. func SetPhysfsFileInterface() {
  15. C.al_set_physfs_file_interface()
  16. }
  17. func PhysfsVersion() uint32 {
  18. return uint32(C.al_get_allegro_physfs_version())
  19. }