Castor3D
..
|
Synchronous render loop. More...
Public Member Functions | |
C3D_API | RenderLoopSync (Engine &p_engine, RenderSystem *p_renderSystem, uint32_t p_wantedFPS=100) |
Constructor. More... | |
C3D_API | ~RenderLoopSync () |
Destructor. More... | |
Public Member Functions inherited from Castor3D::RenderLoop | |
C3D_API | RenderLoop (Engine &p_engine, RenderSystem *p_renderSystem, uint32_t p_wantedFPS) |
Constructor. More... | |
virtual C3D_API | ~RenderLoop () |
Destructor. More... | |
C3D_API void | Cleanup () |
Cleans up the render loop. More... | |
C3D_API void | StartRendering () |
Starts render loop. More... | |
C3D_API void | RenderSyncFrame () |
Renders one frame. More... | |
C3D_API void | Pause () |
Pauses the render loop. More... | |
C3D_API void | Resume () |
Resumes the render loop. More... | |
C3D_API void | EndRendering () |
Ends the render. More... | |
C3D_API uint32_t | GetFrameTime () |
Retrieves the wanted frame time. More... | |
C3D_API uint32_t | GetWantedFps () |
C3D_API void | CreateContext (RenderWindow &p_window) |
Creates a render context. More... | |
C3D_API void | ShowDebugOverlays (bool p_show) |
Show or hide debug overlays. More... | |
virtual C3D_API void | UpdateVSync (bool p_enable) |
Updates the V-Sync status. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Castor3D::RenderLoop | |
C3D_API ContextSPtr | DoCreateContext (RenderWindow &p_window) |
Asks for render context creation. More... | |
C3D_API void | DoRenderFrame () |
Starts threaded render loop. More... | |
Protected Attributes inherited from Castor3D::RenderLoop | |
RenderSystem * | m_renderSystem |
The current RenderSystem. More... | |
uint32_t | m_wantedFPS |
The wanted FPS, used in threaded render mode. More... | |
uint32_t | m_frameTime |
The wanted time for a frame. More... | |
std::unique_ptr< DebugOverlays > | m_debugOverlays |
The debug overlays. More... | |
Synchronous render loop.
C3D_API Castor3D::RenderLoopSync::RenderLoopSync | ( | Engine & | p_engine, |
RenderSystem * | p_renderSystem, | ||
uint32_t | p_wantedFPS = 100 |
||
) |
Constructor.
[in] | p_engine | The engine. |
[in] | p_renderSystem | The render system. |
[in] | p_wantedFPS | The wanted FPS count. |
C3D_API Castor3D::RenderLoopSync::~RenderLoopSync | ( | ) |
Destructor.