mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
*** empty log message ***
This commit is contained in:
parent
0c1635d32c
commit
4a99983517
@ -102,7 +102,14 @@ Palettizer() {
|
||||
// perusal.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void Palettizer::
|
||||
report_pi() const {
|
||||
report_pi() const {
|
||||
// Start out with the cross links and back counts; some of these are
|
||||
// nice to report.
|
||||
EggFiles::const_iterator efi;
|
||||
for (efi = _egg_files.begin(); efi != _egg_files.end(); ++efi) {
|
||||
(*efi).second->build_cross_links();
|
||||
}
|
||||
|
||||
cout
|
||||
<< "\nparams\n"
|
||||
<< " map directory: " << _map_dirname << "\n"
|
||||
@ -369,7 +376,11 @@ process_command_line_eggs(bool force_texture_read) {
|
||||
TextureImage *texture = *ti;
|
||||
|
||||
if (force_texture_read) {
|
||||
// If we're forcing a redo, re-read the complete image.
|
||||
texture->read_source_image();
|
||||
} else {
|
||||
// Otherwise, just the header is sufficient.
|
||||
texture->read_header();
|
||||
}
|
||||
|
||||
texture->pre_txa_file();
|
||||
|
@ -579,6 +579,23 @@ read_source_image() {
|
||||
return _source_image;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: TextureImage::read_header
|
||||
// Access: Public
|
||||
// Description: Causes the header part of the image to be reread,
|
||||
// usually to confirm that its image properties (size,
|
||||
// number of channels, etc.) haven't changed.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void TextureImage::
|
||||
read_header() {
|
||||
if (!_read_source_image) {
|
||||
SourceTextureImage *source = get_preferred_source();
|
||||
if (source != (SourceTextureImage *)NULL) {
|
||||
source->read_header();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: TextureImage::write_source_pathnames
|
||||
// Access: Public
|
||||
@ -592,20 +609,22 @@ write_source_pathnames(ostream &out, int indent_level) const {
|
||||
for (si = _sources.begin(); si != _sources.end(); ++si) {
|
||||
SourceTextureImage *source = (*si).second;
|
||||
|
||||
indent(out, indent_level);
|
||||
source->output_filename(out);
|
||||
if (!source->is_size_known()) {
|
||||
out << " (unknown size)";
|
||||
|
||||
} else {
|
||||
out << " " << source->get_x_size() << " "
|
||||
<< source->get_y_size();
|
||||
|
||||
if (source->get_properties().has_num_channels()) {
|
||||
out << " " << source->get_properties().get_num_channels();
|
||||
if (source->get_egg_count() > 0) {
|
||||
indent(out, indent_level);
|
||||
source->output_filename(out);
|
||||
if (!source->is_size_known()) {
|
||||
out << " (unknown size)";
|
||||
|
||||
} else {
|
||||
out << " " << source->get_x_size() << " "
|
||||
<< source->get_y_size();
|
||||
|
||||
if (source->get_properties().has_num_channels()) {
|
||||
out << " " << source->get_properties().get_num_channels();
|
||||
}
|
||||
}
|
||||
out << "\n";
|
||||
}
|
||||
out << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -66,6 +66,7 @@ public:
|
||||
void copy_unplaced(bool redo_all);
|
||||
|
||||
const PNMImage &read_source_image();
|
||||
void read_header();
|
||||
|
||||
void write_source_pathnames(ostream &out, int indent_level = 0) const;
|
||||
void write_scale_info(ostream &out, int indent_level = 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user