00001 /*************************************************************************** 00002 animatedsubmesh.h - Vertex animated submesh 00003 ------------------- 00004 begin : Thu Jan 30 2003 00005 copyright : (C) 2003 by Reality Rift Studios 00006 email : mattias@realityrift.com 00007 *************************************************************************** 00008 00009 The contents of this file are subject to the Mozilla Public License Version 00010 1.1 (the "License"); you may not use this file except in compliance with 00011 the License. You may obtain a copy of the License at 00012 http://www.mozilla.org/MPL/ 00013 00014 Software distributed under the License is distributed on an "AS IS" basis, 00015 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 00016 for the specific language governing rights and limitations under the 00017 License. 00018 00019 The Original Code is the NeoEngine, animatedsubmesh.h 00020 00021 The Initial Developer of the Original Code is Mattias Jansson. 00022 Portions created by Mattias Jansson are Copyright (C) 2003 00023 Reality Rift Studios. All Rights Reserved. 00024 00025 ***************************************************************************/ 00026 00027 #ifndef __NEANIMATEDSUBMESH_H 00028 #define __NEANIMATEDSUBMESH_H 00029 00030 00031 #include "base.h" 00032 #include "submesh.h" 00033 #include "submeshanimator.h" 00034 00035 00042 namespace NeoEngine 00043 { 00044 00045 00050 class NEOENGINE_API AnimatedSubMesh : public SubMesh, public SubMeshAnimatorController 00051 { 00052 protected: 00053 00054 00058 virtual void UpdateData(); 00059 00060 00061 00062 public: 00063 00064 00067 AnimatedSubMesh(); 00068 00072 AnimatedSubMesh( const AnimatedSubMesh &rkSubMesh ); 00073 00076 virtual ~AnimatedSubMesh(); 00077 00082 virtual void Update( float fDeltaTime ); 00083 00087 virtual SubMesh *Duplicate() const; 00088 00092 virtual unsigned int GetType() const { return ANIMATEDSUBMESH; } 00093 }; 00094 00095 00096 }; 00097 00098 00099 #endif 00100