gl:copy-pixels

(gl:copy-pixels opengl x y w h buffer


Description:

Copy pixel data of x,y,w,h from the framebuffer into temporary buffer (*gl:color* *gl:stencil* or *gl:depth*) before writing to the last position spec'd by gl:raster-pos or gl:window-pos


Arguments:

              x -- x coordinate of lower left hand corner

              w -- width

         buffer -- buffer to temporarily store image data; one of *gl:color* *gl:stencil* or *gl:depth*

         opengl -- opengl instance

              h -- height

              y -- y coordinate of lower left hand cornder


Returns: boolean


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


Examples:



Back to index