gameplay/src/Image.cpp
// Callback for reading a png image using Stream

Callback for reading a png image using Stream
Callback for reading a png image using Stream
static void readStream(png_structp png, png_bytep data, png_size_t length)
{
    Stream* stream = reinterpret_cast<Stream*>(png_get_io_ptr(png));
    if (stream == NULL || stream->read(data, 1, length) != length)
    {
        png_error(png, "Error reading PNG.");
    }
}
static void readStream ( png_structp png , png_bytep data , png_size_t length ) { Stream * stream = reinterpret_cast < Stream * > ( png_get_io_ptr ( png ) ) ; if ( stream == NULL || stream -> read ( data , 1 , length ) != length ) { png_error ( png , " " ) ; } }
Callback for reading a png image using Stream
Callback for reading a png image using Stream