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