Revision 692,
1.2 KB
checked in by mattausch, 19 years ago
(diff) |
adding ogre 1.2 and dependencies
|
Line | |
---|
1 | #ifndef _LWLAYER_H_
|
---|
2 | #define _LWLAYER_H_
|
---|
3 |
|
---|
4 | #include "lwo.h"
|
---|
5 | #include "lwPolygon.h"
|
---|
6 |
|
---|
7 | class lwLayer {
|
---|
8 | public:
|
---|
9 | lwLayer()
|
---|
10 | {
|
---|
11 | name = 0;
|
---|
12 | pointsoffset = 0;
|
---|
13 | polygonsoffset = 0;
|
---|
14 | }
|
---|
15 |
|
---|
16 | ~lwLayer()
|
---|
17 | {
|
---|
18 | if (name) free(name);
|
---|
19 | unsigned int i;
|
---|
20 | for (i=0; i < points.size(); delete points[i++]);
|
---|
21 | for (i=0; i < polygons.size(); delete polygons[i++]);
|
---|
22 | for (i=0; i < vmaps.size(); delete vmaps[i++]);
|
---|
23 | }
|
---|
24 |
|
---|
25 | void lwResolveVertexPoints(void);
|
---|
26 | void lwGetPointPolygons(void);
|
---|
27 | void calculatePolygonNormals(void);
|
---|
28 | void triangulatePolygons(void);
|
---|
29 | void lwGetPointVMaps(void);
|
---|
30 | void lwGetPolyVMaps(void);
|
---|
31 | void lwGetBoundingBox(void);
|
---|
32 | void calculateVertexNormals(void);
|
---|
33 | int lwResolvePolySurfaces( vsurfaces &surfaces, vtags &tags );
|
---|
34 |
|
---|
35 | char *name;
|
---|
36 | int index;
|
---|
37 | int parent;
|
---|
38 | int flags;
|
---|
39 | Point3 pivot;
|
---|
40 | Point3 bboxmin;
|
---|
41 | Point3 bboxmax;
|
---|
42 | int pointsoffset; /* only used during reading */
|
---|
43 | vpoints points; /* array of points */
|
---|
44 | int polygonsoffset; /* only used during reading */
|
---|
45 | vpolygons polygons; /* array of polygons */
|
---|
46 | vvmaps vmaps; /* linked list of vmaps */
|
---|
47 | };
|
---|
48 |
|
---|
49 | typedef vector<lwLayer*> vlayers;
|
---|
50 |
|
---|
51 | #endif // _LWLAYER_H_
|
---|
52 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.