The SystemRenderer lives on the render thread and holds all resources shared between mutliple Views belonging to the same System (font atlases, texture caches etc.)
More...
The SystemRenderer lives on the render thread and holds all resources shared between mutliple Views belonging to the same System (font atlases, texture caches etc.)
◆ CreateViewRenderer()
virtual ViewRenderer* cohtml::SystemRenderer::CreateViewRenderer |
( |
View * |
owner, |
|
|
const ViewRendererSettings & |
settings |
|
) |
| |
|
pure virtual |
◆ Destroy()
virtual void cohtml::SystemRenderer::Destroy |
( |
| ) |
|
|
pure virtual |
Destroys the SystemRenderer freeing all resources associated with it.
- Note
- All ViewRenderers created from this should be destoryed before
◆ FreeRenderingResources()
virtual void cohtml::SystemRenderer::FreeRenderingResources |
( |
| ) |
|
|
pure virtual |
◆ RegisterRenderThread()
virtual void cohtml::SystemRenderer::RegisterRenderThread |
( |
renoir::RendererBackend * |
backend | ) |
|
|
pure virtual |
Registers the SystemRenderer with a render thread and sets the rendering backend.
- Parameters
-
backend | Backend to be used in the render thread |
- Note
- You must call this on the render thread.