Castor3D 0.16.0
Multiplatform 3D engine
|
#include <RenderWindow.hpp>
Classes | |
class | EvtHandler |
class | InputListener |
Public Member Functions | |
C3D_API | RenderWindow (castor::String const &name, Engine &engine, castor::Size const &size, ashes::WindowHandle handle) |
Constructor. | |
C3D_API | ~RenderWindow () noexcept |
Destructor. | |
C3D_API void | initialise (RenderWindowDesc const &desc) |
Initialises the render window with given RenderTarget. | |
C3D_API void | cleanup () |
Cleans up the instance. | |
C3D_API void | update (CpuUpdater &updater) |
Updates the render window, CPU wise. | |
C3D_API void | update (GpuUpdater &updater) |
Updates the render window, GPU wise. | |
C3D_API void | upload (UploadData &uploader) |
Uploads overlays GPU buffers to VRAM. | |
C3D_API void | render (RenderInfo &info, bool signalOnly, crg::SemaphoreWaitArray &toWait) |
Renders one frame. | |
C3D_API void | resize (uint32_t x, uint32_t y) |
Resizes the window. | |
C3D_API void | resize (castor::Size const &size) |
Resizes the window. | |
C3D_API void | setCamera (Camera &camera) const |
Sets the camera. | |
C3D_API void | enableFullScreen (bool value) |
Changes fullscreen status. | |
C3D_API SceneRPtr | getScene () const |
C3D_API CameraRPtr | getCamera () const |
C3D_API ViewportType | getViewportType () const |
C3D_API void | setViewportType (ViewportType value) const |
Sets the ViewportType. | |
C3D_API void | setScene (Scene &value) const |
Sets the Scene. | |
C3D_API castor::Size | getSize () const |
C3D_API bool | isUsingStereo () const |
C3D_API void | setStereo (bool stereo) const |
Defines the stereo status. | |
C3D_API float | getIntraOcularDistance () const |
Retrieves the intra ocular distance. | |
C3D_API void | setIntraOcularDistance (float intraOcularDistance) const |
Defines the intra ocular distance. | |
C3D_API VkFormat | getPixelFormat () const |
C3D_API PickNodeType | pick (castor::Position const &position) |
Picks a geometry at given mouse position. | |
C3D_API void | destroyLoadingScreen () |
Destroys the loading scene. | |
C3D_API void | createLoadingScreen () |
Creates the loading scene. | |
C3D_API GeometryRPtr | getPickedGeometry () const |
C3D_API Submesh const * | getPickedSubmesh () const |
C3D_API uint32_t | getPickedFace () const |
C3D_API ShadowMapLightTypeArray | getShadowMaps () const |
C3D_API ShadowBuffer * | getShadowBuffer () const |
uint32_t | getIndex () const noexcept |
FrameListenerRPtr | getListener () const noexcept |
RenderDevice const & | getDevice () const noexcept |
RenderTargetRPtr | getRenderTarget () const noexcept |
bool | isVSyncEnabled () const noexcept |
bool | isFullscreen () const noexcept |
bool | isSkipped () const noexcept |
castor::PxBufferBaseRPtr | getSavedFrame () const noexcept |
ashes::Surface const & | getSurface () const noexcept |
ProgressBar & | getProgressBar () noexcept |
EventHandlerRPtr | getEventHandler () const noexcept |
C3D_API void | enableLoading () |
C3D_API void | allowHdrSwapchain (bool value=true) |
void | enableVSync (bool value) noexcept |
void | setFullscreen (bool value) noexcept |
void | enableSaveFrame (bool value=true) noexcept |
Public Member Functions inherited from castor::OwnedBy< Engine > | |
Engine * | getOwner () const |
Public Member Functions inherited from castor::NamedBaseT< T > | |
NamedBaseT (T name) noexcept | |
Constructor. | |
T const & | getName () const noexcept |
Retrieves the name. | |
void | rename (T name) noexcept |
Additional Inherited Members | |
Protected Member Functions inherited from castor::OwnedBy< Engine > | |
OwnedBy (Engine &owner) | |
Constructor. | |
Protected Attributes inherited from castor::NamedBaseT< T > | |
T | m_name |
C3D_API castor3d::RenderWindow::RenderWindow | ( | castor::String const & | name, |
Engine & | engine, | ||
castor::Size const & | size, | ||
ashes::WindowHandle | handle ) |
Constructor.
[in] | engine | The engine. |
[in] | name | The window name. |
[in] | size | The window size. |
[in] | handle | The native window handle. |
|
noexcept |
Destructor.
C3D_API void castor3d::RenderWindow::allowHdrSwapchain | ( | bool | value = true | ) |
C3D_API void castor3d::RenderWindow::cleanup | ( | ) |
Cleans up the instance.
C3D_API void castor3d::RenderWindow::createLoadingScreen | ( | ) |
Creates the loading scene.
C3D_API void castor3d::RenderWindow::destroyLoadingScreen | ( | ) |
Destroys the loading scene.
C3D_API void castor3d::RenderWindow::enableFullScreen | ( | bool | value | ) |
Changes fullscreen status.
[in] | value | The new status. |
C3D_API void castor3d::RenderWindow::enableLoading | ( | ) |
name Mutators.
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API CameraRPtr castor3d::RenderWindow::getCamera | ( | ) | const |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API float castor3d::RenderWindow::getIntraOcularDistance | ( | ) | const |
Retrieves the intra ocular distance.
|
inlinenoexcept |
C3D_API uint32_t castor3d::RenderWindow::getPickedFace | ( | ) | const |
C3D_API GeometryRPtr castor3d::RenderWindow::getPickedGeometry | ( | ) | const |
name Getters.
C3D_API VkFormat castor3d::RenderWindow::getPixelFormat | ( | ) | const |
|
inlinenoexcept |
References CU_Require.
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API SceneRPtr castor3d::RenderWindow::getScene | ( | ) | const |
C3D_API ShadowBuffer * castor3d::RenderWindow::getShadowBuffer | ( | ) | const |
C3D_API ShadowMapLightTypeArray castor3d::RenderWindow::getShadowMaps | ( | ) | const |
C3D_API castor::Size castor3d::RenderWindow::getSize | ( | ) | const |
|
inlinenoexcept |
References CU_Require.
C3D_API ViewportType castor3d::RenderWindow::getViewportType | ( | ) | const |
C3D_API void castor3d::RenderWindow::initialise | ( | RenderWindowDesc const & | desc | ) |
Initialises the render window with given RenderTarget.
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API bool castor3d::RenderWindow::isUsingStereo | ( | ) | const |
true
if stereo is used.
|
inlinenoexcept |
C3D_API PickNodeType castor3d::RenderWindow::pick | ( | castor::Position const & | position | ) |
Picks a geometry at given mouse position.
[in] | position | The position in the pass. |
C3D_API void castor3d::RenderWindow::render | ( | RenderInfo & | info, |
bool | signalOnly, | ||
crg::SemaphoreWaitArray & | toWait ) |
Renders one frame.
[in,out] | info | Receives the render infos. |
[in] | signalOnly | true to only signal the semaphores. |
[in] | toWait | The semaphores to wait. |
C3D_API void castor3d::RenderWindow::resize | ( | castor::Size const & | size | ) |
Resizes the window.
[in] | size | The new size. |
C3D_API void castor3d::RenderWindow::resize | ( | uint32_t | x, |
uint32_t | y ) |
Resizes the window.
[in] | x,y | The new size. |
Sets the camera.
[in] | camera | The camera. |
|
inlinenoexcept |
C3D_API void castor3d::RenderWindow::setIntraOcularDistance | ( | float | intraOcularDistance | ) | const |
Defines the intra ocular distance.
[in] | intraOcularDistance | The intra ocular distance. |
Sets the Scene.
[in] | value | The new value. |
C3D_API void castor3d::RenderWindow::setStereo | ( | bool | stereo | ) | const |
Defines the stereo status.
[in] | stereo | true if stereo is to be used. |
C3D_API void castor3d::RenderWindow::setViewportType | ( | ViewportType | value | ) | const |
Sets the ViewportType.
[in] | value | The new value. |
C3D_API void castor3d::RenderWindow::update | ( | CpuUpdater & | updater | ) |
Updates the render window, CPU wise.
[in,out] | updater | The update data. |
C3D_API void castor3d::RenderWindow::update | ( | GpuUpdater & | updater | ) |
Updates the render window, GPU wise.
[in,out] | updater | The update data. |
C3D_API void castor3d::RenderWindow::upload | ( | UploadData & | uploader | ) |
Uploads overlays GPU buffers to VRAM.
[in,out] | uploader | Receives the upload requests. |