Render loop base class.
More...
Render loop base class.
- Author
- Sylvain DOREMUS
- Date
- 14/10/2015
- Version
- 0.8.0
◆ RenderLoop()
C3D_API Castor3D::RenderLoop::RenderLoop |
( |
Engine & |
p_engine, |
|
|
RenderSystem * |
p_renderSystem, |
|
|
uint32_t |
p_wantedFPS |
|
) |
| |
Constructor.
- Parameters
-
[in] | p_engine | The engine. |
[in] | p_renderSystem | The render system. |
[in] | p_wantedFPS | The wanted FPS count. |
◆ ~RenderLoop()
virtual C3D_API Castor3D::RenderLoop::~RenderLoop |
( |
| ) |
|
|
virtual |
◆ Cleanup()
C3D_API void Castor3D::RenderLoop::Cleanup |
( |
| ) |
|
Cleans up the render loop.
◆ CreateContext()
C3D_API void Castor3D::RenderLoop::CreateContext |
( |
RenderWindow & |
p_window | ) |
|
Creates a render context.
- Parameters
-
[in] | p_window | The render window used to initialise the render context, receives the context. |
◆ DoCreateContext()
C3D_API ContextSPtr Castor3D::RenderLoop::DoCreateContext |
( |
RenderWindow & |
p_window | ) |
|
|
protected |
Asks for render context creation.
- Parameters
-
[in] | p_window | The render window used to initialise the render context, receives the context. |
- Returns
- The created context, or the existing one.
◆ DoCreateMainContext()
virtual C3D_API ContextSPtr Castor3D::RenderLoop::DoCreateMainContext |
( |
RenderWindow & |
p_window | ) |
|
|
protectedpure virtual |
Asks for main render context creation.
- Parameters
-
[in] | p_window | The render window used to initialise the render context, receives the context. |
◆ DoEndRendering()
virtual C3D_API void Castor3D::RenderLoop::DoEndRendering |
( |
| ) |
|
|
protectedpure virtual |
Ends the render, cleans upĀ engine.
◆ DoPause()
virtual C3D_API void Castor3D::RenderLoop::DoPause |
( |
| ) |
|
|
protectedpure virtual |
◆ DoRenderFrame()
C3D_API void Castor3D::RenderLoop::DoRenderFrame |
( |
| ) |
|
|
protected |
Starts threaded render loop.
◆ DoRenderSyncFrame()
virtual C3D_API void Castor3D::RenderLoop::DoRenderSyncFrame |
( |
| ) |
|
|
protectedpure virtual |
Renders one frame, only if not in render loop.
◆ DoResume()
virtual C3D_API void Castor3D::RenderLoop::DoResume |
( |
| ) |
|
|
protectedpure virtual |
◆ DoStartRendering()
virtual C3D_API void Castor3D::RenderLoop::DoStartRendering |
( |
| ) |
|
|
protectedpure virtual |
Starts threaded render loop.
◆ EndRendering()
C3D_API void Castor3D::RenderLoop::EndRendering |
( |
| ) |
|
◆ GetFrameTime()
C3D_API uint32_t Castor3D::RenderLoop::GetFrameTime |
( |
| ) |
|
Retrieves the wanted frame time.
- Returns
- The time, in milliseconds.
◆ GetWantedFps()
C3D_API uint32_t Castor3D::RenderLoop::GetWantedFps |
( |
| ) |
|
- Returns
- The wanted refresh rate.
◆ Pause()
C3D_API void Castor3D::RenderLoop::Pause |
( |
| ) |
|
◆ RenderSyncFrame()
C3D_API void Castor3D::RenderLoop::RenderSyncFrame |
( |
| ) |
|
◆ Resume()
C3D_API void Castor3D::RenderLoop::Resume |
( |
| ) |
|
◆ ShowDebugOverlays()
C3D_API void Castor3D::RenderLoop::ShowDebugOverlays |
( |
bool |
p_show | ) |
|
Show or hide debug overlays.
- Parameters
-
◆ StartRendering()
C3D_API void Castor3D::RenderLoop::StartRendering |
( |
| ) |
|
◆ UpdateVSync()
virtual C3D_API void Castor3D::RenderLoop::UpdateVSync |
( |
bool |
p_enable | ) |
|
|
virtual |
◆ m_debugOverlays
std::unique_ptr< DebugOverlays > Castor3D::RenderLoop::m_debugOverlays |
|
protected |
◆ m_frameTime
uint32_t Castor3D::RenderLoop::m_frameTime |
|
protected |
The wanted time for a frame.
◆ m_renderSystem
◆ m_wantedFPS
uint32_t Castor3D::RenderLoop::m_wantedFPS |
|
protected |
The wanted FPS, used in threaded render mode.
The documentation for this class was generated from the following file: