Пример #1
0
/* dumb_register_dat_xm_quick(): tells Allegro about the XM datafile object.
 * If you intend to load a datafile containing an XM object, you must call this
 * function first. It is recommended you pass DUMB_DAT_XM, but you may have a
 * reason to use a different type (perhaps you already have a datafile with
 * XM files in and they use a different type).
 *
 * This installs the quick loader: the song length and fast seek points are
 * not calculated.
 */
void dumb_register_dat_xm_quick(long type)
{
	register_datafile_object(
		type,
		&dat_read_xm_quick,
		&_dat_unload_duh
	);
}
Пример #2
0
/* dumb_register_dat_duh(): tells Allegro about the DUH datafile object. If
 * you intend to load a datafile containing a DUH object, you must call this
 * function first. It is recommended you pass DAT_DUH, but you may have a
 * reason to use a different type (apart from pride, that doesn't count).
 */
void dumb_register_dat_duh(long type)
{
	register_datafile_object(
		type,
		&dat_read_duh,
		&_dat_unload_duh
	);
}
Пример #3
0
/* Registers gif as bitmap and datafile type. */
void
algif_init (void)
{
    register_bitmap_file_type ("gif", load_gif, save_gif);
    register_datafile_object (DAT_GIF,
                              (void *(*)(PACKFILE *, long)) load_object,
                              (void (*)(void *))
                              algif_destroy_raw_animation);
}
Пример #4
0
void register_datafile_jgmod(void)
{
#ifdef JGMOD_PACKFILE
    static int registered = FALSE;

    if (registered == FALSE)
        register_datafile_object (JGM_ID, load_jgm_datafile, destroy_mod_datafile);

    registered = TRUE;
#endif
}
Пример #5
0
void register_png_datafile_object(int id)
{
    register_datafile_object(id, load_datafile_png, destroy_datafile_png);
}