Go to the documentation of this file.
84 static void init_type() {
85 TypedWritable::init_type();
88 TypedWritable::get_class_type(),
89 Namable::get_class_type());
92 return get_class_type();
const TextureProperties & get_properties() const
Returns the texture grouping properties that all textures in this page share.
This is a single palette image, one of several within a PalettePage, which is in turn one of several ...
This is the highest level of grouping for TextureImages.
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...
A class to retrieve the individual data elements previously stored in a Datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
void setup_shadow_images()
Ensures that each PaletteImage's _shadow_image has the correct filename and image types,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void place_all()
Assigns all the textures to their final home in a PaletteImage somewhere.
Base class for objects that can be written to and read from Bam files.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
void place(TexturePlacement *placement)
Assigns the particular TexturePlacement to a PaletteImage where it fits.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
TypeHandle is the identifier used to differentiate C++ class types.
void optimal_resize()
Attempts to resize each PalettteImage down to its smallest possible size.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
void update_images(bool redo_all)
Regenerates each PaletteImage on this page that needs it.
void unplace(TexturePlacement *placement)
Removes the TexturePlacement from wherever it has been placed.
void reset_images()
Throws away all of the current PaletteImages, so that new ones may be created (and the packing made m...
PaletteGroup * get_group() const
Returns the group this particular PalettePage belongs to.
This is a particular collection of textures, within a PaletteGroup, that all share the same TexturePr...
void assign(TexturePlacement *placement)
Adds the indicated texture to the list of textures to consider placing on the page.
This is the set of characteristics of a texture that, if different from another texture,...
virtual void write_datagram(BamWriter *writer, Datagram &datagram)
Fills the indicated datagram up with a binary representation of the current object,...
This corresponds to a particular assignment of a TextureImage with a PaletteGroup,...
A base class for all things which can have a name.
void write_image_info(std::ostream &out, int indent_level=0) const
Writes a list of the PaletteImages associated with this page, and all of their textures,...