Panda3D
Public Member Functions

TxaFile Class Reference

This represents the .txa file (usually textures.txa) that contains the user instructions for resizing, grouping, etc. More...

#include "txaFile.h"

List of all members.

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.
bool match_texture (TextureImage *texture) const
 Searches for a matching line in the .txa file for the given texture and applies its specifications.
bool read (istream &in, const string &filename)
 Reads the indicated stream, and returns true if successful, or false if there is an error.
void write (ostream &out) const
 Outputs a representation of the lines that were read in to the indicated output stream.

Detailed Description

This represents the .txa file (usually textures.txa) that contains the user instructions for resizing, grouping, etc.

the various textures.

Definition at line 33 of file txaFile.h.


Member Function Documentation

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 137 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 158 of file txaFile.cxx.

Referenced by Palettizer::process_all(), Palettizer::process_command_line_eggs(), and PaletteGroup::update_unknown_textures().

bool TxaFile::read ( istream &  in,
const string &  filename 
)

Reads the indicated stream, and returns true if successful, or false if there is an error.

Definition at line 40 of file txaFile.cxx.

References TxaLine::parse().

Referenced by Palettizer::read_txa_file().

void TxaFile::write ( 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 177 of file txaFile.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations