cohtml.Compositor

A class used to implement the Compositor and Surface Partitioning features.

Public Functions

Name
Compositor()
voidRegisterView(uint viewId)
Informs the Compositor that a specific CohtmlView will have compositions.
voidDeregisterView(uint viewId)
Removes a specific CohtmlView from the Compositor.
voidPaintCompositionsForView(uint viewId, Material renderMaterial, bool clearTexture =false)
Renders the available compositions for a CohtmlView.

Public Functions Documentation

function Compositor

Compositor()

function RegisterView

void RegisterView(
    uint viewId
)

Informs the Compositor that a specific CohtmlView will have compositions.

Parameters:

function DeregisterView

void DeregisterView(
    uint viewId
)

Removes a specific CohtmlView from the Compositor.

Parameters:

function PaintCompositionsForView

void PaintCompositionsForView(
    uint viewId,
    Material renderMaterial,
    bool clearTexture =false
)

Renders the available compositions for a CohtmlView.

Parameters:

  • viewId The identification number of the CohtmlView.
  • renderMaterial The material used for rendering the compositions.
  • clearTexture Whether the current rendering texture should be cleared.