Re: [AD] Allegro5 and colors |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Peter Wang wrote:
To be really easy to interface to other languages, basically you have to stick
to the basic C types (ints, floats, strings). Otherwise pointers to opaque
data types are the best. Some interpreters let you reach inside structures,
but other times it's hard.
So, it comes down to:
AL_COLOR al_map_rgba(bmp, r, g, b, a); /* For mainly C */
or
AL_COLOR *al_map_rgba(bmp, AL_COLOR* color, r, g, b, a) /* For
interpreted language support */
Who's our appointed dictator again?