| 1234567891011121314151617181920212223242526272829303132333435363738 |
- $#include "Model.h"
- class Model : public Resource
- {
- // SharedPtr<Model> Clone(const String cloneName = String::EMPTY) const;
- tolua_outside Model* ModelClone @ Clone(const String cloneName = String::EMPTY) const;
- const BoundingBox& GetBoundingBox() const;
- Skeleton& GetSkeleton();
- unsigned GetNumGeometries() const;
- unsigned GetNumGeometryLodLevels(unsigned index) const;
- Geometry* GetGeometry(unsigned index, unsigned lodLevel) const;
- unsigned GetNumMorphs() const;
- const ModelMorph* GetMorph(const String name) const;
- const ModelMorph* GetMorph(StringHash nameHash) const;
- const ModelMorph* GetMorph(unsigned index) const;
- unsigned GetMorphRangeStart(unsigned bufferIndex) const;
- unsigned GetMorphRangeCount(unsigned bufferIndex) const;
- tolua_readonly tolua_property__get_set BoundingBox& boundingBox;
- tolua_readonly tolua_property__get_set Skeleton skeleton;
- tolua_readonly tolua_property__get_set unsigned numGeometries;
- tolua_readonly tolua_property__get_set unsigned numMorphs;
- };
- ${
- static Model* ModelClone(const Model* model, const String& cloneName = String::EMPTY)
- {
- if (!model)
- return 0;
-
- SharedPtr<Model> clonedModelPtr = model->Clone(cloneName);
- Model* clonedModel = clonedModelPtr.Get();
- clonedModelPtr.Detach();
-
- return clonedModel;
- }
- $}
|