image

package
v1.0.1-0...-c7f6355 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2020 License: MIT Imports: 2 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL