C3DCamera::ObjectInView

Top  Previous  Next

Syntax:
 
ObjectInView(POINTER pObject), INT
 
Purpose:
Tests whether an object is within the viewing frustum of a camera.
 

Parameters:

pObject - A C3DObject or derivatives.
 

Returned value(s):

TRUE if the any part of the object is within the viewing frustum of the camera. FALSE otherwise
 

Application:

if cam1.ObjectInView(mesh1)
  ShowStats()
endif

 

Additional Info:

The object must be visible for ObjectInView to return TRUE.