RE: [AD] Alleg5 - new driver structure idea |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
I agree with this, and would like to add some comments:
> float version; /* Version of this function */
float ?
> char *driver; /* ID of which driver type this really is */
Maybe as an Allegro ID instead (eg unsigned int) ?
There should also be a identification string, so one can search
and recognize a particular driver (useful for drivers loaded off
shared libraries). So a fancy name and an id name. Version info
should not be in this id name, but should be put in the version
field, so one can search for a particular driver with at least
version x.y.z for instance.
> int al_register_driver(AL_DRIVER_VTABLE *driver);
also consider:
AL_DRIVER_VTABLE al_load_driver(const char *filename, int version);
for loading drivers from shared libraries.
> "Direct Draw 7 / Windows",
Allegro's own drivers should say so, though this would be only
really mattering in the id name, not the fancy name.
--
Vincent Penquerc'h
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |