15 #ifndef DESTTEXTUREIMAGE_H
16 #define DESTTEXTUREIMAGE_H
18 #include "pandatoolbase.h"
20 #include "imageFile.h"
42 static int to_power_2(
int value);
58 static void init_type() {
59 ImageFile::init_type();
60 register_type(_type_handle,
"DestTextureImage",
61 ImageFile::get_class_type());
64 return get_class_type();
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
This represents a texture filename as it has been resized and copied to the map directory (e...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Base class for objects that can be written to and read from Bam files.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
void output_filename(ostream &out) const
Writes the filename (or pair of filenames) to the indicated output stream.
void copy_if_stale(const DestTextureImage *other, TextureImage *texture)
Copies the source texture into the appropriate filename only if the indicated old reference...
This is the base class of both TextureImage and PaletteImage.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This corresponds to a particular assignment of a TextureImage with a PaletteGroup, and specifically describes which PaletteImage (if any), and where on the PaletteImage, the TextureImage has been assigned to.
void copy(TextureImage *texture)
Unconditionally copies the source texture into the appropriate filename.
A class to retrieve the individual data elements previously stored in a Datagram. ...
This represents a single source texture that is referenced by one or more egg files.
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 ...
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.