WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
TextureAnim.h
Go to the documentation of this file.
1#pragma once
2
3#include "animated.h"
4#include "glm/glm.hpp"
5
8{
9public:
11
12 glm::vec3 tval, rval, sval;
13
15 void calc(ssize_t anim, size_t time);
17 void init(GameFile* f, ModelTexAnimDef& mta, std::vector<uint32>& global);
19 void setup(ssize_t anim);
20};
Generic animated value class that reads keyframe data from M2 files.
Definition animated.h:161
Abstract base class representing a file within the game data archive.
Definition GameFile.h:12
Animated texture transform (translation, rotation, scale) for an M2 model.
Definition TextureAnim.h:8
Animated< glm::vec3 > rot
Definition TextureAnim.h:10
void calc(ssize_t anim, size_t time)
Compute the transform at the given animation frame.
Animated< glm::vec3 > scale
Animation tracks for translation, rotation, and scale.
Definition TextureAnim.h:10
glm::vec3 rval
Definition TextureAnim.h:12
void setup(ssize_t anim)
Apply the current texture transform to the OpenGL matrix stack.
Animated< glm::vec3 > trans
Definition TextureAnim.h:10
glm::vec3 sval
Current computed values.
Definition TextureAnim.h:12
void init(GameFile *f, ModelTexAnimDef &mta, std::vector< uint32 > &global)
Initialise from an M2 texture animation definition.
glm::vec3 tval
Definition TextureAnim.h:12