Panda3D
Loading...
Searching...
No Matches
xFileFace.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file xFileFace.h
10 * @author drose
11 * @date 2001-06-19
12 */
13
14#ifndef XFILEFACE_H
15#define XFILEFACE_H
16
17#include "pandatoolbase.h"
18#include "pvector.h"
19
20class XFileMesh;
21class EggPolygon;
22
23/**
24 * This represents a single face of an XFileMesh.
25 */
26class XFileFace {
27public:
28 XFileFace();
29 void set_from_egg(XFileMesh *mesh, EggPolygon *egg_poly);
30
31 class Vertex {
32 public:
33 int _vertex_index;
34 int _normal_index;
35 };
37 Vertices _vertices;
38
39 int _material_index;
40};
41
42#endif
A single polygon.
Definition eggPolygon.h:24
This represents a single face of an XFileMesh.
Definition xFileFace.h:26
void set_from_egg(XFileMesh *mesh, EggPolygon *egg_poly)
Sets the structure up from the indicated egg data.
Definition xFileFace.cxx:30
This is a collection of polygons; i.e.
Definition xFileMesh.h:45
This is our own Panda specialization on the default STL vector.
Definition pvector.h:42
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.