00001 // Filename: xFileNormal.h 00002 // Created by: drose (19Jun01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef XFILENORMAL_H 00016 #define XFILENORMAL_H 00017 00018 #include "pandatoolbase.h" 00019 #include "luse.h" 00020 00021 class EggVertex; 00022 class EggPrimitive; 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Class : XFileNormal 00026 // Description : This represents a single normal associated with an 00027 // XFileFace. It is separate from XFileVertex, because 00028 // the X syntax supports a different table of normals 00029 // than that of vertices. 00030 //////////////////////////////////////////////////////////////////// 00031 class XFileNormal { 00032 public: 00033 XFileNormal(); 00034 void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_prim); 00035 int compare_to(const XFileNormal &other) const; 00036 00037 LNormald _normal; 00038 bool _has_normal; 00039 }; 00040 00041 #endif 00042