00001 // Filename: xFileVertex.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 XFILEVERTEX_H 00016 #define XFILEVERTEX_H 00017 00018 #include "pandatoolbase.h" 00019 #include "luse.h" 00020 00021 class EggVertex; 00022 class EggPrimitive; 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Class : XFileVertex 00026 // Description : This represents a single vertex associated with an 00027 // XFileFace. 00028 //////////////////////////////////////////////////////////////////// 00029 class XFileVertex { 00030 public: 00031 XFileVertex(); 00032 void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_poly); 00033 int compare_to(const XFileVertex &other) const; 00034 00035 LVertexd _point; 00036 LTexCoordd _uv; 00037 LColor _color; 00038 bool _has_color; 00039 bool _has_uv; 00040 }; 00041 00042 #endif 00043