Panda3D
pandatool
src
xfileegg
xFileFace.h
1
// Filename: xFileFace.h
2
// Created by: drose (19Jun01)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef XFILEFACE_H
16
#define XFILEFACE_H
17
18
#include "pandatoolbase.h"
19
#include "pvector.h"
20
21
class
XFileMesh
;
22
class
EggPolygon
;
23
24
////////////////////////////////////////////////////////////////////
25
// Class : XFileFace
26
// Description : This represents a single face of an XFileMesh.
27
////////////////////////////////////////////////////////////////////
28
class
XFileFace
{
29
public
:
30
XFileFace
();
31
void
set_from_egg
(
XFileMesh
*mesh,
EggPolygon
*egg_poly);
32
33
class
Vertex
{
34
public
:
35
int
_vertex_index;
36
int
_normal_index;
37
};
38
typedef
pvector<Vertex>
Vertices
;
39
Vertices _vertices;
40
41
int
_material_index;
42
};
43
44
#endif
45
XFileFace::Vertex
Definition:
xFileFace.h:33
XFileMesh
This is a collection of polygons; i.e.
Definition:
xFileMesh.h:45
pvector< Vertex >
XFileFace::set_from_egg
void set_from_egg(XFileMesh *mesh, EggPolygon *egg_poly)
Sets the structure up from the indicated egg data.
Definition:
xFileFace.cxx:35
EggPolygon
A single polygon.
Definition:
eggPolygon.h:26
XFileFace
This represents a single face of an XFileMesh.
Definition:
xFileFace.h:28
Generated on Wed May 17 2017 23:49:21 for Panda3D by
1.8.13