Re: [AD] Windows Addition for Message Parsing

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 8 Oct 2008, at 13:07, Milan Mimica wrote:
There are some D3D functions that we export:
AL_FUNC(LPDIRECT3DDEVICE9, al_d3d_get_device, (ALLEGRO_DISPLAY *));
AL_FUNC(HWND, al_d3d_get_hwnd, (ALLEGRO_DISPLAY *));
AL_FUNC(LPDIRECT3DTEXTURE9, al_d3d_get_system_texture, (ALLEGRO_BITMAP *)); AL_FUNC(LPDIRECT3DTEXTURE9, al_d3d_get_video_texture, (ALLEGRO_BITMAP *));
AL_FUNC(bool, al_d3d_supports_non_pow2_textures, (void));
AL_FUNC(bool, al_d3d_supports_non_square_textures, (void));

Maybe those would be useful with OpenGL so we can make them driver- independent.

Possibly, though I would think the last two already have OpenGL equivalents?

I still think we should allow the user to specify the driver. There are cases when one driver doesn't work correctly and you want to force the other one.

Yes, but not hard coded in the source, surely?
What we specifically want to avoid is people using ALLEGRO_D3D because they think that's what they need on Windows to use Allegro at all. People use ALLEGRO_DIRECTX where they should be using ALLEGRO_AUTODETECT with Allegro 4 as well because they think it's better. So if we keep it, we need to stress under what circumstances it's needed and more importantly when and why it shouldn't be used.

ALLEGRO_AUDIO_DRIVER_OPENAL,
ALLEGRO_AUDIO_DRIVER_ALSA,
ALLEGRO_AUDIO_DRIVER_DSOUND
ALLEGRO_AUDIO_DRIVER_OSS

True. By the same logic, those shouldn't be exposed either, and maybe indeed they shouldn't be - not by default anyway (maybe you only get the autodetect drivers when you #include "allegro5/allegro5.h" and need to #include "allegro5/non-portable-driver-ids.h" to get all of them?). In practice though, I see fewer people requesting specific audio drivers than graphics drivers.

Evert




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/