00001 // Filename: xFileFace.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 XFILEFACE_H 00020 #define XFILEFACE_H 00021 00022 #include "pandatoolbase.h" 00023 #include "pvector.h" 00024 00025 class XFileMesh; 00026 class EggPolygon; 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Class : XFileFace 00030 // Description : This represents a single face of an XFileMesh. 00031 //////////////////////////////////////////////////////////////////// 00032 class XFileFace { 00033 public: 00034 XFileFace(); 00035 void set_from_egg(XFileMesh *mesh, EggPolygon *egg_poly); 00036 00037 class Vertex { 00038 public: 00039 int _vertex_index; 00040 int _normal_index; 00041 }; 00042 typedef pvector<Vertex> Vertices; 00043 Vertices _vertices; 00044 00045 int _material_index; 00046 }; 00047 00048 #endif 00049