Unit al5image
Uses Classes, Interfaces, Objects and Records Types Constants Variables
Description
This unit registers bitmap format handlers for al_load_bitmap, al_save_bitmap, etc.
Some of the format handlers define configuration options for specifying things like compression level or gamma handling. Refer to al_get_system_config for their documentation.
Overview
Functions and Procedures
Description
Functions and Procedures
function al_init_image_addon: AL_BOOL; CDECL; external ALLEGRO_IMAGE_LIB_NAME; |
Initializes the image addon. This registers bitmap format handlers for al_load_bitmap, al_load_bitmap_f, al_save_bitmap, al_save_bitmap_f.
The following types are built into the Allegro image addon and guaranteed to be available: BMP, DDS, PCX, TGA. Every platform also supports JPEG and PNG via external dependencies.
Other formats may be available depending on the operating system and installed libraries, but are not guaranteed and should not be assumed to be universally available.
The DDS format is only supported to load from, and only if the DDS file contains textures compressed in the DXT1, DXT3 and DXT5 formats. Note that when loading a DDS file, the created bitmap will always be a video bitmap and will have the pixel format matching the format in the file.
See also
- al_is_image_addon_initialized
- Returns
True if the image addon is is initialized, otherwise returns false.
- al_shutdown_image_addon
- Shuts down the image addon.
|
function al_is_image_addon_initialized: AL_BOOL; CDECL; external ALLEGRO_IMAGE_LIB_NAME; |
Returns True if the image addon is is initialized, otherwise returns false.
See also
- al_init_image_addon
- Initializes the image addon.
- al_shutdown_image_addon
- Shuts down the image addon.
|
procedure al_shutdown_image_addon; CDECL; external ALLEGRO_IMAGE_LIB_NAME; |
Shuts down the image addon. This is done automatically at program exit, but can be called any time the user wishes as well.
See also
- al_init_image_addon
- Initializes the image addon.
- al_is_image_addon_initialized
- Returns
True if the image addon is is initialized, otherwise returns false.
|
function al_get_allegro_image_version: AL_UINT32; CDECL; external ALLEGRO_IMAGE_LIB_NAME; |
Returns the (compiled) version of the addon, in the same format as al_get_allegro_version.
|
Generated by PasDoc 0.15.0. Generated on 2024-11-10 15:15:06.
|