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