source: GTP/trunk/Lib/Geom/GTGeometry/include/GeoSubMesh.h @ 774

Revision 774, 1.3 KB checked in by gumbau, 18 years ago (diff)

GTGeometry and GeoTool? initial imports

Line 
1#ifndef __GEO_SUBMESH__
2#define __GEO_SUBMESH__
3
4#include <vector>
5#include <ostream>
6
7#include "GeoBase.h"
8#include "GeoVertexBuffer.h"
9#include "GeoSerializable.h"
10
11namespace Geometry {
12
13        /// SubMesh interface
14        /** SubMesh is part of a Mesh, and stores vertex and index geometric information. */
15        class SubMesh : public Serializable
16        {
17        public:
18                /// Default constructor
19                SubMesh();
20
21                /// Default destructor
22                ~SubMesh();
23
24                /// Copy constructor
25                //SubMesh(const SubMesh&);
26
27                /// Assignment operator
28                //SubMesh& operator =(const SubMesh&);
29
30                /// Loads data from a Serializer
31                void Load(Serializer &s);
32
33                /// Saves data to a Serializer
34                void Save(Serializer &s);
35
36                /// VertexBuffer used to store vertex Data. Is a reference to a shared VertexData if
37                /// mSharedVertexBuffer == true, and must be not deallocated in that case.
38                VertexBuffer *mVertexBuffer;
39
40                bool mSharedVertexBuffer; ///< true if VertexBuffer it's shared with Mesh and other SubMeshes
41
42                Index  *mIndex;     ///< Array of Index
43                size_t mIndexCount; ///< Index count
44               
45                Index  **mStrip;    ///< Array of pointers to mIndex that represents each strip
46                size_t mStripCount; ///< number of Strips
47
48                //OSCAR
49                std::vector <VertexBoneAssignment> mBones;
50        };
51}
52
53#endif
Note: See TracBrowser for help on using the repository browser.