Plasma Engine  2.0
Loading...
Searching...
No Matches
XRSwapChain.h
1#pragma once
2
3#include <GameEngine/GameEngineDLL.h>
4
5#include <RendererFoundation/Device/SwapChain.h>
6
7class plXRInterface;
8
9class PL_GAMEENGINE_DLL plGALXRSwapChain : public plGALSwapChain
10{
11public:
13 static void SetFactoryMethod(Functor factory);
14
15 static plGALSwapChainHandle Create(plXRInterface* pXrInterface);
16
17public:
18 plGALXRSwapChain(plXRInterface* pXrInterface);
19 virtual plResult UpdateSwapChain(plGALDevice* pDevice, plEnum<plGALPresentMode> newPresentMode) override;
20
21protected:
22 static Functor s_Factory;
23
24protected:
25 plXRInterface* m_pXrInterface = nullptr;
26};
27PL_DECLARE_REFLECTABLE_TYPE(PL_GAMEENGINE_DLL, plGALXRSwapChain);
The plRenderDevice class is the primary interface for interactions with rendering APIs It contains a ...
Definition Device.h:19
Definition RendererFoundationDLL.h:397
Definition SwapChain.h:11
Definition XRSwapChain.h:10
XR singleton interface. Needs to be initialized to be used for VR or AR purposes.
Definition XRInterface.h:29
A generic delegate class which supports static functions and member functions.
Definition Delegate.h:76
A custom enum implementation that allows to define the underlying storage type to control its memory ...
Definition Enum.h:37
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54