Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

D3D9
[RwCamera]


Functions

RwBool RwD3D9CameraAttachWindow (void *camera, void *hwnd)
RwBool RwD3D9CameraIsSphereFullyInsideFrustum (const void *camera, const void *sphere)
RwBool RwD3D9CameraIsBBoxFullyInsideFrustum (const void *camera, const void *boundingBox)

Detailed Description

Platform specific

Function Documentation

RwBool RwD3D9CameraAttachWindow void *    camera,
void *    hwnd
 

RwD3D9CameraAttachWindow can be used to attach an RwCamera to a specific window handle so that multiple windows may be rendered to in one instance of RenderWare Graphics.

Call this function before the camera rendering function in your application's render loop. The preferred order of use is:

  1. create a window
  2. create a camera
  3. attach the window
  4. render through camera
Parameters:
camera  Void pointer to the camera to attach the window to.
hwnd  Void pointer to the window handle to attach to the camera.
Returns:
Returns TRUE if successful, FALSE otherwise.
See also:
RwCameraBeginUpdate , RwCameraEndUpdate , RwCameraClear , RwCameraShowRaster , RwCameraCreate

RwBool RwD3D9CameraIsBBoxFullyInsideFrustum const void *    camera,
const void *    boundingBox
 

RwD3D9CameraIsBBoxFullyInsideFrustum can be used to determine whether a bounding box lies entirely within a camera's frustum.

Parameters:
camera  Pointer to the camera with the frustum to be tested against.
boundingBox  Pointer to the bounding box that is to be tested.
Returns:
Returns TRUE if the bounding box is fully inside the frustum, FALSE otherwise.
See also:
RwD3D9CameraIsSphereFullyInsideFrustum

RwBool RwD3D9CameraIsSphereFullyInsideFrustum const void *    camera,
const void *    sphere
 

RwD3D9CameraIsSphereFullyInsideFrustum can be used to determine whether a sphere lies entirely within a camera's frustum.

This function is similar to RwCameraFrustumTestSphere but is faster since it will only test whether the sphere is fully inside the frustum.

Parameters:
camera  Pointer to the camera with the frustum to be tested against.
sphere  Pointer to the sphere that is to be tested.
Returns:
Returns TRUE if the sphere is fully inside the frustum, FALSE otherwise.
See also:
RwCameraFrustumTestSphere


Criterion Software © 1993-2004 Criterion Software Limited. All rights reserved. Built Thu Feb 12 13:46:57 2004. Send Feedback