Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_3DI_Library v2.00 Component Reference
|
|
[ TDx_3DDevice::ComputeSphereVisibility() ]
[ next: Create() ]
[ prev: Clear() ]
public:
virtual bool __fastcall ComputeSphereVisibility( D3DVECTOR* pCenters, D3DVALUE* pRadii, dword pNumSpheres, dword* pReturnValues );
TDX_3DDEVICE::COMPUTESPHEREVISIBILITY()
[ component method ]
- Description
The
TDx_3DDevice::ComputeSphereVisibility()
method
will
ascertain
the
viewport
visibility
of
an
array
spheres.
The
visibility
calculation
needs
to
invert
the
combined
world,
view
or
projection
matrices.
If
inversion
of
the
combined
matrix
is
not
possible
(ie:
the
determinant
is
0),
D3DERR_INVALIDMATRIX
is
returned.
If
the
method
call
fails,
the
OnError
event
will
be
triggered
with
one
of
the
following
values:
D3DERR_INVALIDMATRIX
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
- Parameters
Centers
The Centers parameter references an array of TD3DVector components defining the world space center of each sphere.
Radii
The Radii parameter references an array of D3DVALUE's representing the radius of each sphere.
NumSpheres
The NumSpheres parameter defines how many spheres are to be tested.
This parameter must be greater than zero.
ReturnValues
The ReturnValues parameter will reference an array of DWORD's, one element for each sphere tested, if this method returns successfully.
If a sphere is fully visible, its corresponding element will be 0.
If a sphere is partially or completely obscured, the corresponding element will contain a combination of clipping flags that indicate the spheres visibility.
The clip flags returned correspond to those described in TD3DClipStatus::Status.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|