Chicken Scheme Allegro binding
caomatto

I am trying the Scheme binding for Allegro 5, and I am finding it really interesting.
I can understand practically everything on how to use it, except for one thing: ENUM types.

How should I use an enum type?
For example, if I write
(new-display-flags-set! windowed)
at run-time it says "unbound variable windowed".

How to use display-flag enums like windowed, fullscreen, noframe, ... or any other enum type?

In other words, what is (for example) the Scheme equivalent for the C instruction
al_set_new_display_flags(ALLEGRO_WINDOWED);?

SiegeLord

I know nothing about Scheme, but perhaps something like this might work? (new-display-flags-set! (display-flag->int 'windowed))?

caomatto

Thank you! Now it works! :)

Thread #615103. Printed from Allegro.cc