Condividi tramite


Visibility.VisibilityTest Method

Definition

Test whether a given triangle mesh is visible on the screen.

[Android.Runtime.Register("visibilityTest", "([FI[FI[CII)I", "")]
public static int VisibilityTest (float[]? ws, int wsOffset, float[]? positions, int positionsOffset, char[]? indices, int indicesOffset, int indexCount);
[<Android.Runtime.Register("visibilityTest", "([FI[FI[CII)I", "")>]
static member VisibilityTest : single[] * int * single[] * int * char[] * int * int -> int

Parameters

ws
Single[]

the world space to screen space transform matrix, as an OpenGL column matrix.

wsOffset
Int32

an index into the ws array where the data starts.

positions
Single[]

the vertex positions (x, y, z).

positionsOffset
Int32

the index in the positions array where the data starts.

indices
Char[]

the indices of the triangle list. The indices are expressed as chars because they are unsigned 16-bit values.

indicesOffset
Int32

the index in the indices array where the index data starts.

indexCount
Int32

the number of indices in use. Typically a multiple of three. If not a multiple of three, the remaining one or two indices will be ignored.

Returns

2 if all of the mesh is visible, 1 if some part of the mesh is visible, 0 if no part is visible.

Attributes

Exceptions

if ws is null, wsOffset indices.length - indexCount

Remarks

Test whether a given triangle mesh is visible on the screen. The mesh is specified as an indexed triangle list.

Java documentation for android.opengl.Visibility.visibilityTest(float[], int, float[], int, char[], int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to