25 bool IsEnabled()
const {
return mEnabled; }
31 bool ConsumePendingDock()
33 bool v = mPendingDock;
39 void EnsurePreviewWorld();
40 void CreateRenderTargets(uint32_t w, uint32_t h);
41 void DestroyRenderTargets();
43 void ApplyOrbitCamera();
45 void HandleViewportInput();
46 void SelectAnimation(int32_t index);
47 void StepFrame(int32_t direction);
48 void SetPlaying(
bool playing);
50 float GetCurrentDuration()
const;
51 float GetFrameStep()
const;
52 const char* GetCurrentAnimName()
const;
54 bool mEnabled =
false;
57 World* mPreviewWorld =
nullptr;
62 int32_t mSelectedAnimIndex = -1;
65 bool mShowGrid =
true;
66 float mScrubTime = 0.0f;
67 float mPreviewScale = 1.0f;
70 Image* mColorTarget =
nullptr;
71 Image* mDepthTarget =
nullptr;
72 ImTextureID mImGuiTexId = 0;
73 uint32_t mCurrentWidth = 0;
74 uint32_t mCurrentHeight = 0;
78 float mCamPitch = 0.25f;
79 float mCamDistance = 5.0f;
80 glm::vec3 mCamPivot = { 0.0f, 1.0f, 0.0f };
83 ImVec2 mImageMin = { 0, 0 };
84 ImVec2 mImageMax = { 0, 0 };
85 bool mPendingFocus =
false;
86 bool mPendingDock =
false;
89AnimationBrowser* GetAnimationBrowser();
Definition DirectionalLight3d.h:6
Definition SkeletalMesh3d.h:52
Definition SkeletalMesh.h:86