Hello,
i learn how events are coding on allegro 5 and i see that kind of event :
ALLEGRO_EVENT_DISPLAY_ORIENTATION
and property of display :
event.display.orientation
Contains one of the following values:
ALLEGRO_DISPLAY_ORIENTATION_0_DEGREES
ALLEGRO_DISPLAY_ORIENTATION_90_DEGREES
ALLEGRO_DISPLAY_ORIENTATION_180_DEGREES
ALLEGRO_DISPLAY_ORIENTATION_270_DEGREES
ALLEGRO_DISPLAY_ORIENTATION_FACE_UP
ALLEGRO_DISPLAY_ORIENTATION_FACE_DOWN
how is it possible to rotate an allegro display ?
(i am under visual studio 2013 and windows 8.)
Thank you.
The events are intended to catch the rotation of the display by the undelying operative system, tipically on mobile platforms (Android & iOS) I presume, even thou it's possible to rotate the display also on Windows I currently don't know if Allegro catches such events on this platform.
I don't think (if I understood you corrcetly) that there's a method in Allegro API that lets YOU change the orientation.
Yes, those events are if the device itself detected a physical orientation change.
If you want to rotate your drawing, use ALLEGRO_TRANSFORM s.
thank you very much, Allegro is a wonderful library full of surprises !
Fred