Go to the documentation of this file.
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();
A class to retrieve the individual data elements previously stored in a Datagram.
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...
void output_filename(std::ostream &out) const
Writes the filename (or pair of filenames) to the indicated output stream.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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,...
virtual void write_datagram(BamWriter *writer, Datagram &datagram)
Fills the indicated datagram up with a binary representation of the current object,...
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 ...
TypeHandle is the identifier used to differentiate C++ class types.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
void copy(TextureImage *texture)
Unconditionally copies the source texture into the appropriate filename.
This is the base class of both TextureImage and PaletteImage.
This corresponds to a particular assignment of a TextureImage with a PaletteGroup,...
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 represents a single source texture that is referenced by one or more egg files.