/****************************************************************************** libx42.net - skinned vertex animation library (.NET API) Copyright (C) 2007 HermitWorks Entertainment Corporation 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 (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA. ******************************************************************************/ #pragma once #include "Vector.h" #include "Enums.h" #include #include "DataStream.h" namespace Libx42 { ref class Group; ref class Model; ref class Pose; ref class AnimationBuffer; public ref class AnimationBuffer { public: property Model^ Owner { Model^ get( void ) { return owner; } } void AnimateVertices( Pose ^pose ); void AnimateVertices( Pose ^pose, Group ^group ); void AnimateVertices( Pose ^pose, ... array< Group^ > ^groupsToUpdate ); property DataStream< Math::Vector3 >^ PositionStream { DataStream< Math::Vector3 >^ get( void ) { return posStream; } } property DataStream< Math::Vector3 >^ NormalStream { DataStream< Math::Vector3 >^ get( void ) { return normStream; } } property DataStream< Math::Vector3 >^ TangentStream { DataStream< Math::Vector3 >^ get( void ) { return tanStream; } } property DataStream< Math::Vector3 >^ BinormalStream { DataStream< Math::Vector3 >^ get( void ) { return binStream; } } internal: AnimationBuffer( Model ^owner, AnimationFlags flags ); private: Model ^owner; __m128 *posBuf, *normBuf, *tanBuf, *binBuf; DataStream< Math::Vector3 > ^posStream, ^normStream, ^tanStream, ^binStream; void AnimateVertices( Pose ^pose, uint groupNum ); ~AnimationBuffer( void ); !AnimationBuffer( void ); }; };