Skip to content

Commit

Permalink
- movrf DBoneComponents into the backend as this needs to be shared.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Nov 6, 2022
1 parent 0e111ae commit 8cc3099
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/common/models/bonecomponents.h
@@ -0,0 +1,16 @@
#pragma once
#include "dobject.h"
#include "tarray.h"
#include "TRS.h"
#include "matrix.h"


class DBoneComponents : public DObject
{
DECLARE_CLASS(DBoneComponents, DObject);
public:
TArray<TArray<TRS>> trscomponents;
TArray<TArray<VSMatrix>> trsmatrix;

DBoneComponents() = default;
};
1 change: 1 addition & 0 deletions src/common/models/model.h
Expand Up @@ -6,6 +6,7 @@
#include "matrix.h"
#include "TRS.h"

class DBoneComponents;
class FModelRenderer;
class FGameTexture;
class IModelVertexBuffer;
Expand Down
3 changes: 3 additions & 0 deletions src/common/models/model_iqm.h
Expand Up @@ -5,6 +5,9 @@
#include "vectors.h"
#include "matrix.h"
#include "common/rendering/i_modelvertexbuffer.h"
#include "m_swap.h"

class DBoneComponents;

struct IQMMesh
{
Expand Down
5 changes: 5 additions & 0 deletions src/common/models/models_iqm.cpp
Expand Up @@ -6,6 +6,11 @@
#include "modelrenderer.h"
#include "engineerrors.h"
#include "r_utility.h"
#include "dobject.h"
#include "bonecomponents.h"

IMPLEMENT_CLASS(DBoneComponents, false, false);


IQMModel::IQMModel()
{
Expand Down

0 comments on commit 8cc3099

Please sign in to comment.