Public Member Functions |
|
| PalettePage (PaletteGroup *group, const TextureProperties &properties) |
| void | assign (TexturePlacement *placement) |
| | Adds the indicated texture to the list of textures to consider placing on the page.
|
| virtual int | complete_pointers (TypedWritable **p_list, BamReader *manager) |
| | Called after the object is otherwise completely read from a Bam file, this function's job is to store the pointers that were retrieved from the Bam file for each pointer object written.
|
| PaletteGroup * | get_group () const |
| | Returns the group this particular PalettePage belongs to.
|
| const TextureProperties & | get_properties () const |
| | Returns the texture grouping properties that all textures in this page share.
|
|
virtual TypeHandle | get_type () const |
| void | optimal_resize () |
| | Attempts to resize each PalettteImage down to its smallest possible size.
|
| void | place (TexturePlacement *placement) |
| | Assigns the particular TexturePlacement to a PaletteImage where it fits.
|
| void | place_all () |
| | Assigns all the textures to their final home in a PaletteImage somewhere.
|
| void | reset_images () |
| | Throws away all of the current PaletteImages, so that new ones may be created (and the packing made more optimal).
|
| void | setup_shadow_images () |
| | Ensures that each PaletteImage's _shadow_image has the correct filename and image types, based on what was supplied on the command line and in the .txa file.
|
| void | unplace (TexturePlacement *placement) |
| | Removes the TexturePlacement from wherever it has been placed.
|
| void | update_images (bool redo_all) |
| | Regenerates each PaletteImage on this page that needs it.
|
| virtual void | write_datagram (BamWriter *writer, Datagram &datagram) |
| | Fills the indicated datagram up with a binary representation of the current object, in preparation for writing to a Bam file.
|
| void | write_image_info (ostream &out, int indent_level=0) const |
| | Writes a list of the PaletteImages associated with this page, and all of their textures, to the indicated output stream.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
| static void | register_with_read_factory () |
| | Registers the current object as something that can be read from a Bam file.
|
Protected Member Functions |
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | Reads the binary data from the given datagram iterator, which was written by a previous call to write_datagram().
|
Static Protected Member Functions |
| static TypedWritable * | make_PalettePage (const FactoryParams ¶ms) |
| | This method is called by the BamReader when an object of this type is encountered in a Bam file; it should allocate and return a new object with all the data read.
|
This is a particular collection of textures, within a PaletteGroup, that all share the same TextureProperties.
The textures on the same page may therefore all be placed on the same set of PaletteImages together.
Definition at line 37 of file palettePage.h.