This is a single matching line in the .txa file. More...
#include "txaLine.h"
Public Member Functions | |
bool | match_egg (EggFile *egg_file) const |
Compares the patterns on the line to the indicated EggFile. More... | |
bool | match_texture (TextureImage *texture) const |
Compares the patterns on the line to the indicated TextureImage. More... | |
void | output (std::ostream &out) const |
bool | parse (const std::string &line) |
Accepts a string that defines a line of the .txa file and parses it into its constinuent parts. More... | |
This is a single matching line in the .txa file.
It consists of a list of names (texture names or egg file names), followed by a colon and an optional size and a set of keywords.
bool TxaLine::match_egg | ( | EggFile * | egg_file | ) | const |
Compares the patterns on the line to the indicated EggFile.
If they match, updates the egg with the appropriate information. Returns true if a match is detected and the search for another line should stop, or false if a match is not detected (or if the keyword "cont" is present, which means the search should continue regardless).
Definition at line 330 of file txaLine.cxx.
bool TxaLine::match_texture | ( | TextureImage * | texture | ) | const |
Compares the patterns on the line to the indicated TextureImage.
If they match, updates the texture with the appropriate information. Returns true if a match is detected and the search for another line should stop, or false if a match is not detected (or if the keyword "cont" is present, which means the search should continue regardless).
Definition at line 388 of file txaLine.cxx.
bool TxaLine::parse | ( | const std::string & | line | ) |
Accepts a string that defines a line of the .txa file and parses it into its constinuent parts.
Returns true if successful, false on error.
Definition at line 59 of file txaLine.cxx.