Re: [AD] Allegro 5 (4.9) data type

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


On 2008-08-22, Guillermo Martínez Jiménez <gmjimen@xxxxxxxxxx> wrote:
> Hello everybody.
> 
> I've seen that Allegro 4.9 uses the standard C data types. Did you
> discuss about to redefine them as OpenGL does? You know, GLint,
> GLuint, GLbyte, etc. I know it would be a nightmare to change all
> declarations for all functions and structs, but I think the benefits
> would be greater, specially to port the library between different
> platforms (there are versions for the GP2X and Nintendo game consoles)
> and languages. Also the most important and powerful cross-platform
> libraries (OpenGL, GTK+, SDL...) do this so it must be discussed.

I always *hate* when each library defines its own types, for whatever
reason.  Am I supposed to use those types or are they just
implementation details?  As a user of *two* libraries, whose types do I
adopt?  Is FooInt the same as BarInt?  Always?  Sometimes?

Peter





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