35 bool IsEnabled()
const {
return mEnabled; }
40 void DrawBoneRow(int32_t boneIndex,
const std::vector<uint8_t>& resolved);
41 bool ContainsName(
const std::vector<std::string>& list,
const std::string& name)
const;
43 void EnsurePreviewWorld();
44 void CreateRenderTargets(uint32_t w, uint32_t h);
45 void DestroyRenderTargets();
47 void ApplyOrbitCamera();
49 void DrawBoneOverlay(
const std::vector<uint8_t>& resolved);
50 void HandleViewportInput();
51 void SelectAnimation(int32_t index);
52 void SetPlaying(
bool playing);
53 void SyncPreviewMesh();
55 const char* GetCurrentAnimName()
const;
57 bool mEnabled =
false;
63 std::vector<std::vector<int32_t>> mChildren;
64 int32_t mRootBone = -1;
67 World* mPreviewWorld =
nullptr;
74 Image* mColorTarget =
nullptr;
75 Image* mDepthTarget =
nullptr;
76 ImTextureID mImGuiTexId = 0;
77 uint32_t mCurrentWidth = 0;
78 uint32_t mCurrentHeight = 0;
82 float mCamPitch = 0.25f;
83 float mCamDistance = 5.0f;
84 glm::vec3 mCamPivot = { 0.0f, 1.0f, 0.0f };
85 float mPreviewScale = 1.0f;
86 bool mShowGrid =
true;
89 int32_t mSelectedAnimIndex = -1;
92 float mScrubTime = 0.0f;
95 ImVec2 mImageMin = { 0, 0 };
96 ImVec2 mImageMax = { 0, 0 };
99BoneMaskEditor* GetBoneMaskEditor();
Definition BoneMaskAsset.h:19
Definition DirectionalLight3d.h:6
Definition SkeletalMesh3d.h:85
Definition SkeletalMesh.h:99