nCine::AuxiliaryWindowPresenter class

Shows a texture in a window besides the main one with the graphics backend, see AuxiliaryWindow.

A thin owner of an auxiliary swap chain of the RHI device. OpenGL copies the texture into the window in a context of the window that shares the textures of the main one, Direct3D 11 copies it into a swap chain of the window, Vulkan and Metal blit it into their swap chain of the window when the frame is presented.

Public static functions

static auto Create(RHI::AuxiliarySwapchainDesc&& desc, Vector2i pixelSize) -> std::unique_ptr<AuxiliaryWindowPresenter>
Makes a presenter for a window of a size in pixels, nullptr if the graphics backend can't present into it.
static auto IsSupported() -> bool
Returns true if the graphics backend can present into another window.

Constructors, destructors, conversion operators

~AuxiliaryWindowPresenter()
AuxiliaryWindowPresenter(const AuxiliaryWindowPresenter&) deleted

Public functions

auto operator=(const AuxiliaryWindowPresenter&) -> AuxiliaryWindowPresenter& deleted
void Present(const Texture* contents, Vector2i pixelSize)
Shows a texture in the window of a size in pixels, black where it doesn't reach.