/*************************************************************************** AC3DModel.h - description ------------------- begin : june 29th, 05 copyright : (C) 2005-2007 by Duong Khang NGUYEN email : neoneurone @ gmail com $Id: ac3dmodel.h 375 2008-10-28 14:47:15Z neoneurone $ ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * any later version. * * * ***************************************************************************/ #ifndef _OPENCITY_AC3DAC3DMODEL_H_ #define _OPENCITY_AC3DAC3DMODEL_H_ 1 #include "ac3dmaterial.h" #include #include using std::vector; using std::string; namespace AC3D { class AC3DObject; //======================================================================== /** An independant AC3DModel loader */ class AC3DModel{ public: AC3DModel(string fileName); ~AC3DModel(); const vector & GetVMaterial() const; const AC3DObject* const GetPObject() const; bool IsGood() const; string ToStr() const; // debug method private: bool bGood; string strHeader; ///< "AC3Dx" string strFileName; vector vMaterial; AC3DObject* pObject; ///< The "world" object bool ac3dmodelParse(); }; } #endif