Skip to content
Matthias Görges edited this page Feb 21, 2015 · 2 revisions

glgui-uiform adds a uiform widget to a gui

Parameter Description
g The Graphical User Interface (GUI) this widget belongs to
x Lower left corner along the x-axis in pixels
y Lower left corner along the y-axis in pixels
w Width of the element in pixels
h Height of the element in pixels

Example

Example 1: Place a full screen uiform widget on the screen (with white background

(define default:background (list 4 4 (glCoreTextureCreate 4 4 (make-u8vector 16 #xff)) 0.1 0.1 .9 .9))
(let ((w (glgui-width-get))
      (h (glgui-height-get)))
  (set! background (glgui-pixmap gui 0 0 default:background w h))
  (set! uiform (glgui-uiform gui 0 0 w h))
)
Clone this wiki locally