xoreos
0.0.5
|
Simple utility class to load NCLR palette files. More...
#include <nclr.h>
Static Public Member Functions | |
static const byte * | load (Common::SeekableReadStream &nclr) |
Static Private Member Functions | |
static const byte * | loadNCLR (Common::SeekableSubReadStreamEndian &nclr) |
static void | readHeader (Common::SeekableSubReadStreamEndian &nclr) |
static const byte * | readPalette (Common::SeekableSubReadStreamEndian &nclr) |
Additional Inherited Members | |
Static Protected Member Functions inherited from Aurora::NitroFile | |
static Common::SeekableSubReadStreamEndian * | open (Common::SeekableReadStream &stream) |
Treat this stream as a Nitro file and return an endian'd stream according to its BOM. More... | |
static Common::SeekableSubReadStreamEndian * | open (Common::SeekableReadStream *stream) |
Treat this stream as a Nitro file, take it over and return an endian'd stream according to its BOM. More... | |
Simple utility class to load NCLR palette files.
Both 4-bit and 8-bit palettes are supported, but both return a palette with 256 BGR entries.
|
static |
Definition at line 65 of file nclr.cpp.
References Common::StackException::add(), loadNCLR(), Aurora::NitroFile::open(), Common::ScopedPtrBase< T, Deallocator >::release(), and Common::ScopedPtrBase< T, Deallocator >::reset().
Referenced by Graphics::NCGR::load().
|
staticprivate |
Definition at line 81 of file nclr.cpp.
References readHeader(), and readPalette().
Referenced by load().
|
staticprivate |
Definition at line 87 of file nclr.cpp.
References Common::debugTag(), kNCLRID, Common::ReadStream::readByte(), Common::SeekableSubReadStreamEndian::readUint16(), Common::SeekableSubReadStreamEndian::readUint32(), and Common::SeekableSubReadStream::size().
Referenced by loadNCLR().
|
staticprivate |
Definition at line 114 of file nclr.cpp.
References Common::debugTag(), Common::ScopedPtrBase< T, Deallocator >::get(), kPLTTID, Common::SeekableSubReadStreamEndian::readUint16(), Common::SeekableSubReadStreamEndian::readUint32(), Common::ScopedPtrBase< T, Deallocator >::release(), Common::SeekableSubReadStream::seek(), and Common::SeekableReadStream::skip().
Referenced by loadNCLR().