When creating particles using the rpPTANKDFLAG2DROTATE or rpPTANKDFLAGCNS2DROTATE, the angle provided need to be between -PI and +PI as the pipeline use optimized Sine and Cosine functions.
The following flags can be passed to RpPTankAtomicCreate :
RpPTankAtomicSkyGetPreviousBuffer and RpPTankAtomicSkySwapFrames are used when using mutliple buffers.
RpPTankAtomicSkyCloneSetReferenceAtomic, RpPTankAtomicSkyCloneGetReferenceAtomic, RpPTankAtomicSkyCloneSetAmbientLight, RpPTankAtomicSkyCloneGetAmbientLight, RpPTankAtomicSkyCloneSetDirectionalLight and RpPTankAtomicSkyCloneGetDirectionalLight allow manipulation of the cloning pipelines
RpPTankAtomicSkyRenderStateSet and RpPTankAtomicSkyRenderStateGet give access to the full alpha and test registers used by the PTank objects.
|
|
|
|
RpPTankAtomicSkyCloneGetAmbientLight returns the current ambient light used when using the cloning pipeline, or NULL if none had been set. See rpPTANKSKYFLAGUSECLONEPIPELINE for more information about the cloning pipelines.
|
|
RpPTankAtomicSkyCloneGetDirectionalLight returns the current directional light used when using the cloning pipeline, or NULL if none had been set. See rpPTANKSKYFLAGUSECLONEPIPELINE for more information about the cloning pipelines.
|
|
RpPTankAtomicSkyCloneGetReferenceAtomic returns the reference atomic that will be rendered multiple times by the cloning pipeline. See rpPTANKSKYFLAGUSECLONEPIPELINE for more information about the cloning pipelines.
|
|
RpPTankAtomicSkyCloneSetAmbientLight sets the ambient light used when rendering using the cloning pipelines. The directional and the ambient light set are used only when a PTank has been created with the platform flag rpPTANKSKYFLAGUSECLONEPIPELINE, and with the data flag rpPTANKDFLAGMATRIX, but without rpPTANKDFLAGCOLOR. See rpPTANKSKYFLAGUSECLONEPIPELINE for more information about the cloning pipelines.
|
|
RpPTankAtomicSkyCloneSetDirectionalLight is used to set the directional light used when rendering using the cloning pipelines. The directional and the ambient light set are used only when a PTank has been created with the platform flag rpPTANKSKYFLAGUSECLONEPIPELINE, and with the data flag rpPTANKDFLAGMATRIX, but without rpPTANKDFLAGCOLOR. See rpPTANKSKYFLAGUSECLONEPIPELINE for more information about the cloning pipelines.
|
|
RpPTankAtomicSkyCloneSetReferenceAtomic sets the reference atomic that will be rendered multiple time by the cloning pipeline. See rpPTANKSKYFLAGUSECLONEPIPELINE for more information about the cloning pipelines.
|
|
RpPTankAtomicSkyGetPreviousBuffer is used to access the PTank data used to render the previous frame. The data is always in an array organization as this function gives direct access to the instanced forms of the data.
|
|
RpPTankAtomicSkyLock is used to lock and access the data held by the PTank object. As the data accessed is already instanced, there is no need for an unlock function. The data is always in an array organization as this function gives direct access to the instanced forms of the data. The PTank object needs to be created using a combination of the following flags :
|
|
RpPTankAtomicSkyRenderStateGet is used to get device specific renderstate for which there is, as yet, no generic equivalent. Because in many cases setting these values changes the default behavior of a PTank object it is recommended that you contact the Support team through your customer account on https://support.renderware.com to discuss any implications that might arise from their use.
|
|
RpPTankAtomicSkyRenderStateSet is used to set device specific renderstate for which there is, as yet, no generic equivalent.
|
|
RpPTankAtomicSkySwapFrames is called to swap the buffers when using rpPTANKSKYFLAGINSTANCEBUFFER. When this flag is passed as a platform flag in RpPTankAtomicCreate, the ptank will double buffer the particles data to reduce time syncronisation problems. When not using multi-buffering, the function will directly return.
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |