Panda3D
Loading...
Searching...
No Matches
xFileNormal.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 xFileNormal.h
10 * @author drose
11 * @date 2001-06-19
12 */
13
14#ifndef XFILENORMAL_H
15#define XFILENORMAL_H
16
17#include "pandatoolbase.h"
18#include "luse.h"
19
20class EggVertex;
21class EggPrimitive;
22
23/**
24 * This represents a single normal associated with an XFileFace. It is
25 * separate from XFileVertex, because the X syntax supports a different table
26 * of normals than that of vertices.
27 */
29public:
31 void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_prim);
32 int compare_to(const XFileNormal &other) const;
33
34 LNormald _normal;
35 bool _has_normal;
36};
37
38#endif
A base class for any of a number of kinds of geometry primitives: polygons, point lights,...
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal.
Definition eggVertex.h:39
This represents a single normal associated with an XFileFace.
Definition xFileNormal.h:28
void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_prim)
Sets the structure up from the indicated egg data.
An STL function object class, this is intended to be used on any ordered collection of class objects ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.