*** empty log message ***

This commit is contained in:
David Rose 2000-12-11 17:39:10 +00:00
parent 2d3a54843f
commit 53dede140d
6 changed files with 30 additions and 3 deletions

View File

@ -275,13 +275,16 @@ build_cross_links() {
Textures::const_iterator ti; Textures::const_iterator ti;
for (ti = _textures.begin(); ti != _textures.end(); ++ti) { for (ti = _textures.begin(); ti != _textures.end(); ++ti) {
(*ti)->get_texture()->note_egg_file(this); TextureReference *reference = (*ti);
TextureImage *texture = reference->get_texture();
nassertv(texture != (TextureImage *)NULL);
texture->note_egg_file(this);
// Actually, this may count the same egg file multiple times for a // Actually, this may count the same egg file multiple times for a
// particular SourceTextureImage, since a given texture may be // particular SourceTextureImage, since a given texture may be
// reference multiples times within an egg file. No harm done, // reference multiples times within an egg file. No harm done,
// however. // however.
(*ti)->get_source()->increment_egg_count(); reference->get_source()->increment_egg_count();
} }
PaletteGroups::const_iterator gi; PaletteGroups::const_iterator gi;

View File

@ -156,6 +156,7 @@ fully_define() {
if (!_got_num_channels) { if (!_got_num_channels) {
switch (_format) { switch (_format) {
case EggTexture::F_rgba: case EggTexture::F_rgba:
case EggTexture::F_rgbm:
case EggTexture::F_rgba12: case EggTexture::F_rgba12:
case EggTexture::F_rgba8: case EggTexture::F_rgba8:
case EggTexture::F_rgba4: case EggTexture::F_rgba4:
@ -239,6 +240,7 @@ fully_define() {
case 4: case 4:
switch (_format) { switch (_format) {
case EggTexture::F_rgba: case EggTexture::F_rgba:
case EggTexture::F_rgbm:
case EggTexture::F_rgba12: case EggTexture::F_rgba12:
case EggTexture::F_rgba8: case EggTexture::F_rgba8:
case EggTexture::F_rgba4: case EggTexture::F_rgba4:
@ -358,6 +360,9 @@ get_format_string(EggTexture::Format format) {
case EggTexture::F_rgba: case EggTexture::F_rgba:
return "a"; return "a";
case EggTexture::F_rgbm:
return "m";
case EggTexture::F_rgba12: case EggTexture::F_rgba12:
return "a12"; return "a12";
@ -472,6 +477,7 @@ union_format(EggTexture::Format a, EggTexture::Format b) {
case EggTexture::F_rgba: case EggTexture::F_rgba:
switch (b) { switch (b) {
case EggTexture::F_rgbm:
case EggTexture::F_rgba12: case EggTexture::F_rgba12:
case EggTexture::F_rgba8: case EggTexture::F_rgba8:
case EggTexture::F_rgba4: case EggTexture::F_rgba4:

View File

@ -146,6 +146,7 @@ get_source() const {
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
TextureImage *TextureReference:: TextureImage *TextureReference::
get_texture() const { get_texture() const {
nassertr(_source_texture != (SourceTextureImage *)NULL, (TextureImage *)NULL);
return _source_texture->get_texture(); return _source_texture->get_texture();
} }

View File

@ -52,7 +52,12 @@ mark_dead() {
_is_dead = true; _is_dead = true;
setup_white_gc(); setup_white_gc();
if (!first_data()) {
force_redraw(); force_redraw();
} else {
clear_region();
}
} }
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////

View File

@ -105,6 +105,17 @@ update() {
idle(); idle();
} }
////////////////////////////////////////////////////////////////////
// Function: PStatStripChart::first_data
// Access: Public
// Description: Returns true if the chart has seen its first data
// appear on it, false if it is still a virgin chart.
////////////////////////////////////////////////////////////////////
bool PStatStripChart::
first_data() const {
return _first_data;
}
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Function: PStatStripChart::get_collector_under_pixel // Function: PStatStripChart::get_collector_under_pixel
// Access: Public // Access: Public

View File

@ -39,6 +39,7 @@ public:
void new_data(int frame_number); void new_data(int frame_number);
void update(); void update();
bool first_data() const;
INLINE PStatView &get_view() const; INLINE PStatView &get_view() const;
INLINE int get_collector_index() const; INLINE int get_collector_index() const;