MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / ScriptModelSurface

Class ScriptModelSurface

plugins/script/interfaces/ModelInterface.h:16–30  ·  view source on GitHub ↗

Wrapper around a IModelSurface reference

Source from the content-addressed store, hash-verified

14
15// Wrapper around a IModelSurface reference
16class ScriptModelSurface
17{
18 const model::IModelSurface& _surface;
19public:
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
32class ScriptModelNode :
33 public ScriptSceneNode

Callers 1

getSurfaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected