remove old fields since bam version # bumped up

This commit is contained in:
cxgeorge 2001-12-11 22:11:20 +00:00
parent a146f98569
commit 9d721e6dd5

View File

@ -609,12 +609,12 @@ fillin(DatagramIterator &scan, BamReader *manager) {
//Texture to know how the parent write_datagram works. And
//makes the assumption that the only data being written is
//the name
scan.get_uint32(); // For historical purposes
// scan.get_uint32(); // For historical purposes
_wrapu = (enum WrapMode) scan.get_uint8();
_wrapv = (enum WrapMode) scan.get_uint8();
_minfilter = (enum FilterType) scan.get_uint8();
_magfilter = (enum FilterType) scan.get_uint8();
scan.get_uint16(); // placeholder for obsolete settings, remove this when you feel like bumping bam version number
// scan.get_uint16(); // placeholder for obsolete settings, remove this when you feel like bumping bam version number
_anisotropic_degree = scan.get_int16();
if (scan.get_remaining_size() > 0) {
@ -646,12 +646,12 @@ fillin(DatagramIterator &scan, BamReader *manager) {
void Texture::
write_datagram(BamWriter *manager, Datagram &me) {
ImageBuffer::write_datagram(manager, me);
me.add_uint32(0); // For historical purposes
// me.add_uint32(0); // For historical purposes
me.add_uint8(_wrapu);
me.add_uint8(_wrapv);
me.add_uint8(_minfilter);
me.add_uint8(_magfilter);
me.add_int16(0); // placeholder for obsolete settings, remove this when you feel like bumping bam version number
// me.add_int16(0); // placeholder for obsolete settings, remove this when you feel like bumping bam version number
me.add_int16(_anisotropic_degree);
// We also need to write out the pixel buffer's format, even though