-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcModelGroup.h
41 lines (29 loc) · 973 Bytes
/
cModelGroup.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include "cModel.h"
class cModelGroup {
public:
cModelGroup();
~cModelGroup();
void SetTranslation(cPoint3D Translation);
void SetRotation(float Rot1, float Rot2, float Rot3, float Rot4);
void SetScale(float fScale);
void SetDefaultAnim(DWORD dwAnim);
void PlayAnimation(DWORD dwAnim, DWORD dwStartFrame, DWORD dwEndFrame, float fPlaySpeed);
void UpdateAnim(float fTime);
int Draw();
bool ReadModel(DWORD dwModel, std::vector<stPaletteSwap> *vPaletteSwaps = 0, std::vector<stTextureSwap> *vTextureSwaps = 0, std::vector<stModelSwap> *vModelSwaps = 0);
bool ReadDungeon(DWORD dwDungeon, WORD wDungeonPart, std::vector<WORD> * v_Textures);
private:
//anims
cPortalFile *m_pfAnim;
float m_fAnimT;
float m_fPlaySpeed;
float *m_fKeyData;
DWORD m_iNumFrames, m_iNumParts;
DWORD m_dwEndFrame;
DWORD m_dwCurAnim, m_dwDefaultAnim;
std::vector<cModel *> m_vModels;
float m_fScale;
cPoint3D m_pTranslation;
float m_fRotation[4];
};