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

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)
Clone this wiki locally