26 #ifndef GRAPHICS_IMAGES_NCGR_H 27 #define GRAPHICS_IMAGES_NCGR_H 61 NCGR(
const std::vector<Common::SeekableReadStream *> &ncgrs,
uint32 width,
uint32 height,
94 void load(
const std::vector<Common::SeekableReadStream *> &ncgrs,
uint32 width,
uint32 height,
107 #endif // GRAPHICS_IMAGES_NCGR_H Generic image decoder interface.
uint32 offsetX
X offset in pixels into the final image.
This is a wrapper around SeekableSubReadStream, but it adds non-endian read methods whose endianness ...
uint32 width
Width of the NCGR grid, in NCGR.
Common::ScopedArray< const byte > pal
void calculateGrid(ReadContext &ctx, uint32 &imageWidth, uint32 &imageHeight)
Image decoder for Nintendo's tile-based graphics format.
void load(const std::vector< Common::SeekableReadStream *> &ncgrs, uint32 width, uint32 height, Common::SeekableReadStream &nclr)
A simple scoped smart pointer template.
Common::SeekableSubReadStreamEndian * ncgr
uint32 width
Width in pixels of this NCGR.
Common::SeekableReadStream * image
uint32 offsetY
Y offset in pixels into the final image.
void readHeader(NCGRFile &ctx)
NCGR(Common::SeekableReadStream &ncgr, Common::SeekableReadStream &nclr)
uint8 depth
Color depth in bits.
uint32 offsetCHAR
Offset to the CHAR section within the NCGR file.
void readChar(NCGRFile &ctx)
uint32 height
Height of the NCGR grid, in NCGR.
Base class for Nitro (Nintendo DS) files.
A generic interface for image decoders.
uint32 height
Height in pixels of this NCGR.
Interface for a seekable & readable data stream.
std::vector< NCGRFile > ncgrs
void draw(ReadContext &ctx)