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