WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
TextureAnim Class Reference

Animated texture transform (translation, rotation, scale) for an M2 model. More...

#include <TextureAnim.h>

Collaboration diagram for TextureAnim:
[legend]

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.
 

Detailed Description

Animated texture transform (translation, rotation, scale) for an M2 model.

Definition at line 7 of file TextureAnim.h.

Member Function Documentation

◆ calc()

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.

Here is the call graph for this function:

◆ init()

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.

Here is the call graph for this function:

◆ setup()

void TextureAnim::setup ( ssize_t  anim)

Apply the current texture transform to the OpenGL matrix stack.

Definition at line 21 of file TextureAnim.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ rot

Animated<glm::vec3> TextureAnim::rot

Definition at line 10 of file TextureAnim.h.

◆ rval

glm::vec3 TextureAnim::rval

Definition at line 12 of file TextureAnim.h.

◆ scale

Animated<glm::vec3> TextureAnim::scale

Animation tracks for translation, rotation, and scale.

Definition at line 10 of file TextureAnim.h.

◆ sval

glm::vec3 TextureAnim::sval

Current computed values.

Definition at line 12 of file TextureAnim.h.

◆ trans

Animated<glm::vec3> TextureAnim::trans

Definition at line 10 of file TextureAnim.h.

◆ tval

glm::vec3 TextureAnim::tval

Definition at line 12 of file TextureAnim.h.


The documentation for this class was generated from the following files: