Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

PlayStation 2
[RwRenderState]


Modules

PlayStation 2 alpha-blending modes
Alpha blending with 16-bit frame buffers

Enumerations

enum   RpSkyRenderState {
  rpSKYRENDERSTATENARENDERSTATE = 0, rpSKYRENDERSTATEDITHER, rpSKYRENDERSTATEALPHA_1, rpSKYRENDERSTATEATEST_1,
  rpSKYRENDERSTATEFARFOGPLANE, rpSKYRENDERSTATEMAXMIPLEVELS, rpSKYRENDERSTATEFORCEENUMSIZEINT = RWFORCEENUMSIZEINT
}

Functions

RwBool  RpSkyRenderStateSet (RpSkyRenderState nState, void *pParam)
RwBool  RpSkyRenderStateGet (RpSkyRenderState nState, void *pParam)

Detailed Description

Platform-specific

Enumeration Type Documentation

enum RpSkyRenderState
 

RpSkyRenderState

PlayStation 2 specific render states.

See also:
RpSkyRenderStateGet , RpSkyRenderStateSet , RwRenderState
Enumeration values:
rpSKYRENDERSTATEDITHER  0=off, 0x55555555=half, else on
rpSKYRENDERSTATEALPHA_1  Direct access to ALPHA_1 with bits 32-39 moved down to 24-31 to allow a single 32 bit value Allows us to pass a constant in rather than a pointer to a long
rpSKYRENDERSTATEATEST_1  Direct access to the bottom 16 bits of TEST_1
rpSKYRENDERSTATEFARFOGPLANE  Specifies the distance in camera space where the fog will reach full intensity. Setting this value to less than the far clip plane will result in fog reaching the fog color before clipping occurs. Note that using this state means that RenderWare will cease using the far clip plane as the full fog distance. Changing the far clip plane will no longer change the fog behavior. This render state is used for linear fog only. Note that the fogging calculations perform a linear ramp between the camera fog distance and the far fog plane. We apologize that the fog distance is a property of a camera, and the far fog distance is a render state. rpSKYRENDERSTATEFARFOGPLANE returns 0.0 if it has not been set.This indicates that the default fogging behavior (using the far clip plane as the value for the far fog distance) is selected.
rpSKYRENDERSTATEMAXMIPLEVELS  The maximum number of mip levels that rasters will be created with. Changing this value does not affect existing rasters. Mip levels will only be created if they are greater than or equal to 8 texels in both dimensions, so you are not guaranteed to get the maximum number of mip levels for all rasters. The maximum allowed value for rpSKYRENDERSTATEMAXMIPLEVELS is 7.

Function Documentation

RwBool RpSkyRenderStateGet RpSkyRenderState    nState,
void *    pParam
 

RpSkyRenderStateGet is used to get device specific renderstate for which there is, as yet, no generic equavalent. Because in many cases setting these values changes the default behavior of RenderWare 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.

Parameters:
nState  The state to get (type RpSkyRenderState):
pParam  A state specific argument. The fogplane is a pointer to a RwReal. All others are a pointer to a RwInt32. The value read is written to the location pointed to.
Returns:
Returns TRUE if successful or FALSE if there is an error
See also:
RpSkyRenderStateSet
RwBool RpSkyRenderStateSet RpSkyRenderState    nState,
void *    pParam
 

RpSkyRenderStateSet is used to set device specific renderstate for which there is, as yet, no generic equavalent.

Parameters:
nState  The state to set (type RpSkyRenderState):
pParam  A state specific argument. The fogplane is a pointer to a RwReal. All others are RwInt32 cast to void*.
Returns:
Returns TRUE if successful or FALSE if there is an error
See also:
RpSkyRenderStateGet

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