Panda3D
|
00001 // Filename: bamWriter.I 00002 // Created by: jason (08Jun00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: BamWriter::get_filename 00018 // Access: Published 00019 // Description: If a BAM is a file, then the BamWriter should 00020 // contain the name of the file. This enables the 00021 // writer to convert pathnames in the BAM to relative 00022 // to the directory containing the BAM. 00023 //////////////////////////////////////////////////////////////////// 00024 INLINE const Filename &BamWriter:: 00025 get_filename() const { 00026 return _filename; 00027 } 00028 00029 //////////////////////////////////////////////////////////////////// 00030 // Function: BamWriter::get_file_endian 00031 // Access: Published 00032 // Description: Returns the endian preference indicated by the Bam 00033 // file currently being written. This does not imply 00034 // that every number is stored using the indicated 00035 // convention, but individual objects may choose to 00036 // respect this flag when recording data. 00037 //////////////////////////////////////////////////////////////////// 00038 INLINE BamWriter::BamEndian BamWriter:: 00039 get_file_endian() const { 00040 return _file_endian; 00041 } 00042 00043 //////////////////////////////////////////////////////////////////// 00044 // Function: BamWriter::get_file_texture_mode 00045 // Access: Published 00046 // Description: Returns the BamTextureMode preference indicated by 00047 // the Bam file currently being written. Texture 00048 // objects written to this Bam file will be encoded 00049 // according to the specified mode. 00050 //////////////////////////////////////////////////////////////////// 00051 INLINE BamWriter::BamTextureMode BamWriter:: 00052 get_file_texture_mode() const { 00053 return _file_texture_mode; 00054 } 00055 00056 //////////////////////////////////////////////////////////////////// 00057 // Function: BamWriter::set_file_texture_mode 00058 // Access: Published 00059 // Description: Changes the BamTextureMode preference for 00060 // the Bam file currently being written. Texture 00061 // objects written to this Bam file will be encoded 00062 // according to the specified mode. 00063 //////////////////////////////////////////////////////////////////// 00064 INLINE void BamWriter:: 00065 set_file_texture_mode(BamTextureMode file_texture_mode) { 00066 _file_texture_mode = file_texture_mode; 00067 }