Plasma Engine  2.0
Loading...
Searching...
No Matches
AnimationClipContext.h
1#pragma once
2
3#include <EditorEngineProcessFramework/EngineProcess/EngineProcessDocumentContext.h>
4#include <EnginePluginAssets/EnginePluginAssetsDLL.h>
5#include <RendererCore/Declarations.h>
6
7class PL_ENGINEPLUGINASSETS_DLL plAnimationClipContext : public plEngineProcessDocumentContext
8{
10
11public:
13
14 virtual void HandleMessage(const plEditorEngineDocumentMsg* pMsg) override;
15
16 bool m_bDisplayGrid = true;
17
18protected:
19 virtual void OnInitialize() override;
20
22 virtual void DestroyViewContext(plEngineProcessViewContext* pContext) override;
23 virtual bool UpdateThumbnailViewContext(plEngineProcessViewContext* pThumbnailViewContext) override;
24
25private:
26 void QuerySelectionBBox(const plEditorEngineDocumentMsg* pMsg);
27 void SetPlaybackPosition(double pos);
28
29 plGameObject* m_pGameObject = nullptr;
30 plString m_sAnimatedMeshToUse;
31 plComponentHandle m_hAnimMeshComponent;
32 plComponentHandle m_hAnimControllerComponent;
33};
Definition AnimationClipContext.h:8
Base class for all messages that are tied to some document.
Definition EngineProcessMessages.h:151
A document context is the counter part to an editor document on the engine side.
Definition EngineProcessDocumentContext.h:42
virtual plEngineProcessViewContext * CreateViewContext()=0
Needs to be implemented to create a view context used for windows and thumbnails rendering.
virtual void DestroyViewContext(plEngineProcessViewContext *pContext)=0
Needs to be implemented to destroy the view context created in CreateViewContext.
virtual bool UpdateThumbnailViewContext(plEngineProcessViewContext *pThumbnailViewContext)
Overwrite this function to apply the thumbnail render settings to the given context.
Definition EngineProcessDocumentContext.cpp:603
Represents the view/window on the engine process side, holds all data necessary for rendering.
Definition EngineProcessViewContext.h:54
This class represents an object inside the world.
Definition GameObject.h:32
A handle to a component.
Definition Declarations.h:138