14 #ifndef DESTTEXTUREIMAGE_H 15 #define DESTTEXTUREIMAGE_H 39 static int to_power_2(
int value);
55 static void init_type() {
56 ImageFile::init_type();
58 ImageFile::get_class_type());
61 return get_class_type();
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
void output_filename(std::ostream &out) const
Writes the filename (or pair of filenames) to the indicated output stream.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
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,...
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,...