XII Release 0.1.0
Loading...
Searching...
No Matches
xiiSceneCameraPreview Class Reference

#include <SceneCameraPreview.h>

Public Member Functions

 xiiSceneCameraPreview (xiiWorld &world)
 Copyright (c) Theophilus Eriata. All Rights Reserved.
 XII_DISALLOW_COPY_AND_ASSIGN (xiiSceneCameraPreview)
xiiResult Update (const xiiView &editorView, const xiiCameraComponent &camera)
void SuspendRendering ()
xiiView * GetView () const
 Non-owning view; caller must hold the world's access marker for the entire use.

Detailed Description

A scene viewport's selected-camera preview. Owns an independent world-local view, camera and 256x144 render target; pipeline definitions are shared through the viewport's resource handle. Uses the regular native rendering pipeline and debug overlay, without an extractor or global render-target resource. The overlay samples the most recently rendered preview (initially black). Must be destroyed before its world. Call SuspendRendering() when consuming the viewport's redraw.

Member Function Documentation

◆ Update()

xiiResult xiiSceneCameraPreview::Update ( const xiiView & editorView,
const xiiCameraComponent & camera )

Updates from an active camera in the same world and queues its overlay in an Editor view. Camera usage None is supported. Stereo cameras use a 45-degree mono perspective preview. Failure suspends the preview. Acquires the world's write marker internally.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/EditorPlugins/Scene/SharedPluginScene/Scene/SceneCameraPreview.h
  • /home/runner/work/XII/XII/Source/EditorPlugins/Scene/SharedPluginScene/Scene/Implementation/SceneCameraPreview.cpp