Hello!
I have been happily using Allegro 5 for some weeks in a very small project here. Just now, when investigating why my program freezes under Linux when initializing audio, I learned that allegro5.cfg exists. My problem with audio initialization is solved, but I got some questions about the config file:
Is there any documentation about it? Like what entries are valid in the allegro5.cfg file and the like. [Edit: Just found that a well-commented allegro5.cfg file is distributed with the Allegro 5 sources. I guess this answers my first question.]
Can I pass configurations programmaticaly instead of using the config file?
Can I somehow use a config file with a different name?
Thanks a lot!
LMB
Can I pass configurations programmaticaly instead of using the config file?
Many things can be configured via the configuration file routines. E.g. this should work:
al_set_config_value(al_get_system_config(), "graphics", "driver", "opengl"); auto d = al_create_display(800, 600);
Can I somehow use a config file with a different name?
No (unless you recompile Allegro with a different name for it).
Thanks!
BTW, I am using DAllegro5 in this project (even did a very minor contribution back in November) -- thanks for this too!
LMB