Page 1 of 1

Can't figure out how to make fonts landscape

PostPosted: Aug 17, 2002 @ 4:04am
by DillRye

PostPosted: Aug 17, 2002 @ 8:12am
by Hosed
All you should have to do is set the display to Landscape and you're all good. However, if you're setting the display to landscape after you've loaded your surfaces (including fonts) you'll have to recreate them to get them to show in landscape properly. Otherwise it's all handled seamlessly.

PostPosted: Aug 19, 2002 @ 3:52am
by DillRye

PostPosted: Aug 19, 2002 @ 3:54am
by Hosed

PostPosted: Aug 19, 2002 @ 10:30pm
by Johan
Yep, Hosed is correct (as usual 8) ). Basically the performance hit depends on:

(1) The natural orientation of the display
(2) The orientation of the image being copied to the display.

If you only use square areas the performance in landscape mode is 100% identical to "normal" mode. You can test this with the "simple" demo. If you use rectangular areas or the built-in system font (the system font will be optimized in the next version) the performance hit depends on how the image is aligned to the natural display orientation.

GapiDraw always translates all coordinates and even flips directions as much as possible to ensure that all data is copied in a cache-optimized way.

PostPosted: Aug 20, 2002 @ 1:02am
by DillRye
Sbl, Could you add an orientation flag in the GapiDraw font functions? Then I could program a landscape game using the normal mode coordinates and reducing the overhead neededto rotate surfaces.

Im just wondering if this would be a good idea or not.

PostPosted: Aug 20, 2002 @ 11:30am
by Johan