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