   texture from png in memory
  I have been using glpng to load png files for textures.  I would like to bind a png file to a texture that is stored in memory.  I have a pointer to this data, but glpng seems to only be able to load pngs from files or from a FILE pointer.  Is there another library that can do this or a modified version of glpng somewhere that can?  Thanks.   
  A texture is just an array of contiguous bytes that contain color values.  If you can load an image format into memory, you typically have that array.  So just use the array as a texture.-me   ;  I have the png file as a resource in my program so the memory data is the png file not an array of contiguous bytes that contain color values.   