gl:draw-pixels

(gl:draw-pixels opengl w h format type image|nsdata)


Description:

Draw an image or the pixel data stored in nsdata object into the opengl buffer of size w and h at the x,y coordinates set by gl:raster-pos or gl:window-pos


Arguments:

         format -- format of image data *gl:rgb* or *gl:rgba* for example

              w -- width

         opengl -- opengl instance

              h -- height

   image|nsdata -- an image or nsdata objecte

           type -- type of image data *gl:unsigned-byte* or *gl:float* for example


Returns: boolean


Related: gl:raster-pos gl:window-pos gl:draw-pixels gl:copy-pixels 


Examples:



Back to index