|(require sgl/bitmap)||package: sgl|
Converts the given bitmap into an OpenGL list that can be rendered with gl-call-list or glCallList. The rendered object is a square on the z=0 plane with corners at (0,0) and (1,1).
The with-gl-proc must accept a thunk and call it while the relevant OpenGL context is selected. Otherwise, the relevant OpenGL context must be selected already.
If mask is not #f, it is used as the mask bitmap for extracting alpha values.