Reference Source
public class | source

OcclusionTester

Manages occlusion testing. Private member of a Renderer.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

errors: *

public get

Returns true if an occlusion test is needed.

Method Summary

Public Methods
public

addMarker(marker: *)

Adds a Marker for occlusion testing.

public

Binds the render buffer.

public

Destroys this OcclusionTester.

public

Sets visibilities of Markers according to whether or not they are obscured by anything in the render buffer.

public

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 destroyed: boolean source

public errors: * source

public get needOcclusionTest: boolean: * source

Returns true if an occlusion test is needed.

Return:

boolean

Public Methods

public addMarker(marker: *) source

Adds a Marker for occlusion testing.

Params:

NameTypeAttributeDescription
marker *

public bindRenderBuf() source

Binds the render buffer. After calling this, the caller then renders object silhouettes to the render buffer, then calls drawMarkers() and doOcclusionTest().

public destroy() source

Destroys this OcclusionTester.

public doOcclusionTest() source

Sets visibilities of Markers according to whether or not they are obscured by anything in the render buffer.

public drawMarkers() source

Draws Markers to the render buffer.

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.