open_toontown_panda3d/panda/src/egg/eggCoordinateSystem.cxx

45 lines
1.1 KiB
C++

// Filename: eggCoordinateSystem.cxx
// Created by: drose (20Jan99)
//
////////////////////////////////////////////////////////////////////
#include "eggCoordinateSystem.h"
#include <indent.h>
TypeHandle EggCoordinateSystem::_type_handle;
////////////////////////////////////////////////////////////////////
// Function: EggCoordinateSystem::write
// Access: Public, Virtual
// Description: Writes the coordinate system definition to the
// indicated output stream in Egg format.
////////////////////////////////////////////////////////////////////
void EggCoordinateSystem::
write(ostream &out, int indent_level) const {
if (get_value() != CS_default &&
get_value() != CS_invalid) {
indent(out, indent_level)
<< "<CoordinateSystem> { ";
switch (get_value()) {
case CS_zup_right:
out << "Z-Up";
break;
case CS_yup_right:
out << "Y-Up";
break;
case CS_zup_left:
out << "Z-Up-Left";
break;
case CS_yup_left:
out << "Y-Up-Left";
break;
}
out << " }\n\n";
}
}