Skip to content

glgui orientation set!

Chris Petersen edited this page Oct 16, 2014 · 1 revision

glgui-orientation-set sets the GUI orientation. The orientation options are GUI_PORTRAIT, GUI_LANDSCAPE, GUI_SEASCAPE, and GUI_UPSIDEDOWN. It changes the behaviour of (glgui-width-get) and (glgui-width-get) to work appropriately in each given orientation.

Parameter Description
o The orientation to set, e.g. GUI_PORTRAIT

Example

Example from apps/uSquish/main.scm

(make-window 320 480)
(glgui-orientation-set! GUI_PORTRAIT)
(set! gui (make-glgui))
(glgui-pixmap gui 0 0 landscape.img (+ (glgui-width-get) 1) (+ (glgui-width-get) 1))
Clone this wiki locally