SynGame/allegro/include/allegro5/system.h

51 lines
1.3 KiB
C
Raw Normal View History

2019-09-10 11:14:36 +03:00
#ifndef __al_included_allegro5_system_h
#define __al_included_allegro5_system_h
#include "allegro5/config.h"
#include "allegro5/path.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ALLEGRO_SYSTEM ALLEGRO_SYSTEM;
/* Function: al_init
*/
#define al_init() (al_install_system(ALLEGRO_VERSION_INT, atexit))
AL_FUNC(bool, al_install_system, (int version, int (*atexit_ptr)(void (*)(void))));
AL_FUNC(void, al_uninstall_system, (void));
AL_FUNC(bool, al_is_system_installed, (void));
AL_FUNC(ALLEGRO_SYSTEM *, al_get_system_driver, (void));
AL_FUNC(ALLEGRO_CONFIG *, al_get_system_config, (void));
enum {
ALLEGRO_RESOURCES_PATH = 0,
ALLEGRO_TEMP_PATH,
ALLEGRO_USER_DATA_PATH,
ALLEGRO_USER_HOME_PATH,
ALLEGRO_USER_SETTINGS_PATH,
ALLEGRO_USER_DOCUMENTS_PATH,
ALLEGRO_EXENAME_PATH,
ALLEGRO_LAST_PATH /* must be last */
};
AL_FUNC(ALLEGRO_PATH *, al_get_standard_path, (int id));
AL_FUNC(void, al_set_exe_name, (char const *path));
AL_FUNC(void, al_set_org_name, (const char *org_name));
AL_FUNC(void, al_set_app_name, (const char *app_name));
AL_FUNC(const char *, al_get_org_name, (void));
AL_FUNC(const char *, al_get_app_name, (void));
AL_FUNC(bool, al_inhibit_screensaver, (bool inhibit));
#ifdef __cplusplus
}
#endif
#endif
/* vim: set sts=3 sw=3 et: */