WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ModelColor.h
Go to the documentation of this file.
1/*
2 * ModelColor.h
3 *
4 * Created on: 21 oct. 2013
5 *
6 */
7
8#pragma once
9
10#include "animated.h"
11#include "modelheaders.h"
12
13#include "glm/glm.hpp"
14
15class GameFile;
16
19{
22
24 void init(GameFile* f, ModelColorDef& mcd, std::vector<uint32>& global);
25};
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 vertex colour and opacity used by M2 render passes.
Definition ModelColor.h:19
void init(GameFile *f, ModelColorDef &mcd, std::vector< uint32 > &global)
Initialise from an M2 colour definition block.
Definition ModelColor.cpp:4
AnimatedShort opacity
Opacity animation track (0 = transparent, 0x7FFF = opaque).
Definition ModelColor.h:21
Animated< glm::vec3 > color
RGB colour animation track.
Definition ModelColor.h:20