Contents

drawableTargetViewCount(target:)

Returns the number of view in the drawable target.

Declaration

func drawableTargetViewCount(target drawable_target: LayerRenderer.Drawable.Target) -> Int

Parameters

  • drawable_target:

    Whether this is intended for built_in or recorderdrawable

Return Value

The number of views available for drawing. For example, a return value of 2 indicates there are two views for this target drawable in this frame. value of 0 indicates there is no view available for this target drawable in this frame.

Discussion

Use the returned value as the maximum number of views to retrieve from the cp_frame_binocular_frustum_matrix_for_drawable_target or cp_frame_monocular_frustum_matrix_for_drawable_target functions.