Plasma Engine  2.0
Loading...
Searching...
No Matches
SceneView.h
1#pragma once
2
3#include <Core/Graphics/Camera.h>
4#include <Core/ResourceManager/ResourceHandle.h>
5#include <EditorEngineProcessFramework/EngineProcess/EngineProcessViewContext.h>
6
7class plView;
11class plEditorRenderPass;
13class plSceneContext;
16
18{
19 plMat4 m_ModelView;
20 float m_PickingID[4];
21};
22
24{
25public:
26 plSceneViewContext(plSceneContext* pSceneContext);
28
29 virtual void HandleViewMessage(const plEditorEngineViewMsg* pMsg) override;
30 virtual void SetupRenderTarget(plGALSwapChainHandle hSwapChain, const plGALRenderTargets* pRenderTargets, plUInt16 uiWidth, plUInt16 uiHeight) override;
31
32 bool UpdateThumbnailCamera(const plBoundingBoxSphere& bounds);
33 void SetInvisibleLayerTags(const plArrayPtr<plTag> removeTags, const plArrayPtr<plTag> addTags);
34
35protected:
36 virtual void Redraw(bool bRenderEditorGizmos) override;
37 virtual void SetCamera(const plViewRedrawMsgToEngine* pMsg) override;
38 virtual plViewHandle CreateView() override;
39
40 void PickObjectAt(plUInt16 x, plUInt16 y);
41 void MarqueePickObjects(const plViewMarqueePickingMsgToEngine* pMsg);
42
43private:
44 plSceneContext* m_pSceneContext;
45
46 bool m_bUpdatePickingData;
47
48 plCamera m_CullingCamera;
49};
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
A camera class that stores the orientation and some basic camera settings.
Definition Camera.h:41
Base class for all messages that are tied to some document.
Definition EngineProcessMessages.h:151
Definition EngineProcessMessages.h:196
A document context is the counter part to an editor document on the engine side.
Definition EngineProcessDocumentContext.h:42
Represents the view/window on the engine process side, holds all data necessary for rendering.
Definition EngineProcessViewContext.h:54
Definition RendererFoundationDLL.h:397
Definition SceneContext.h:25
Definition SceneView.h:24
virtual plViewHandle CreateView() override
Create the actual view.
Definition SceneView.cpp:212
Definition Extractor.h:68
Definition Declarations.h:64
Encapsulates a view on the given world through the given camera and rendered with the specified Rende...
Definition View.h:21
Definition EngineProcessMessages.h:373
Definition EngineProcessMessages.h:257
Definition SceneView.h:18
Definition RenderTargetSetup.h:9