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();
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 ...
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
This represents a texture filename as it has been resized and copied to the map directory (e....
void copy(TextureImage *texture)
Unconditionally copies the source texture into the appropriate filename.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
virtual void write_datagram(BamWriter *writer, Datagram &datagram)
Fills the indicated datagram up with a binary representation of the current object,...
void copy_if_stale(const DestTextureImage *other, TextureImage *texture)
Copies the source texture into the appropriate filename only if the indicated old reference,...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This is the base class of both TextureImage and PaletteImage.
void output_filename(std::ostream &out) const
Writes the filename (or pair of filenames) to the indicated output stream.
This represents a single source texture that is referenced by one or more egg files.
This corresponds to a particular assignment of a TextureImage with a PaletteGroup,...
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
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(),...