#include <png.h> #include <pnginfo.h> // データ読込時のコールバック関数 int offset = 0; void ReadEndProcess( png_structp _pPng, png_bytep _buf, png_size_t _size ) { uint8* p = (uint8*)png_get_io_ptr( _pPng ); memcpy( _buf, p+offset, _size ); offset += _size; } bool IsPNG( const uint8* _pData ) { if( png_sig_cmp( _pData, 0, 8 ) != 0 ) { return false; } return true; } // テクスチャの読み込み。 bool Load( const uint8* _pData,
libpng is the official PNG reference library. It supports almost all PNG features, is extensible, and has been extensively tested for over 28 years. The home site for development versions (i.e., may be buggy or subject to change or include experimental features) is https://libpng.sourceforge.io/, and the place to go for questions about the library is the png-mng-implement mailing list. libpng is a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く