Reference Source
public class | source

OcclusionTester

Manages occlusion testing. Private member of a Renderer.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

errors: *

Method Summary

Public Methods
public

addMarker(marker: *)

Adds a Marker for occlusion testing.

public

Prepares for an occlusion test.

public

Destroys this OcclusionTester.

public

Reads render buffer and updates visibility states of Markers if they can be found in the buffer.

public

drawMarkers(frameCtx: *)

Draws Markers to the render buffer.

public

Notifies OcclusionTester that a Marker has updated its World-space position.

public

removeMarker(marker: *)

Removes a Marker from occlusion testing.

public

Unbinds render buffer.

Public Constructors

public constructor() source

Public Members

public errors: * source

Public Methods

public addMarker(marker: *) source

Adds a Marker for occlusion testing.

Params:

NameTypeAttributeDescription
marker *

public bindRenderBuf() source

Prepares for an occlusion test. Binds render buffer.

public destroy() source

Destroys this OcclusionTester.

public doOcclusionTest() source

Reads render buffer and updates visibility states of Markers if they can be found in the buffer.

public drawMarkers(frameCtx: *) source

Draws Markers to the render buffer.

Params:

NameTypeAttributeDescription
frameCtx *

public markerWorldPosUpdated(marker: *) source

Notifies OcclusionTester that a Marker has updated its World-space position.

Params:

NameTypeAttributeDescription
marker *

public removeMarker(marker: *) source

Removes a Marker from occlusion testing.

Params:

NameTypeAttributeDescription
marker *

public unbindRenderBuf() source

Unbinds render buffer.