cohtml.Net.SystemRenderer
The SystemRenderer lives on the render thread and holds all resources shared between multiple Views belonging to the same System (font atlases, texture caches etc.)
Inherits from SystemIDisposable
Public Functions
Name | |
---|---|
virtual void | Dispose() |
virtual ViewRenderer | CreateViewRenderer(View owner, ViewRendererSettings settings) Creates a new ViewRenderer used to draw a single View. |
virtual void | Destroy() Destroys the SystemRenderer freeing all resources associated with it. All ViewRenderers created from this should be destroyed before |
virtual void | FreeRenderingResources() Frees all rendering resources used by Cohtml that are shared in the System. system-wide shared rendering resources include textures, shaders, font glyphs, texture sampler objects, pipeline states. path buffers. Constant/vertex/index buffers are managed on a per-view basis and can be freed with cohtml.ViewRenderer.FreeRenderingResources cohtml.ViewRenderer.FreeRenderingResources |
Protected Attributes
Name | |
---|---|
bool | swigCMemOwn |
Public Functions Documentation
function Dispose
virtual void Dispose()
function CreateViewRenderer
virtual ViewRenderer CreateViewRenderer(
View owner,
ViewRendererSettings settings
)
Creates a new ViewRenderer used to draw a single View.
Parameters:
- owner the view that will be rendered by the new ViewRenderer
- settings settings of the new ViewRenderer
Return: the new ViewRenderer instance
Note: Can be called on the main (UI) thread
function Destroy
virtual void Destroy()
Destroys the SystemRenderer freeing all resources associated with it. All ViewRenderers created from this should be destroyed before
function FreeRenderingResources
virtual void FreeRenderingResources()
Frees all rendering resources used by Cohtml that are shared in the System. system-wide shared rendering resources include textures, shaders, font glyphs, texture sampler objects, pipeline states. path buffers. Constant/vertex/index buffers are managed on a per-view basis and can be freed with cohtml.ViewRenderer.FreeRenderingResources cohtml.ViewRenderer.FreeRenderingResources
Protected Attributes Documentation
variable swigCMemOwn
bool swigCMemOwn;