+ LoadPNGBuffer()
+ loads a png file buffer into a valid rgba image
+ */
+
+static void LoadPNGBuffer( byte *buffer, int size, byte **pixels, int *width, int *height ){
+ png_struct *png;
+ png_info *info, *end;
+ pngBuffer_t pb;
+ //pngBuffer_t *pb = (pngBuffer_t*) png_get_io_ptr( png );
+ int bitDepth, colorType;
+ png_uint_32 w, h, i;
+ byte **rowPointers;