Skip to content

Commit a6ccd21

Browse files
ShokerStlkXottab-DUTY
authored andcommitted
SWM: Ported Include\xrRender
1 parent 0016360 commit a6ccd21

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/Include/xrRender/Kinematics.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#pragma once
44

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

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

@@ -77,6 +78,9 @@ class IKinematics
7778
virtual u64 LL_GetBonesVisible() = 0;
7879
virtual void LL_SetBonesVisible(u64 mask) = 0;
7980

81+
virtual void LL_AddTransformToBone(KinematicsABT::additional_bone_transform& offset) = 0; //--#SM+#--
82+
virtual void LL_ClearAdditionalTransform(u16 bone_id) = 0; //--#SM+#--
83+
8084
// Main functionality
8185
virtual void CalculateBones(BOOL bForceExact = FALSE) = 0; // Recalculate skeleton
8286
virtual void CalculateBones_Invalidate() = 0;

src/Include/xrRender/KinematicsAnimated.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "xrCore/Animation/SkeletonMotions.hpp"
66
#include "animation_blend.h"
77
#include "Layers/xrrender/KinematicAnimatedDefs.h"
8+
#include "Layers/xrRender/KinematicsAddBoneTransform.hpp" //--#SM+#--
89

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

65+
virtual void LL_AddTransformToBone(KinematicsABT::additional_bone_transform& offset) = 0; //--#SM+#--
66+
virtual void LL_ClearAdditionalTransform(u16 bone_id) = 0; //--#SM+#--
67+
6468
virtual IBlendDestroyCallback* GetBlendDestroyCallback() = 0;
6569
virtual void SetBlendDestroyCallback(IBlendDestroyCallback* cb) = 0;
6670
virtual void SetUpdateTracksCalback(IUpdateTracksCallback* callback) = 0;

src/Include/xrRender/RenderVisual.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class IRenderVisual
1818
virtual shared_str getDebugName() = 0;
1919
#endif
2020

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

0 commit comments

Comments
 (0)