Files
itgmania212121/stepmania/src/Model.h
T

56 lines
924 B
C++
Raw Normal View History

2003-04-25 21:05:40 +00:00
#ifndef Model_H
#define Model_H
/*
-----------------------------------------------------------------------------
Class: Model
Desc: A 3D model.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "Actor.h"
#include "RageTypes.h"
struct msModel;
typedef float matrix_t[3][4];
typedef struct
{
matrix_t mRelative;
matrix_t mAbsolute;
matrix_t mRelativeFinal;
matrix_t mFinal;
} myBone_t;
class Model : public Actor
{
public:
Model ();
virtual ~Model ();
public:
void Clear ();
2003-04-27 05:14:27 +00:00
bool Load( CString sPath );
2003-04-25 21:05:40 +00:00
virtual void Update( float fDelta );
virtual void DrawPrimitives();
float CalcDistance () const;
void SetupBones ();
void AdvanceFrame (float dt);
private:
msModel *m_pModel;
RageVector3 m_vMins, m_vMaxs;
myBone_t *m_pBones;
float m_fCurrFrame;
};
#endif