Skip to content
Matthias Görges edited this page May 29, 2014 · 1 revision

png->img returns a loaded PNG file as an image texture

Parameter Description
fname PNG file to obtain information from

Example

Example 1: Load a PNG image as a texture during the initialization of an application.

(glgui-image gui 50 50 64 64 (png->img (string-append (system-directory) 
  (system-pathseparator) "panda-icon.png")) White)
Clone this wiki locally