diff --git a/stepmania/src/Model.cpp b/stepmania/src/Model.cpp index d55fd81d0f..dfe5fa7896 100644 --- a/stepmania/src/Model.cpp +++ b/stepmania/src/Model.cpp @@ -5,7 +5,7 @@ #include "RageDisplay.h" #include "RageUtil.h" #include "RageTextureManager.h" -#include "IniFile.h" +#include "XmlFile.h" #include "RageFile.h" #include "RageLog.h" #include "ActorUtil.h" diff --git a/stepmania/src/Model.h b/stepmania/src/Model.h index 1394f9397f..fa94a6cbca 100644 --- a/stepmania/src/Model.h +++ b/stepmania/src/Model.h @@ -8,15 +8,17 @@ #include "ModelTypes.h" #include #include -#include "RageModelGeometry.h" + +class RageModelGeometry; +class RageCompiledGeometry; class Model : public Actor { public: - Model (); - virtual ~Model (); + Model(); + virtual ~Model(); - void Clear (); + void Clear(); void Load( CString sFile ); void LoadPieces( CString sMeshesPath, CString sMaterialsPath, CString sBomesPath ); @@ -32,7 +34,6 @@ public: virtual bool EarlyAbortDraw(); virtual void DrawPrimitives(); - void AdvanceFrame (float dt); void DrawCelShaded(); virtual int GetNumStates() const; @@ -40,14 +41,14 @@ public: virtual float GetAnimationLengthSeconds() const; virtual void SetSecondsIntoAnimation( float fSeconds ); - CString GetDefaultAnimation() { return m_sDefaultAnimation; }; + CString GetDefaultAnimation() const { return m_sDefaultAnimation; }; void SetDefaultAnimation( CString sAnimation, float fPlayRate = 1 ); bool m_bRevertToDefaultAnimation; bool MaterialsNeedNormals() const; // - // Commands + // Lua // virtual void PushSelf( lua_State *L ); @@ -72,6 +73,7 @@ private: vector m_vTempMeshes; void DrawMesh( int i ) const; + void AdvanceFrame( float fDeltaTime ); float m_fCurFrame; CString m_sDefaultAnimation;