52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
/**
|
|
* PANDA 3D SOFTWARE
|
|
* Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
*
|
|
* All use of this software is subject to the terms of the revised BSD
|
|
* license. You should have received a copy of this license along
|
|
* with this source code in a file named "LICENSE."
|
|
*
|
|
* @file eggMiscFuncs.h
|
|
* @author drose
|
|
* @date 1999-01-16
|
|
*/
|
|
|
|
#ifndef EGGMISCFUNCS_H
|
|
#define EGGMISCFUNCS_H
|
|
|
|
// eggMiscFuncs.h This contains the prototypes for functions that are useful
|
|
// to internal egg code. Also see eggUtilities.h, which contains functions
|
|
// that may be useful to the rest of the world.
|
|
|
|
#include "pandabase.h"
|
|
#include "lmatrix.h"
|
|
|
|
|
|
/**
|
|
* Writes the string to the indicated output stream. If the string contains
|
|
* any characters special to egg, writes quotation marks around it. If
|
|
* always_quote is true, writes quotation marks regardless.
|
|
*/
|
|
std::ostream &
|
|
enquote_string(std::ostream &out, const std::string &str,
|
|
int indent_level = 0,
|
|
bool always_quote = false);
|
|
|
|
|
|
|
|
/**
|
|
* A helper function to write out a 3x3 transform matrix.
|
|
*/
|
|
void
|
|
write_transform(std::ostream &out, const LMatrix3d &mat, int indent_level);
|
|
|
|
/**
|
|
* A helper function to write out a 4x4 transform matrix.
|
|
*/
|
|
void
|
|
write_transform(std::ostream &out, const LMatrix4d &mat, int indent_level);
|
|
|
|
|
|
#include "eggMiscFuncs.I"
|
|
|
|
#endif
|