-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
449e88c
commit e3a82d6
Showing
31 changed files
with
345 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
Engine/Core/libs/Graphics/inc/Graphics/Animations/BoneComponent.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// Created by Monika on 28.07.2023. | ||
// | ||
|
||
#ifndef SRENGINE_BONECOMPONENT_H | ||
#define SRENGINE_BONECOMPONENT_H | ||
|
||
#include <Utils/ECS/EntityRef.h> | ||
#include <Utils/ECS/Component.h> | ||
|
||
namespace SR_ANIMATIONS_NS { | ||
class Skeleton; | ||
|
||
class BoneComponent : public SR_UTILS_NS::Component { | ||
SR_ENTITY_SET_VERSION(1000); | ||
SR_INITIALIZE_COMPONENT(BoneComponent); | ||
using Super = SR_UTILS_NS::Component; | ||
public: | ||
using RenderScenePtr = SR_HTYPES_NS::SafePtr<RenderScene>; | ||
public: | ||
BoneComponent(); | ||
|
||
static Component* LoadComponent(SR_HTYPES_NS::Marshal& marshal, const SR_HTYPES_NS::DataStorage* pDataStorage); | ||
|
||
public: | ||
SR_NODISCARD Component* CopyComponent() const override; | ||
SR_NODISCARD SR_HTYPES_NS::Marshal::Ptr Save(SR_HTYPES_NS::Marshal::Ptr pMarshal, SR_UTILS_NS::SavableFlags flags) const override; | ||
|
||
void OnMatrixDirty() override; | ||
|
||
void Initialize(Skeleton* pSkeleton, uint16_t boneIndex); | ||
|
||
SR_NODISCARD bool ExecuteInEditMode() const override { return true; } | ||
|
||
private: | ||
uint16_t m_boneIndex = 0; | ||
SR_UTILS_NS::EntityRef m_skeleton; | ||
|
||
}; | ||
} | ||
|
||
#endif //SRENGINE_BONECOMPONENT_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.