This represents the .txa file (usually textures.txa) that contains the user instructions for resizing, grouping, etc. More...
#include "txaFile.h"
Public Member Functions | |
bool | match_egg (EggFile *egg_file) const |
Searches for a matching line in the .txa file for the given egg file and applies its specifications. More... | |
bool | match_texture (TextureImage *texture) const |
Searches for a matching line in the .txa file for the given texture and applies its specifications. More... | |
bool | read (std::istream &in, const std::string &filename) |
Reads the indicated stream, and returns true if successful, or false if there is an error. More... | |
void | write (std::ostream &out) const |
Outputs a representation of the lines that were read in to the indicated output stream. More... | |
This represents the .txa file (usually textures.txa) that contains the user instructions for resizing, grouping, etc.
the various textures.
bool TxaFile::match_egg | ( | EggFile * | egg_file | ) | const |
Searches for a matching line in the .txa file for the given egg file and applies its specifications.
If a match is found, returns true; otherwise, returns false. Also returns false if all the matching lines for the egg file include the keyword "cont".
Definition at line 131 of file txaFile.cxx.
Referenced by Palettizer::process_all(), and Palettizer::process_command_line_eggs().
bool TxaFile::match_texture | ( | TextureImage * | texture | ) | const |
Searches for a matching line in the .txa file for the given texture and applies its specifications.
If a match is found, returns true; otherwise, returns false. Also returns false if all the matching lines for the texture include the keyword "cont".
Definition at line 149 of file txaFile.cxx.
Referenced by Palettizer::process_all(), Palettizer::process_command_line_eggs(), PT(), and PaletteGroup::update_unknown_textures().
bool TxaFile::read | ( | std::istream & | in, |
const std::string & | filename | ||
) |
Reads the indicated stream, and returns true if successful, or false if there is an error.
Definition at line 37 of file txaFile.cxx.
Referenced by Palettizer::read_txa_file().
void TxaFile::write | ( | std::ostream & | out | ) | const |
Outputs a representation of the lines that were read in to the indicated output stream.
This is primarily useful for debugging.
Definition at line 165 of file txaFile.cxx.