Documentation ¶
Overview ¶
Package image provides support for Allegro's image addon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
func Install() error
Initializes the image addon. This registers bitmap format handlers for al_load_bitmap, al_load_bitmap_f, al_save_bitmap, al_save_bitmap_f.
See https://liballeg.org/a5docs/5.2.6/image.html#al_init_image_addon
func Installed ¶
func Installed() bool
Returns true if the image addon is initialized, otherwise returns false.
See https://liballeg.org/a5docs/5.2.6/image.html#al_is_image_addon_initialized
func Uninstall ¶
func Uninstall()
Shut down the image addon. This is done automatically at program exit, but can be called any time the user wishes as well.
See https://liballeg.org/a5docs/5.2.6/image.html#al_shutdown_image_addon
func Version ¶
func Version() (major, minor, revision, release uint8)
Returns the (compiled) version of the addon, in the same format as al_get_allegro_version.
See https://liballeg.org/a5docs/5.2.6/image.html#al_get_allegro_image_version
Types ¶
This section is empty.