![]() |
|
[5] How rotate an allegro display ? |
Fred58
Member #11,939
May 2010
|
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 : Contains one of the following values: ALLEGRO_DISPLAY_ORIENTATION_0_DEGREES how is it possible to rotate an allegro display ? Thank you. |
pkrcel
Member #14,001
February 2012
|
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. It is unlikely that Google shares your distaste for capitalism. - Derezo |
Thomas Fjellstrom
Member #476
June 2000
![]() |
Yes, those events are if the device itself detected a physical orientation change. If you want to rotate your drawing, use ALLEGRO_TRANSFORM s. -- |
Fred58
Member #11,939
May 2010
|
thank you very much, Allegro is a wonderful library full of surprises ! Fred |
|