#include <RenderWindow.hpp>
◆ RenderWindow()
C3D_API castor3d::RenderWindow::RenderWindow |
( |
castor::String const & |
name, |
|
|
Engine & |
engine, |
|
|
castor::Size const & |
size, |
|
|
ashes::WindowHandle |
handle |
|
) |
| |
Constructor.
- Parameters
-
[in] | engine | The engine. |
[in] | name | The window name. |
[in] | size | The window size. |
[in] | handle | The native window handle. |
◆ ~RenderWindow()
C3D_API castor3d::RenderWindow::~RenderWindow |
( |
| ) |
|
◆ addPickingScene()
C3D_API void castor3d::RenderWindow::addPickingScene |
( |
Scene & |
scene | ) |
|
Adds a scene that can be picked.
- Parameters
-
◆ cleanup()
C3D_API void castor3d::RenderWindow::cleanup |
( |
| ) |
|
◆ enableFullScreen()
C3D_API void castor3d::RenderWindow::enableFullScreen |
( |
bool |
value | ) |
|
Changes fullscreen status.
- Parameters
-
◆ enableLoading()
C3D_API void castor3d::RenderWindow::enableLoading |
( |
| ) |
|
◆ enableSaveFrame()
void castor3d::RenderWindow::enableSaveFrame |
( |
| ) |
|
|
inline |
◆ enableVSync()
void castor3d::RenderWindow::enableVSync |
( |
bool |
value | ) |
|
|
inline |
◆ getCamera()
C3D_API CameraSPtr castor3d::RenderWindow::getCamera |
( |
| ) |
const |
◆ getDebugConfig()
DebugConfig & castor3d::RenderWindow::getDebugConfig |
( |
| ) |
|
|
inline |
◆ getDevice()
RenderDevice const & castor3d::RenderWindow::getDevice |
( |
| ) |
const |
|
inline |
◆ getEventHandler()
EventHandlerSPtr castor3d::RenderWindow::getEventHandler |
( |
| ) |
|
|
inline |
◆ getIndex()
uint32_t castor3d::RenderWindow::getIndex |
( |
| ) |
const |
|
inline |
◆ getIntraOcularDistance()
C3D_API float castor3d::RenderWindow::getIntraOcularDistance |
( |
| ) |
const |
Retrieves the intra ocular distance.
- Returns
- The intra ocular distance
◆ getListener()
FrameListenerSPtr castor3d::RenderWindow::getListener |
( |
| ) |
const |
|
inline |
◆ getPickedFace()
C3D_API uint32_t castor3d::RenderWindow::getPickedFace |
( |
| ) |
const |
◆ getPickedGeometry()
C3D_API GeometrySPtr castor3d::RenderWindow::getPickedGeometry |
( |
| ) |
const |
◆ getPickedSubmesh()
C3D_API SubmeshSPtr castor3d::RenderWindow::getPickedSubmesh |
( |
| ) |
const |
◆ getPixelFormat()
C3D_API VkFormat castor3d::RenderWindow::getPixelFormat |
( |
| ) |
const |
- Returns
- The window pixel format.
◆ getProgressBar()
ProgressBar & castor3d::RenderWindow::getProgressBar |
( |
| ) |
|
|
inline |
◆ getRenderTarget()
RenderTargetSPtr castor3d::RenderWindow::getRenderTarget |
( |
| ) |
const |
|
inline |
◆ getSavedFrame()
castor::PxBufferBaseSPtr castor3d::RenderWindow::getSavedFrame |
( |
| ) |
const |
|
inline |
◆ getScene()
C3D_API SceneRPtr castor3d::RenderWindow::getScene |
( |
| ) |
const |
◆ getShadowMaps()
◆ getSize()
C3D_API castor::Size castor3d::RenderWindow::getSize |
( |
| ) |
const |
- Returns
- The window dimensions.
◆ getSurface()
ashes::Surface const & castor3d::RenderWindow::getSurface |
( |
| ) |
const |
|
inline |
◆ getViewportType()
◆ initialise()
C3D_API void castor3d::RenderWindow::initialise |
( |
RenderTargetSPtr |
value | ) |
|
◆ isFullscreen()
bool castor3d::RenderWindow::isFullscreen |
( |
| ) |
const |
|
inline |
◆ isSkipped()
bool castor3d::RenderWindow::isSkipped |
( |
| ) |
const |
|
inline |
◆ isUsingStereo()
C3D_API bool castor3d::RenderWindow::isUsingStereo |
( |
| ) |
const |
- Returns
true
if stereo is used.
◆ isVSyncEnabled()
bool castor3d::RenderWindow::isVSyncEnabled |
( |
| ) |
const |
|
inline |
◆ listIntermediateViews()
C3D_API IntermediateViewArray const & castor3d::RenderWindow::listIntermediateViews |
( |
| ) |
const |
- Returns
- The intermediate views used by this render window.
◆ pick()
Picks a geometry at given mouse position.
- Parameters
-
[in] | position | The position in the pass. |
- Returns
- PickNodeType::eNone if nothing was picked.
◆ render()
C3D_API void castor3d::RenderWindow::render |
( |
RenderInfo & |
info, |
|
|
bool |
signalOnly, |
|
|
crg::SemaphoreWaitArray & |
toWait |
|
) |
| |
Renders one frame.
- Parameters
-
[in,out] | info | Receives the render infos. |
[in] | signalOnly | true to only signal the semaphores. |
[in] | toWait | The semaphores to wait. |
◆ resize() [1/2]
C3D_API void castor3d::RenderWindow::resize |
( |
castor::Size const & |
size | ) |
|
Resizes the window.
- Parameters
-
◆ resize() [2/2]
C3D_API void castor3d::RenderWindow::resize |
( |
uint32_t |
x, |
|
|
uint32_t |
y |
|
) |
| |
Resizes the window.
- Parameters
-
◆ setCamera()
C3D_API void castor3d::RenderWindow::setCamera |
( |
CameraSPtr |
camera | ) |
|
Sets the camera.
- Parameters
-
◆ setFullscreen()
void castor3d::RenderWindow::setFullscreen |
( |
bool |
value | ) |
|
|
inline |
◆ setIntraOcularDistance()
C3D_API void castor3d::RenderWindow::setIntraOcularDistance |
( |
float |
intraOcularDistance | ) |
|
Defines the intra ocular distance.
- Parameters
-
[in] | intraOcularDistance | The intra ocular distance. |
◆ setScene()
C3D_API void castor3d::RenderWindow::setScene |
( |
Scene & |
value | ) |
|
Sets the Scene.
- Parameters
-
◆ setStereo()
C3D_API void castor3d::RenderWindow::setStereo |
( |
bool |
stereo | ) |
|
Defines the stereo status.
- Parameters
-
[in] | stereo | true if stereo is to be used. |
◆ setViewportType()
Sets the ViewportType.
- Parameters
-
◆ update() [1/2]
Updates the render window, CPU wise.
- Parameters
-
[in,out] | updater | The update data. |
◆ update() [2/2]
Updates the render window, GPU wise.
- Parameters
-
[in,out] | updater | The update data. |
◆ upload()
C3D_API void castor3d::RenderWindow::upload |
( |
ashes::CommandBuffer const & |
cb | ) |
|
Uploads overlays GPU buffers to VRAM.
- Parameters
-
[in] | cb | The command buffer on which transfer commands are recorded. |
The documentation for this class was generated from the following file: