Plasma Engine  2.0
Loading...
Searching...
No Matches
DecalContext.h
1#pragma once
2
3#include <EditorEngineProcessFramework/EngineProcess/EngineProcessDocumentContext.h>
4#include <EnginePluginAssets/EnginePluginAssetsDLL.h>
5#include <RendererCore/Meshes/MeshResource.h>
6
7class PL_ENGINEPLUGINASSETS_DLL plDecalContext : public plEngineProcessDocumentContext
8{
9 PL_ADD_DYNAMIC_REFLECTION(plDecalContext, plEngineProcessDocumentContext);
10
11public:
13
14protected:
15 virtual void OnInitialize() override;
16
18 virtual void DestroyViewContext(plEngineProcessViewContext* pContext) override;
19
20private:
21 plMeshResourceHandle m_hPreviewMeshResource;
22
23 // plDecalResourceHandle m_hDecal;
24};
Definition DecalContext.h:8
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.
Represents the view/window on the engine process side, holds all data necessary for rendering.
Definition EngineProcessViewContext.h:54