Re: [AD] Allegro5 and colors |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
>Peter Wang wrote:
>
>>- Interpreters/compilers that have <32-bit ints (this includes probably
>> most dynamically-typed languages, since some bits of a machine word
>> are needed to store type information)
>>
>
>Does Allegro even work on those?
Yes, sort of. If you don't have all 32-bits, you can't play with RGBA colours
reliably. However, 24-bit RGB or less is fine.
> Will returning a structure containing 8
>chars be ok?
I don't think so.
>SOrry, I have no experience in the world of interpreted languages.
>
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.