Revision 692,
822 bytes
checked in by mattausch, 19 years ago
(diff) |
adding ogre 1.2 and dependencies
|
Line | |
---|
1 | #ifndef _MESH_H
|
---|
2 | #define _MESH_H
|
---|
3 |
|
---|
4 | #include "submesh.h"
|
---|
5 | #include "skeleton.h"
|
---|
6 | #include "mayaExportLayer.h"
|
---|
7 |
|
---|
8 | namespace OgreMayaExporter
|
---|
9 | {
|
---|
10 | /***** Class Mesh *****/
|
---|
11 | class Mesh
|
---|
12 | {
|
---|
13 | public:
|
---|
14 | //constructor
|
---|
15 | Mesh(const MString& name = "");
|
---|
16 | //destructor
|
---|
17 | ~Mesh();
|
---|
18 | //clear data
|
---|
19 | void clear();
|
---|
20 | //get pointer to linked skeleton
|
---|
21 | Skeleton* getSkeleton();
|
---|
22 | //load mesh data from a maya Fn
|
---|
23 | MStatus load(MDagPath& meshDag,ParamList ¶ms);
|
---|
24 | //write mesh data to maya XML
|
---|
25 | MStatus writeXML(ParamList ¶ms);
|
---|
26 |
|
---|
27 | protected:
|
---|
28 | //internal members
|
---|
29 | MString m_name;
|
---|
30 | long m_numTriangles;
|
---|
31 | std::vector<vertex> m_vertices;
|
---|
32 | std::vector<uvset> m_uvsets;
|
---|
33 | std::vector<Submesh*> m_submeshes;
|
---|
34 | MFnSkinCluster* m_pSkinCluster;
|
---|
35 | Skeleton* m_pSkeleton;
|
---|
36 | };
|
---|
37 |
|
---|
38 | }; // end of namespace
|
---|
39 |
|
---|
40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.