Plasma Engine
2.0
Loading...
Searching...
No Matches
EditorSelectedObjectsExtractor.h
1
#pragma once
2
3
#include <Core/Graphics/Camera.h>
4
#include <RendererCore/Declarations.h>
5
#include <RendererCore/Pipeline/Declarations.h>
6
#include <RendererCore/Pipeline/Extractor.h>
7
8
class
plSceneContext
;
9
class
plCameraComponent
;
10
11
class
plEditorSelectedObjectsExtractor
:
public
plSelectedObjectsExtractorBase
12
{
13
PL_ADD_DYNAMIC_REFLECTION(
plEditorSelectedObjectsExtractor
,
plSelectedObjectsExtractorBase
);
14
15
public
:
16
plEditorSelectedObjectsExtractor
();
17
~plEditorSelectedObjectsExtractor
();
18
19
virtual
const
plDeque<plGameObjectHandle>
* GetSelection()
override
;
20
21
virtual
void
Extract(
const
plView
& view,
const
plDynamicArray<const plGameObject*>
& visibleObjects,
plExtractedRenderData
& ref_extractedRenderData)
override
;
22
virtual
plResult
Serialize(
plStreamWriter
& inout_stream)
const override
;
23
virtual
plResult
Deserialize(
plStreamReader
& inout_stream)
override
;
24
25
void
SetSceneContext(
plSceneContext
* pSceneContext) { m_pSceneContext = pSceneContext; }
26
plSceneContext
* GetSceneContext()
const
{
return
m_pSceneContext; }
27
28
private
:
29
void
CreateRenderTargetTexture(
const
plView
& view);
30
void
CreateRenderTargetView(
const
plView
& view);
31
void
UpdateRenderTargetCamera(
const
plCameraComponent
* pCamComp);
32
33
plSceneContext
* m_pSceneContext;
34
plViewHandle
m_hRenderTargetView;
35
plRenderToTexture2DResourceHandle
m_hRenderTarget;
36
plCamera
m_RenderTargetCamera;
37
};
plCameraComponent
Adds a camera to the scene.
Definition
CameraComponent.h:57
plCamera
A camera class that stores the orientation and some basic camera settings.
Definition
Camera.h:41
plDeque
Definition
Deque.h:270
plDynamicArray
Definition
DynamicArray.h:81
plEditorSelectedObjectsExtractor
Definition
EditorSelectedObjectsExtractor.h:12
plExtractedRenderData
Definition
ExtractedRenderData.h:10
plSceneContext
Definition
SceneContext.h:25
plSelectedObjectsExtractorBase
Definition
Extractor.h:68
plStreamReader
Interface for binary in (read) streams.
Definition
Stream.h:22
plStreamWriter
Interface for binary out (write) streams.
Definition
Stream.h:107
plTypedResourceHandle< class plRenderToTexture2DResource >
plViewHandle
Definition
Declarations.h:64
plView
Encapsulates a view on the given world through the given camera and rendered with the specified Rende...
Definition
View.h:21
plResult
Default enum for returning failure or success, instead of using a bool.
Definition
Types.h:54
Code
EditorPlugins
Scene
EnginePluginScene
RenderPipeline
EditorSelectedObjectsExtractor.h
Generated by
1.11.0