|
| eastl::vector< eastl::shared_ptr< Mesh > > & | GetModelMeshes () |
| | This method allows you to get a reference of all the meshes in this model. More...
|
| |
| eastl::string | GetName () |
| | This method allows you to get the name of this model. More...
|
| |
| void | SetSkeleton (eastl::shared_ptr< Skeleton > skeleton) |
| |
| eastl::shared_ptr< Skeleton > | GetSkeleton () const |
| | Returns the animation data of the model. The animation data contains the skeleton of the model, As well as the progress of the animation and a list of animation that can be used by the model. More...
|
| |
| eastl::vector< eastl::string > | GetAnimations () |
| | Returns a list of the loaded animations as a vector of names. Use these names to load a specific animation. More...
|
| |
| void | SetAnimation (eastl::string animation, bool resetTime) |
| | Sets the current animation of the mesh. More...
|
| |
| void | ResetAnimation () |
| | Sets the current animation to 0, returning the model to the default pose. More...
|
| |
| void | SetAnimationTime (float time) |
| | Sets the point in the animation the model is in. Set to 0 to reset the animation. Animation automatically loops unless specified otherwise by assimp. More...
|
| |
| void | Update (float deltaTime) |
| | Updates the model (doesn't do anything right now). More...
|
| |
| void | UpdateAnimation (float deltaTime) |
| | Updates animation related values, such as the progress of the animation. More...
|
| |
| float | GetAnimationTime () const |
| | Returns the current progress of the animation. More...
|
| |
| float | GetAnimationDuration () const |
| | Returns the duration of a single loop of the animation. More...
|
| |
| void | SetPaused (bool paused) |
| | Pauses or unpauses the animation. More...
|
| |
| bool | IsPaused () const |
| | Tells if the animation is paused or not. More...
|
| |
| bool | HasAnimations () const |
| | Whether or not any animations have been loaded. More...
|
| |
| void | SetLooping (bool looping) |
| | Whether or not the animation should loop after finishing. More...
|
| |
| bool | IsLooping () const |
| | Returns a boolean indicating if the animation is looping or not. More...
|
| |
| void | SetSpeed (float speed) |
| | Set the speed modifier of the animation. Default is 1.f. More...
|
| |
| float | GetSpeed () const |
| | Returns the speed modifier of the current animation. More...
|
| |
| eastl::string | GetCurrentAnimationName () const |
| | Returns the name of the currently selected animation. More...
|
| |
| size_t | GetCurrentAnimationIndex () const |
| | Returns the index of the currently selected animation. More...
|
| |
| eastl::shared_ptr< Material > | GetMeshMaterial (eastl::shared_ptr< Mesh > mesh) |
| | Returns the material used by this model for the specified mesh. If the model doesn't contain a material for the specified mesh a nullptr is returned. More...
|
| |
| void | SetMeshMaterial (eastl::shared_ptr< Mesh > mesh, eastl::shared_ptr< Material > material) |
| | Associates a material with the given mesh. Warning: If building for vulkan, make sure that the specified material is created as a VulkanMaterial. More...
|
| |
| bool | operator== (Model &other) |
| | This method allows you to compare a model against another model. More...
|
| |
| bool | operator!= (Model &other) |
| | This method allows you to compare a model against another model. More...
|
| |
| | ~Model ()=default |
| |
This object is a storage container for meshes.
Definition at line 15 of file Model.hpp.