| 1 | /* |
|---|
| 2 | ----------------------------------------------------------------------------- |
|---|
| 3 | This source file is part of LEXIExporter |
|---|
| 4 | |
|---|
| 5 | Copyright 2006 NDS Limited |
|---|
| 6 | |
|---|
| 7 | Author(s): |
|---|
| 8 | Mark Folkenberg, |
|---|
| 9 | Bo Krohn |
|---|
| 10 | |
|---|
| 11 | This program is free software; you can redistribute it and/or modify it under |
|---|
| 12 | the terms of the GNU Lesser General Public License as published by the Free Software |
|---|
| 13 | Foundation; either version 2 of the License, or (at your option) any later |
|---|
| 14 | version. |
|---|
| 15 | |
|---|
| 16 | This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|---|
| 18 | FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
|---|
| 19 | |
|---|
| 20 | You should have received a copy of the GNU Lesser General Public License along with |
|---|
| 21 | this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
|---|
| 22 | Place - Suite 330, Boston, MA 02111-1307, USA, or go to |
|---|
| 23 | http://www.gnu.org/copyleft/lesser.txt. |
|---|
| 24 | ----------------------------------------------------------------------------- |
|---|
| 25 | */ |
|---|
| 26 | |
|---|
| 27 | #include "LexiIntermediateAPI.h" |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | class COgreSkeletonCompiler |
|---|
| 31 | { |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | public: |
|---|
| 35 | COgreSkeletonCompiler( Ogre::String name, Ogre::MeshPtr ogreMesh ); |
|---|
| 36 | virtual ~COgreSkeletonCompiler(); |
|---|
| 37 | bool WriteOgreSkeleton( const Ogre::String& sFilename ); |
|---|
| 38 | void CreateAnimations( void ); |
|---|
| 39 | |
|---|
| 40 | protected: |
|---|
| 41 | |
|---|
| 42 | private: |
|---|
| 43 | |
|---|
| 44 | void CreateSkeleton( CIntermediateBone* pIBone = NULL ); |
|---|
| 45 | |
|---|
| 46 | CIntermediateSkeleton* m_pISkel; |
|---|
| 47 | Ogre::SkeletonPtr m_pSkel; |
|---|
| 48 | Ogre::MeshPtr m_pOgreMesh; |
|---|
| 49 | |
|---|
| 50 | }; |
|---|