Re: [AD] Missing system vtable entries on OS X

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


On 27 Jan 2010, at 23:32 , Evert Glebbeek wrote:
> I'm also confused because the Allegro functions don't call for a screen/adapter argument, but the OS X functions that request that information do require a display.
> 
> Hmm. It's too late for me, I can't think clearly anymore. I'll have a look over the weekend.

Actually, I'm not as confused as I thought I was.
I remember I looked at this before a while back and came to the same conclusion then as I do now.
There is no function on OS X that lets you ask for a list of supported pixel formats in the way that the X11 and Windows ports request this information.
You can pass a list of values describing a pixel format to a function and it will tell you what the best it can do for you looks like (which is a bit like what we use _al_score_display_settingsfor, I guess). You can ask what displays are capable of handling a particular pixel format. You can ask what the currently selected pixel format is.
But you cannot ask for a list of supported pixel formats.

So, what should al_get_num_display_formats, al_set_new_display_format and al_get_display_format_option return on OS X?
Perhaps the best thing to do is to document that this information is simply not available on all platforms (in a way the documentation already says that, but it implies that there is a way around that).

If I'm wrong and there is a function that does tell you what pixel formats are available, can someone else point me to it? I obviously can't find it.

Evert



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