Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/egg/eggMiscFuncs.h

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

Generated on Fri May 2 00:37:42 2003 for Panda by doxygen1.3