/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/Assets/EnginePluginAssets/AnimatedMeshAsset/AnimatedMeshContext.h
36 строк
1 KB
Jan Krassnigg
Added .gitattributes file to enforce consistent line-endings (#872)
16 фев 2023, 20:57
Не верифицирован
16 фев 2023, 20:57
565458b
Код
Авторство
О чём код?
#pragma once #include <EditorEngineProcessFramework/EngineProcess/EngineProcessDocumentContext.h> #include <EnginePluginAssets/EnginePluginAssetsDLL.h> #include <RendererCore/Declarations.h> #include <RendererCore/Meshes/MeshResource.h> class ezObjectSelectionMsgToEngine; class ezRenderContext; class EZ_ENGINEPLUGINASSETS_DLL ezAnimatedMeshContext : public ezEngineProcessDocumentContext { EZ_ADD_DYNAMIC_REFLECTION(ezAnimatedMeshContext, ezEngineProcessDocumentContext); public: ezAnimatedMeshContext(); virtual void HandleMessage(const ezEditorEngineDocumentMsg* pMsg) override; const ezMeshResourceHandle& GetAnimatedMesh() const { return m_hAnimatedMesh; } bool m_bDisplayGrid = true; protected: virtual void OnInitialize() override; virtual ezEngineProcessViewContext* CreateViewContext() override; virtual void DestroyViewContext(ezEngineProcessViewContext* pContext) override; virtual bool UpdateThumbnailViewContext(ezEngineProcessViewContext* pThumbnailViewContext) override; private: void QuerySelectionBBox(const ezEditorEngineDocumentMsg* pMsg); ezGameObject* m_pAnimatedMeshObject; ezMeshResourceHandle m_hAnimatedMesh; };