PNG texture reader class.
static bool read(const vector< uint8_t > &pngData, ByteBuffer &textureByteBuffer)
Read PNG from memory into texture byte buffer.
static void readDataFromMemory(png_structp png_ptr, png_bytep outBytes, png_size_t outBytesToRead)
Read PNG data from memory.
static bool readHeader(const vector< uint8_t > &pngData, int &width, int &height, uint8_t &bytesPerPixel)
Read PNG header from memory.