Panda3D
 All Classes Functions Variables Enumerations
eggMiscFuncs.h
00001 // Filename: eggMiscFuncs.h
00002 // Created by:  drose (16Jan99)
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 #ifndef EGGMISCFUNCS_H
00016 #define EGGMISCFUNCS_H
00017 
00018 ////////////////////////////////////////////////////////////////////
00019 //
00020 // eggMiscFuncs.h
00021 //
00022 // This contains the prototypes for functions that are useful to
00023 // internal egg code.  Also see eggUtilities.h, which contains
00024 // functions that may be useful to the rest of the world.
00025 //
00026 ////////////////////////////////////////////////////////////////////
00027 
00028 #include "pandabase.h"
00029 #include "lmatrix.h"
00030 
00031 
00032 ////////////////////////////////////////////////////////////////////
00033 //     Function: enquote_string
00034 //  Description: Writes the string to the indicated output stream.  If
00035 //               the string contains any characters special to egg,
00036 //               writes quotation marks around it.  If always_quote is
00037 //               true, writes quotation marks regardless.
00038 ////////////////////////////////////////////////////////////////////
00039 ostream &
00040 enquote_string(ostream &out, const string &str,
00041                int indent_level = 0,
00042                bool always_quote = false);
00043 
00044 
00045 
00046 ////////////////////////////////////////////////////////////////////
00047 //     Function: write_transform
00048 //  Description: A helper function to write out a 3x3 transform
00049 //               matrix.
00050 ////////////////////////////////////////////////////////////////////
00051 void
00052 write_transform(ostream &out, const LMatrix3d &mat, int indent_level);
00053 
00054 ////////////////////////////////////////////////////////////////////
00055 //     Function: write_transform
00056 //  Description: A helper function to write out a 4x4 transform
00057 //               matrix.
00058 ////////////////////////////////////////////////////////////////////
00059 void
00060 write_transform(ostream &out, const LMatrix4d &mat, int indent_level);
00061 
00062 
00063 #include "eggMiscFuncs.I"
00064 
00065 #endif
00066 
 All Classes Functions Variables Enumerations