Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

D3D9
[RpPTank]


Enumerations

enum  RpPTankD3D9Flags { rpPTANKD3D9FLAGSUSEPOINTSPRITES = 0x00000001, rpPTANKD3D9FLAGFORCEENUMSIZEINT = RWFORCEENUMSIZEINT }

Detailed Description

D3D9 specific documentation.

D3D9 RpPTank Overview

The D3D9 optimized verion of RpPTank uses point sprites when the hardware supports them. Please note that point sprites severely limits the capabilities of the billboards. Due to hardware limitations, only the following flags are respected:

All the other flags are ignored. You can also specify a constant color or a constant size for all the billboards.

Note:
As the D3D9 point sprites are always square, only the x size of the constant size will be taken into account.
As the texture coordinates are generated by the hardware and can't be specified, calls to RpPTankAtomicSetConstantVtx2TexCoords are ignored, but the flag is needed to specify that the point sprites are textured.

Enumeration Type Documentation

enum RpPTankD3D9Flags
 

D3D9 specific data flags
  • rpPTANKD3D9FLAGSUSEPOINTSPRITES selects the D3D9 optimized pipeline. At the moment, this pipeline use point sprites when the hardware supports them, which don't allow use of all the PTank flags. Only the following flags are supported when using the D3D9 optimized pipes:
    • rpPTANKDFLAGPOSITION
    • rpPTANKDFLAGNORMAL
    • rpPTANKDFLAGSIZE (if the hardware supports the D3DFVF_PSIZE vertex format flag)
    • rpPTANKDFLAGCOLOR
    • rpPTANKDFLAGUSECENTER
    • rpPTANKDFLAGCNSVTX2TEXCOORDS
    • rpPTANKDFLAGARRAY
    • rpPTANKDFLAGSTRUCTURE
    The texture coordinates are generated by the hardware and can't be specified, but rpPTANKDFLAGCNSVTX2TEXCOORDS need to be used tp specify that the point sprites are textured.
If the hardware does not support point sprites, the default pipeline is used instead.


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