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