Skip to content

Commit

Permalink
Add XR_NOVTABLE to IRenderVisual, IKinematics and IKinematicsAnimated
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 6, 2025
1 parent 40d7918 commit a4baa21
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Include/xrRender/Kinematics.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct Fobb;
// 100 ms = 10 fps
#define UCalc_Interval (u32(100))

class IKinematics
class XR_NOVTABLE IKinematics
{
public:
typedef xr_vector<std::pair<shared_str, u16>> accel;
Expand Down
7 changes: 5 additions & 2 deletions src/Include/xrRender/KinematicsAnimated.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ struct SKeyTable
SKeyTable() { std::fill_n(chanel_blend_conts, MAX_CHANNELS, 0); }
};

class IKinematicsAnimated
class XR_NOVTABLE IKinematicsAnimated
{
public:
virtual ~IKinematicsAnimated() { ; }
virtual ~IKinematicsAnimated() = 0;

// Calculation
public:
virtual void OnCalculateBones() = 0;
Expand Down Expand Up @@ -121,4 +122,6 @@ class IKinematicsAnimated
//#endif
};

inline IKinematicsAnimated::~IKinematicsAnimated() = default;

#endif // KinematicsAnimated_included
6 changes: 4 additions & 2 deletions src/Include/xrRender/RenderVisual.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ class IKinematicsAnimated;
class IParticleCustom;
struct vis_data;

class IRenderVisual
class XR_NOVTABLE IRenderVisual
{
public:
virtual ~IRenderVisual() { ; }
virtual ~IRenderVisual() = 0;
virtual vis_data& getVisData() = 0;
virtual u32 getType() const = 0;

Expand All @@ -24,4 +24,6 @@ class IRenderVisual
virtual IParticleCustom* dcast_ParticleCustom() { return nullptr; }
};

inline IRenderVisual::~IRenderVisual() = default;

#endif // RenderVisual_included

0 comments on commit a4baa21

Please sign in to comment.