|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
Animated texture transform (translation, rotation, scale) for an M2 model. More...
#include <TextureAnim.h>
Public Member Functions | |
| void | calc (ssize_t anim, size_t time) |
| Compute the transform at the given animation frame. | |
| void | init (GameFile *f, ModelTexAnimDef &mta, std::vector< uint32 > &global) |
| Initialise from an M2 texture animation definition. | |
| void | setup (ssize_t anim) |
| Apply the current texture transform to the OpenGL matrix stack. | |
Public Attributes | |
| Animated< glm::vec3 > | trans |
| Animated< glm::vec3 > | rot |
| Animated< glm::vec3 > | scale |
| Animation tracks for translation, rotation, and scale. | |
| glm::vec3 | tval |
| glm::vec3 | rval |
| glm::vec3 | sval |
| Current computed values. | |
Animated texture transform (translation, rotation, scale) for an M2 model.
Definition at line 7 of file TextureAnim.h.
| void TextureAnim::calc | ( | ssize_t | anim, |
| size_t | time | ||
| ) |
Compute the transform at the given animation frame.
Definition at line 5 of file TextureAnim.cpp.
| void TextureAnim::init | ( | GameFile * | f, |
| ModelTexAnimDef & | mta, | ||
| std::vector< uint32 > & | global | ||
| ) |
Initialise from an M2 texture animation definition.
Definition at line 38 of file TextureAnim.cpp.
| void TextureAnim::setup | ( | ssize_t | anim | ) |
Apply the current texture transform to the OpenGL matrix stack.
Definition at line 21 of file TextureAnim.cpp.
| Animated<glm::vec3> TextureAnim::rot |
Definition at line 10 of file TextureAnim.h.
| glm::vec3 TextureAnim::rval |
Definition at line 12 of file TextureAnim.h.
| Animated<glm::vec3> TextureAnim::scale |
Animation tracks for translation, rotation, and scale.
Definition at line 10 of file TextureAnim.h.
| glm::vec3 TextureAnim::sval |
Current computed values.
Definition at line 12 of file TextureAnim.h.
| Animated<glm::vec3> TextureAnim::trans |
Definition at line 10 of file TextureAnim.h.
| glm::vec3 TextureAnim::tval |
Definition at line 12 of file TextureAnim.h.