00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "eggPoint.h"
00016
00017 #include "indent.h"
00018
00019 TypeHandle EggPoint::_type_handle;
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 bool EggPoint::
00032 cleanup() {
00033 remove_nonunique_verts();
00034 return !empty();
00035 }
00036
00037
00038
00039
00040
00041
00042
00043 void EggPoint::
00044 write(ostream &out, int indent_level) const {
00045 write_header(out, indent_level, "<PointLight>");
00046
00047 if (has_thick()) {
00048 indent(out, indent_level + 2)
00049 << "<Scalar> thick { " << get_thick() << " }\n";
00050 }
00051
00052 if (has_perspective()) {
00053 indent(out, indent_level + 2)
00054 << "<Scalar> perspective { " << get_perspective() << " }\n";
00055 }
00056
00057 write_body(out, indent_level + 2);
00058 indent(out, indent_level) << "}\n";
00059 }