Adam Johnson
10 years ago
81 changed files with 429 additions and 297 deletions
@ -0,0 +1,43 @@ |
|||||||
|
include_directories("../../CoreLib") |
||||||
|
include_directories("../../FeatureLib") |
||||||
|
include_directories("../../NucleusLib/inc") |
||||||
|
include_directories("../../NucleusLib") |
||||||
|
include_directories("../../PubUtilLib") |
||||||
|
|
||||||
|
set(plAnimation_SOURCES |
||||||
|
plAGAnim.cpp |
||||||
|
plAGAnimInstance.cpp |
||||||
|
plAGApplicator.cpp |
||||||
|
plAGChannel.cpp |
||||||
|
plAGMasterMod.cpp |
||||||
|
plAGModifier.cpp |
||||||
|
plMatrixChannel.cpp |
||||||
|
plPointChannel.cpp |
||||||
|
plQuatChannel.cpp |
||||||
|
plScalarChannel.cpp |
||||||
|
) |
||||||
|
|
||||||
|
set(plAnimation_HEADERS |
||||||
|
plAGAnim.h |
||||||
|
plAGAnimInstance.h |
||||||
|
plAGApplicator.h |
||||||
|
plAGChannel.h |
||||||
|
plAGDefs.h |
||||||
|
plAGMasterMod.h |
||||||
|
plAGModifier.h |
||||||
|
plAnimationCreatable.h |
||||||
|
plMatrixChannel.h |
||||||
|
plPointChannel.h |
||||||
|
plQuatChannel.h |
||||||
|
plScalarChannel.h |
||||||
|
) |
||||||
|
|
||||||
|
add_library(plAnimation STATIC ${plAnimation_SOURCES} ${plAnimation_HEADERS}) |
||||||
|
|
||||||
|
target_link_libraries(plAnimation pnModifier) |
||||||
|
target_link_libraries(plAnimation plInterp) |
||||||
|
target_link_libraries(plAnimation plSDL) |
||||||
|
target_link_libraries(plAnimation plTransform) |
||||||
|
|
||||||
|
source_group("Source Files" FILES ${plAnimation_SOURCES}) |
||||||
|
source_group("Header Files" FILES ${plAnimation_HEADERS}) |
@ -0,0 +1,63 @@ |
|||||||
|
/*==LICENSE==*
|
||||||
|
|
||||||
|
CyanWorlds.com Engine - MMOG client, server and tools |
||||||
|
Copyright (C) 2011 Cyan Worlds, Inc. |
||||||
|
|
||||||
|
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 3 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, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Additional permissions under GNU GPL version 3 section 7 |
||||||
|
|
||||||
|
If you modify this Program, or any covered work, by linking or |
||||||
|
combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK, |
||||||
|
NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent |
||||||
|
JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK |
||||||
|
(or a modified version of those libraries), |
||||||
|
containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA, |
||||||
|
PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG |
||||||
|
JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the |
||||||
|
licensors of this Program grant you additional |
||||||
|
permission to convey the resulting work. Corresponding Source for a |
||||||
|
non-source form of such a combination shall include the source code for |
||||||
|
the parts of OpenSSL and IJG JPEG Library used as well as that of the covered |
||||||
|
work. |
||||||
|
|
||||||
|
You can contact Cyan Worlds, Inc. by email legal@cyan.com |
||||||
|
or by snail mail at: |
||||||
|
Cyan Worlds, Inc. |
||||||
|
14617 N Newport Hwy |
||||||
|
Mead, WA 99021 |
||||||
|
|
||||||
|
*==LICENSE==*/ |
||||||
|
#ifndef plAGDefs_h |
||||||
|
#define plAGDefs_h |
||||||
|
|
||||||
|
/** \enum PinType
|
||||||
|
Tells us what category of animation this channel affects. |
||||||
|
Primarly used to determine if two channels are competing, |
||||||
|
which you can't tell strictly from the type of data the |
||||||
|
channel handles. */ |
||||||
|
enum plAGPinType |
||||||
|
{ |
||||||
|
kAGPinUnknown, // this applicator hasn't decided its pin type
|
||||||
|
kAGPinTransform, // this applicator munches the entire transform
|
||||||
|
kNumPinTypes |
||||||
|
}; |
||||||
|
|
||||||
|
#define kAGMaxBlendPriority 0x0fffffff |
||||||
|
#define kAGMinBlendPriority 0x00000000 |
||||||
|
#define kAGMedBlendPriority 0x0000ffff |
||||||
|
|
||||||
|
|
||||||
|
#endif |
||||||
|
|
@ -0,0 +1,132 @@ |
|||||||
|
/*==LICENSE==*
|
||||||
|
|
||||||
|
CyanWorlds.com Engine - MMOG client, server and tools |
||||||
|
Copyright (C) 2011 Cyan Worlds, Inc. |
||||||
|
|
||||||
|
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 3 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, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Additional permissions under GNU GPL version 3 section 7 |
||||||
|
|
||||||
|
If you modify this Program, or any covered work, by linking or |
||||||
|
combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK, |
||||||
|
NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent |
||||||
|
JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK |
||||||
|
(or a modified version of those libraries), |
||||||
|
containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA, |
||||||
|
PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG |
||||||
|
JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the |
||||||
|
licensors of this Program grant you additional |
||||||
|
permission to convey the resulting work. Corresponding Source for a |
||||||
|
non-source form of such a combination shall include the source code for |
||||||
|
the parts of OpenSSL and IJG JPEG Library used as well as that of the covered |
||||||
|
work. |
||||||
|
|
||||||
|
You can contact Cyan Worlds, Inc. by email legal@cyan.com |
||||||
|
or by snail mail at: |
||||||
|
Cyan Worlds, Inc. |
||||||
|
14617 N Newport Hwy |
||||||
|
Mead, WA 99021 |
||||||
|
|
||||||
|
*==LICENSE==*/ |
||||||
|
|
||||||
|
#ifndef plAnimationCreatable_inc |
||||||
|
#define plAnimationCreatable_inc |
||||||
|
|
||||||
|
#include "pnFactory/plCreator.h" |
||||||
|
|
||||||
|
|
||||||
|
#include "plAGAnim.h" |
||||||
|
|
||||||
|
REGISTER_CREATABLE(plAGAnim); |
||||||
|
REGISTER_CREATABLE(plATCAnim); |
||||||
|
REGISTER_CREATABLE(plEmoteAnim); |
||||||
|
REGISTER_CREATABLE(plAgeGlobalAnim); |
||||||
|
|
||||||
|
|
||||||
|
#include "plAGChannel.h" |
||||||
|
|
||||||
|
REGISTER_NONCREATABLE(plAGChannel); |
||||||
|
|
||||||
|
|
||||||
|
#include "plAGApplicator.h" |
||||||
|
|
||||||
|
REGISTER_NONCREATABLE(plAGApplicator); |
||||||
|
|
||||||
|
|
||||||
|
#include "plMatrixChannel.h" |
||||||
|
|
||||||
|
REGISTER_CREATABLE(plMatrixChannel); |
||||||
|
REGISTER_CREATABLE(plMatrixConstant); |
||||||
|
REGISTER_CREATABLE(plMatrixTimeScale); |
||||||
|
REGISTER_CREATABLE(plMatrixBlend); |
||||||
|
REGISTER_CREATABLE(plMatrixControllerChannel); |
||||||
|
REGISTER_CREATABLE(plMatrixControllerCacheChannel); |
||||||
|
REGISTER_CREATABLE(plQuatPointCombine); |
||||||
|
REGISTER_CREATABLE(plMatrixChannelApplicator); |
||||||
|
REGISTER_CREATABLE(plMatrixDelayedCorrectionApplicator); |
||||||
|
REGISTER_CREATABLE(plMatrixDifferenceApp); |
||||||
|
|
||||||
|
|
||||||
|
#include "plPointChannel.h" |
||||||
|
|
||||||
|
REGISTER_CREATABLE(plPointChannel); |
||||||
|
REGISTER_CREATABLE(plPointConstant); |
||||||
|
REGISTER_CREATABLE(plPointBlend); |
||||||
|
REGISTER_CREATABLE(plPointTimeScale); |
||||||
|
REGISTER_CREATABLE(plPointControllerChannel); |
||||||
|
REGISTER_CREATABLE(plPointControllerCacheChannel); |
||||||
|
REGISTER_CREATABLE(plPointChannelApplicator); |
||||||
|
REGISTER_CREATABLE(plLightDiffuseApplicator); |
||||||
|
REGISTER_CREATABLE(plLightAmbientApplicator); |
||||||
|
REGISTER_CREATABLE(plLightSpecularApplicator); |
||||||
|
|
||||||
|
|
||||||
|
#include "plQuatChannel.h" |
||||||
|
|
||||||
|
REGISTER_CREATABLE(plQuatChannel); |
||||||
|
REGISTER_CREATABLE(plQuatConstant); |
||||||
|
REGISTER_CREATABLE(plQuatBlend); |
||||||
|
REGISTER_CREATABLE(plQuatTimeScale); |
||||||
|
REGISTER_CREATABLE(plQuatChannelApplicator); |
||||||
|
|
||||||
|
|
||||||
|
#include "plScalarChannel.h" |
||||||
|
|
||||||
|
REGISTER_CREATABLE(plScalarChannel); |
||||||
|
REGISTER_CREATABLE(plScalarConstant); |
||||||
|
REGISTER_CREATABLE(plScalarTimeScale); |
||||||
|
REGISTER_CREATABLE(plScalarBlend); |
||||||
|
REGISTER_CREATABLE(plScalarControllerChannel); |
||||||
|
REGISTER_CREATABLE(plScalarControllerCacheChannel); |
||||||
|
REGISTER_CREATABLE(plScalarChannelApplicator); |
||||||
|
REGISTER_CREATABLE(plSpotInnerApplicator); |
||||||
|
REGISTER_CREATABLE(plSpotOuterApplicator); |
||||||
|
REGISTER_CREATABLE(plATCChannel); |
||||||
|
REGISTER_CREATABLE(plScalarSDLChannel); |
||||||
|
REGISTER_CREATABLE(plOmniApplicator); |
||||||
|
REGISTER_CREATABLE(plOmniSqApplicator); |
||||||
|
REGISTER_CREATABLE(plOmniCutoffApplicator); |
||||||
|
|
||||||
|
|
||||||
|
#include "plAGModifier.h" |
||||||
|
|
||||||
|
REGISTER_CREATABLE(plAGModifier); |
||||||
|
|
||||||
|
|
||||||
|
#include "plAGMasterMod.h" |
||||||
|
|
||||||
|
REGISTER_CREATABLE(plAGMasterMod); |
||||||
|
|
||||||
|
#endif // plAnimationCreatable_inc
|
||||||
|
|
Loading…
Reference in new issue