00001 // Filename: xFileNormal.h 00002 // Created by: drose (19Jun01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef XFILENORMAL_H 00020 #define XFILENORMAL_H 00021 00022 #include "pandatoolbase.h" 00023 #include "luse.h" 00024 00025 class EggVertex; 00026 class EggPrimitive; 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Class : XFileNormal 00030 // Description : This represents a single normal associated with an 00031 // XFileFace. It is separate from XFileVertex, because 00032 // the X syntax supports a different table of normals 00033 // than that of vertices. 00034 //////////////////////////////////////////////////////////////////// 00035 class XFileNormal { 00036 public: 00037 XFileNormal(); 00038 void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_prim); 00039 int compare_to(const XFileNormal &other) const; 00040 00041 Normalf _normal; 00042 bool _has_normal; 00043 }; 00044 00045 #endif 00046