26 #ifndef AURORA_NSBTXFILE_H 27 #define AURORA_NSBTXFILE_H 165 #endif // AURORA_NSBTXFILE_H
Common::WriteStream * stream
static void writeITEXHeader(const ReadContext &ctx)
const ResourceList & getResources() const
Return the list of resources.
Common::ScopedPtr< Common::SeekableSubReadStreamEndian > _nsbtx
The name of the NSBTX file.
NSBTXFile(Common::SeekableReadStream *nsbtx)
Take over this stream and read an NSBTX file out of it.
This is a wrapper around SeekableSubReadStream, but it adds non-endian read methods whose endianness ...
3bit alpha + 5bit color index.
A class holding an UTF-8 string.
uint32 _textureInfoOffset
bool flipY
true: flip on every 2nd texture wrap.
void readPalettes(Common::SeekableSubReadStreamEndian &nsbtx)
Transform texture coordinates using TexCoords.
Common::SeekableReadStream * getResource(uint32 index, bool tryNoCopy=false) const
Return a stream of the resource's contents.
void load(Common::SeekableSubReadStreamEndian &nsbtx)
const Palette * findPalette(const Texture &texture) const
void readTextures(Common::SeekableSubReadStreamEndian &nsbtx)
bool alpha
true: color index 0 is transparent.
uint32 _paletteInfoOffset
void readHeader(Common::SeekableSubReadStreamEndian &nsbtx)
static void getTexture16bpp(const ReadContext &ctx)
Handling various archive files.
static void getTextureA3I5(const ReadContext &ctx)
A simple scoped smart pointer template.
static void getTexture4bpp(const ReadContext &ctx)
void readFileHeader(Common::SeekableSubReadStreamEndian &nsbtx)
void createResourceList()
bool wrapY
true: wrap, false: clamp.
uint32 _paletteDataOffset
std::list< Resource > ResourceList
std::vector< Palette > Palettes
Transform texture coordinates using Normals.
uint32 _textureDataOffset
Low-level type definitions to handle fixed width types portably.
ResourceList _resources
External list of resource names and types.
void getPalette(ReadContext &ctx) const
void readInfoHeader(Common::SeekableSubReadStreamEndian &nsbtx)
bool flipX
true: flip on every 2nd texture wrap.
Generic interface for a writable data stream.
static void getTexture2bpp(const ReadContext &ctx)
Transform texture coordinates using Vertices.
std::vector< Texture > Textures
uint32 getResourceSize(uint32 index) const
Return the size of a resource.
Common::SeekableSubReadStreamEndian * nsbtx
ReadContext(Common::SeekableSubReadStreamEndian &n, const Texture &t, Common::WriteStream &s)
Basic type definitions to handle files used in BioWare's Aurora engine.
No extra texture coordinate transform.
Common::ScopedArray< const byte > palette
static void getTexture(const ReadContext &ctx)
Base class for Nitro (Nintendo DS) files.
An abstract file archive.
32bit per 4x4 texel block (Unsupported).
static uint32 getITEXSize(const Texture &texture)
bool wrapX
true: wrap, false: clamp.
Interface for a seekable & readable data stream.
static void writePixel(const ReadContext &ctx, byte r, byte g, byte b, byte a)
static void getTexture8bpp(const ReadContext &ctx)
5bit alpha + 3bit color index.
static void getTextureA5I3(const ReadContext &ctx)