Panda3D
eggMiscFuncs.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file eggMiscFuncs.h
10  * @author drose
11  * @date 1999-01-16
12  */
13 
14 #ifndef EGGMISCFUNCS_H
15 #define EGGMISCFUNCS_H
16 
17 // eggMiscFuncs.h This contains the prototypes for functions that are useful
18 // to internal egg code. Also see eggUtilities.h, which contains functions
19 // that may be useful to the rest of the world.
20 
21 #include "pandabase.h"
22 #include "lmatrix.h"
23 
24 
25 /**
26  * Writes the string to the indicated output stream. If the string contains
27  * any characters special to egg, writes quotation marks around it. If
28  * always_quote is true, writes quotation marks regardless.
29  */
30 std::ostream &
31 enquote_string(std::ostream &out, const std::string &str,
32  int indent_level = 0,
33  bool always_quote = false);
34 
35 
36 
37 /**
38  * A helper function to write out a 3x3 transform matrix.
39  */
40 void
41 write_transform(std::ostream &out, const LMatrix3d &mat, int indent_level);
42 
43 /**
44  * A helper function to write out a 4x4 transform matrix.
45  */
46 void
47 write_transform(std::ostream &out, const LMatrix4d &mat, int indent_level);
48 
49 
50 #include "eggMiscFuncs.I"
51 
52 #endif
std::ostream & enquote_string(std::ostream &out, const std::string &str, int indent_level=0, bool always_quote=false)
Writes the string to the indicated output stream.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void write_transform(std::ostream &out, const LMatrix3d &mat, int indent_level)
A helper function to write out a 3x3 transform matrix.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.