BaseMesh.hh
Go to the documentation of this file.
virtual bool SkeletonAnimationEnabled(const std::string &_name) const override
Get whether a skeleton animation is enabled or not.
Definition: BaseMesh.hh:213
virtual void SetSkeletonLocalTransforms(const std::map< std::string, math::Matrix4d > &) override
Set transforms for the skeleton.
Definition: BaseMesh.hh:182
virtual void DestroyMaterial(MaterialPtr _material)=0
Unregister and destroy a material.
virtual SubMeshPtr SubMeshByIndex(unsigned int _index) const override
Get sub-mesh at given index.
Definition: BaseMesh.hh:255
Definition: BaseMesh.hh:114
virtual void SetMaterial(const std::string &_name, bool _unique=true) override
Set the materials of this SubMesh. The specified material will be retrieved from the parent Scene...
Definition: BaseMesh.hh:352
virtual bool HasSubMeshName(const std::string &_name) const override
Determine if has sub-mesh with given name.
Definition: BaseMesh.hh:241
MaterialPtr material
Pointer to currently assigned material.
Definition: BaseMesh.hh:147
virtual bool HasSkeleton() const override
Check whether the mesh has skeleton.
Definition: BaseMesh.hh:166
T endl(T... args)
virtual unsigned int SubMeshCount() const override
Get the sub-mesh count.
Definition: BaseMesh.hh:227
virtual void SetMaterial(const std::string &_name, bool _unique=true) override
Set the materials of this Geometry. The specified material will be retrieved from the parent Scene...
Definition: BaseMesh.hh:271
virtual bool HasSubMesh(ConstSubMeshPtr _subMesh) const override
Determine if has given sub-mesh.
Definition: BaseMesh.hh:234
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: BaseMesh.hh:385
virtual std::map< std::string, math::Matrix4d > SkeletonLocalTransforms() const override
Get the skeleton local transforms.
Definition: BaseMesh.hh:174
STL class.
STL class.
virtual MaterialPtr Material() const override
Get the material of this geometry.
Definition: BaseMesh.hh:262
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: BaseMesh.hh:301
virtual std::unordered_map< std::string, float > SkeletonWeights() const override
Get skeleton node weight.
Definition: BaseMesh.hh:189
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node...
Definition: Scene.hh:49
virtual RenderEngine * Engine() const =0
Get the creating render-engine of the scene.
Definition: BaseMesh.hh:36
virtual MaterialPtr Material() const override
Get the currently assigned material.
Definition: BaseMesh.hh:378
virtual void SetSkeletonWeights(const std::unordered_map< std::string, float > &) override
Set skeleton node weight.
Definition: BaseMesh.hh:197
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: BaseMesh.hh:316
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: BaseMesh.hh:341
virtual std::string Name() const =0
Get name of the render-engine.
virtual void PreRender()=0
Prepare this object and any of its children for rendering. This should be called for each object in a...
#define ignerr
virtual void SetSkeletonAnimationEnabled(const std::string &_name, bool _enabled, bool _loop=true, float _weight=1.0) override
Set whether a skeleton animation should be enabled or not.
Definition: BaseMesh.hh:206
MaterialPtr material
Pointer to currently assigned material.
Definition: BaseMesh.hh:109
Represents a surface material of a Geometry.
Definition: Material.hh:47
virtual SubMeshPtr SubMeshByName(const std::string &_name) const override
Get sub-mesh with given name.
Definition: BaseMesh.hh:248
virtual void UpdateSkeletonAnimation(std::chrono::steady_clock::duration _time) override
Play the active skeleton animation to the specified time.
Definition: BaseMesh.hh:220
STL class.
virtual MaterialPtr Material(const std::string &_name) const =0
Get material registered under the given name. If no material is registered under the given name...