Wrapper around a IModelSurface reference
| 14 | |
| 15 | // Wrapper around a IModelSurface reference |
| 16 | class ScriptModelSurface |
| 17 | { |
| 18 | const model::IModelSurface& _surface; |
| 19 | public: |
| 20 | ScriptModelSurface(const model::IModelSurface& surface) : |
| 21 | _surface(surface) |
| 22 | {} |
| 23 | |
| 24 | int getNumVertices() const; |
| 25 | int getNumTriangles() const; |
| 26 | const MeshVertex& getVertex(int vertexIndex) const; |
| 27 | model::ModelPolygon getPolygon(int polygonIndex) const; |
| 28 | std::string getDefaultMaterial() const; |
| 29 | std::string getActiveMaterial() const; |
| 30 | }; |
| 31 | |
| 32 | class ScriptModelNode : |
| 33 | public ScriptSceneNode |