glgui pixmap - part-cw/lambdanative GitHub Wiki
(glgui-pixmap g x y img . stretch)
glgui-pixmap creates a pixmap image
Parameter | Description |
---|---|
g | Graphical User Interface (GUI) for this widget |
x | Lower left corner along the x-axis in pixels |
y | Lower left corner along the y-axis in pixels |
img | Image texture to be used for pixmap - a texture list (w h t x1 y1 x2 y2) |
stretch | Optional: Can be used to stretch the texture to desired size. stretch takes the two arguments: width and height |
Example
Example 1 from (apps/DemoHelloWorld/main.scm)
(glgui-pixmap gui 8 (- (glgui-height-get) 32) title.img)