gl:tex-image-2d

(gl:tex-image-2d opengl target level internal-format w h border format type data|image)


Description:



Arguments:

   data | image -- either an NSData object or an NSBitmapImageRep

         target -- the target texture (*gl:texture-2d*)

internal-format -- internal format such as *gl:rgb8*

         format -- specifies the format of data

              w -- width of texture (should be power of 2)

         opengl -- opengl instance

              h -- height of texture (should be power of 2)

         border -- specifies the width of the border (most be 0)

           type -- the data type of the pixel data (*gl:unsinged-byte* for example)

          level -- detail level (0)


Returns: boolean


Related:  


Examples:



Back to index