Skip to content

Commit

Permalink
SWM: Ported Include\xrRender
Browse files Browse the repository at this point in the history
  • Loading branch information
ShokerStlk authored and Xottab-DUTY committed Mar 27, 2018
1 parent 0016360 commit a6ccd21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Include/xrRender/Kinematics.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#pragma once

#include "RenderVisual.h"
#include "Layers\xrRender\KinematicsAddBoneTransform.hpp" //--#SM+#--

typedef void (*UpdateCallback)(IKinematics* P);

Expand Down Expand Up @@ -77,6 +78,9 @@ class IKinematics
virtual u64 LL_GetBonesVisible() = 0;
virtual void LL_SetBonesVisible(u64 mask) = 0;

virtual void LL_AddTransformToBone(KinematicsABT::additional_bone_transform& offset) = 0; //--#SM+#--
virtual void LL_ClearAdditionalTransform(u16 bone_id) = 0; //--#SM+#--

// Main functionality
virtual void CalculateBones(BOOL bForceExact = FALSE) = 0; // Recalculate skeleton
virtual void CalculateBones_Invalidate() = 0;
Expand Down
4 changes: 4 additions & 0 deletions src/Include/xrRender/KinematicsAnimated.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "xrCore/Animation/SkeletonMotions.hpp"
#include "animation_blend.h"
#include "Layers/xrrender/KinematicAnimatedDefs.h"
#include "Layers/xrRender/KinematicsAddBoneTransform.hpp" //--#SM+#--

class IKinematics;
class CBlend;
Expand Down Expand Up @@ -61,6 +62,9 @@ class IKinematicsAnimated
virtual void LL_BuldBoneMatrixDequatize(const CBoneData* bd, u8 channel_mask, SKeyTable& keys) = 0;
virtual void LL_BoneMatrixBuild(CBoneInstance& bi, const Fmatrix* parent, const SKeyTable& keys) = 0;

virtual void LL_AddTransformToBone(KinematicsABT::additional_bone_transform& offset) = 0; //--#SM+#--
virtual void LL_ClearAdditionalTransform(u16 bone_id) = 0; //--#SM+#--

virtual IBlendDestroyCallback* GetBlendDestroyCallback() = 0;
virtual void SetBlendDestroyCallback(IBlendDestroyCallback* cb) = 0;
virtual void SetUpdateTracksCalback(IUpdateTracksCallback* callback) = 0;
Expand Down
1 change: 1 addition & 0 deletions src/Include/xrRender/RenderVisual.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class IRenderVisual
virtual shared_str getDebugName() = 0;
#endif

virtual IRenderVisual* getSubModel(u8 idx) { return nullptr; } //--#SM+#--
virtual IKinematics* dcast_PKinematics() { return nullptr; }
virtual IKinematicsAnimated* dcast_PKinematicsAnimated() { return nullptr; }
virtual IParticleCustom* dcast_ParticleCustom() { return nullptr; }
Expand Down

0 comments on commit a6ccd21

Please sign in to comment.