Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

Rt2d
[Rt2d]


Functions

RwBool  Rt2dSetPipelineFlags (RwUInt32 flags)
void  Rt2dOpen (RwCamera *cam)
void  Rt2dClose (void)

Detailed Description

Rt2d functions

Function Documentation

void Rt2dClose void   
 

Rt2dClose is used to perform various clean-up operations that are required to close- down the 2D tools API. This function complements Rt2dOpen and should be used before closing down an application.

Note that Rt2dClose does not destroy any CTMs, brushes, paths or fonts that have been created by an application; these must be destroyed by the application itself. The include file rt2d.h and the library file rt2d.lib are required to use this function.

Returns:
None
See also:
Rt2dOpen
void Rt2dOpen RwCamera   cam
 

Rt2dOpen is used to perform various initializations that are required before the 2D plugin API can be used. The specified camera's raster will be used to display the output of any 2D rendering (the output device can be redefined using Rt2dDeviceSetCamera). This function must be called before executing any other 2D drawing functions. The function Rt2dClose complements Rt2dOpen and should be used before closing down an application. The include file rt2d.h and the library file rt2d.lib are required to use this function.

Parameters:
cam  Pointer to the camera.
See also:
Rt2dClose , Rt2dDeviceSetCamera
RwBool Rt2dSetPipelineFlags RwUInt32    flags
 

Rt2dSetPipelineFlags is used to add additional flags to to speed up the pipeline processing. Any of the RwIm3DTransformFlags enumerated values can be used, but only rwIM3D_NOCLIP and rwIM3D_ALLOPAQUE produce useful results.

The selected flag settings will be logically ORed into the Immediate Mode flags variable, so existing flag settings will not be cleared.

The include file rt2d.h and the library file rt2d.lib are required to use this function.

Parameters:
flags  Flags to be passed to the pipeline
Returns:
TRUE
See also:
RwIm3DTransformFlags

Criterion Software © 1993-2003 Criterion Software Limited. All rights reserved. Built Tue Apr 22 12:46:47 2003. Send Feedback
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)