|
| C3D_API | RenderLoopAsync (Engine &engine, uint32_t wantedFPS) |
| | Constructor. More...
|
| |
| C3D_API | ~RenderLoopAsync () override |
| | Destructor. More...
|
| |
| C3D_API bool | isRendering () const |
| | Retrieves the render start status. More...
|
| |
| C3D_API bool | isPaused () const |
| | Retrieves the render paused status. More...
|
| |
| C3D_API bool | isInterrupted () const |
| | Thread-safe. More...
|
| |
| C3D_API bool | isEnded () const |
| | Retrieves the render loop end status. More...
|
| |
| C3D_API void | enableVSync (bool enable) override |
| | Updates the V-Sync status. More...
|
| |
| C3D_API void | beginRendering () override |
| | Starts threaded render loop. More...
|
| |
| C3D_API void | renderSyncFrame (castor::Milliseconds tslf) override |
| | Renders one frame, only if not in render loop. More...
|
| |
| C3D_API void | pause () override |
| | Pauses the render loop. More...
|
| |
| C3D_API void | resume () override |
| | Resumes the render loop. More...
|
| |
| C3D_API void | endRendering () override |
| | Ends the render, cleans up engine. More...
|
| |
| C3D_API | RenderLoop (Engine &engine, uint32_t wantedFPS, bool isAsync) |
| | Constructor. More...
|
| |
| virtual C3D_API | ~RenderLoop () |
| | Destructor. More...
|
| |
| C3D_API void | cleanup () |
| | Cleans up the render loop. More...
|
| |
| C3D_API void | showDebugOverlays (bool show) |
| | Show or hide debug overlays. More...
|
| |
| virtual C3D_API void | enableVSync (bool enable) |
| | Updates the V-Sync status. More...
|
| |
| C3D_API void | flushEvents () |
| | Flushs all events of all frame listeners. More...
|
| |
| C3D_API uint32_t | registerTimer (castor::String const &category, FramePassTimer &timer) |
| | Registers a render pass timer. More...
|
| |
| C3D_API void | unregisterTimer (castor::String const &category, FramePassTimer &timer) |
| | Unregisters a render pass timer. More...
|
| |
| C3D_API void | registerBuffer (ShaderBuffer const &buffer) |
| | Registers a ShaderBuffer. More...
|
| |
| C3D_API void | unregisterBuffer (ShaderBuffer const &buffer) |
| | Unregisters a ShaderBuffer. More...
|
| |
| C3D_API bool | hasDebugOverlays () const |
| |
| C3D_API void | dumpFrameTimes (Parameters ¶ms) const |
| | The average frame time, in nanoseconds. More...
|
| |
| C3D_API castor::Nanoseconds | getAvgFrameTime () const |
| |
| virtual C3D_API void | beginRendering ()=0 |
| | Starts threaded render loop. More...
|
| |
| virtual C3D_API void | renderSyncFrame (castor::Milliseconds tslf=0_ms)=0 |
| | Renders one frame, only if not in render loop. More...
|
| |
| virtual C3D_API void | pause ()=0 |
| | Pauses the render loop. More...
|
| |
| virtual C3D_API void | resume ()=0 |
| | Resumes the render loop. More...
|
| |
| virtual C3D_API void | endRendering ()=0 |
| | Ends the render, cleans up engine. More...
|
| |
| castor::Milliseconds | getFrameTime () const |
| |
| uint32_t | getWantedFps () const |
| |
| castor::Microseconds | getLastFrameTime () const |
| |