00001 // Filename: bam.h 00002 // Created by: jason (27Jun00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 // This file just holds the Magic Number, Major and Minor version 00020 // numbers that are common to both BamWriter and BamReader. 00021 00022 #ifndef _BAM_H 00023 #define _BAM_H 00024 00025 #include "pandabase.h" 00026 00027 // The magic number for a BAM file. It includes a carriage return and 00028 // newline character to help detect files damaged due to faulty 00029 // ASCII/Binary conversion. 00030 static const string _bam_header = string("pbj\0\n\r", 6); 00031 00032 static const unsigned short _bam_major_ver = 4; 00033 // Bumped to major version 2 on 7/6/00 due to major changes in Character. 00034 // Bumped to major version 3 on 12/8/00 to change float64's to float32's. 00035 // Bumped to major version 4 on 4/10/02 to store new scene graph. 00036 00037 static const unsigned short _bam_minor_ver = 3; 00038 // Bumped to minor version 1 on 4/10/03 to add CullFaceAttrib::reverse. 00039 // Bumped to minor version 2 on 4/12/03 to add num_components to texture. 00040 // Bumped to minor version 3 on 4/15/03 to add ImageBuffer::_alpha_file_channel. 00041 00042 00043 #endif