[AD] Allegro 5 (4.9) data type

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


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.

When I started the Allegro.pas wrapper I decided to define custom data
types. On version 4.2.1 I decided to change the text type because the
C style (char*) is hard and no natural in Pascal. Since I defined an
"AL_STRING" data type it was too easy and automatic in some cases.

What do you think?

Ñuño Martínez.




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