Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

D3D9
[Render States]


Modules

Source Blending Modes
Destination Blending Modes
Restrictions

Functions

void RwD3D9SetRenderState (RwUInt32 state, RwUInt32 value)
void RwD3D9GetRenderState (RwUInt32 state, void *value)
void RwD3D9SetTextureStageState (RwUInt32 stage, RwUInt32 type, RwUInt32 value)
void RwD3D9GetTextureStageState (RwUInt32 stage, RwUInt32 type, void *value)
void RwD3D9SetSamplerState (RwUInt32 stage, RwUInt32 type, RwUInt32 value)
void RwD3D9GetSamplerState (RwUInt32 stage, RwUInt32 type, void *value)

Detailed Description

Platform specific

Function Documentation

void RwD3D9GetRenderState RwUInt32    state,
void *    value
 

RwD3D9GetRenderState retrieves a renderstate value.

It is preferred that this utility function is used rather than the D3D9 API function IDirect3DDevice9::GetRenderState since RenderWare can optimize performance using it's internal cache. See Device Cache.

Parameters:
state  Device state variable that is being queried. This parameter can be any member of the D3DRENDERSTATETYPE enumerated type.
value  Void pointer to a variable that receives the value of the queried renderstate variable when the function returns.
See also:
RwD3D9SetRenderState , RwD3D9SetSamplerState , RwD3D9GetSamplerStageState , RwD3D9SetTextureStageState , RwD3D9GetTextureStageState

void RwD3D9GetSamplerState RwUInt32    stage,
RwUInt32    type,
void *    value
 

RwD3D9GetSamplerState retrieves a state value for an assigned sampler in the specified stage.

It is preferred that this utility function is used rather than the D3D9 API function IDirect3DDevice9::GetSamplerStageState since RenderWare can optimize performance using it's internal cache. See Device Cache.

Parameters:
stage  Stage identifier of the texture for which the sampler state value is retrieved. Stage identifiers are zero-based. Devices can have up to 8 textures set, so the maximum value allowed for stage is 7.
type  Sampler state to retrieve. This parameter can be any member of the D3DSAMPLERSTATETYPE enumerated type.
value  Void pointer to a variable to fill with the retrieved state value. The meaning of the retrieved value is determined by the type parameter.
See also:
RwD3D9SetTextureStageState , RwD3D9SetTexture , RwD3D9SetRenderState , RwD3D9GetRenderState , RwD3D9SetSamplerState , RwD3D9GetTextureStageState

void RwD3D9GetTextureStageState RwUInt32    stage,
RwUInt32    type,
void *    value
 

RwD3D9GetTextureStageState retrieves a state value for an assigned texture in the specified stage.

It is preferred that this utility function is used rather than the D3D9 API function IDirect3DDevice9::GetTextureStageState since RenderWare can optimize performance using it's internal cache. See Device Cache.

Parameters:
stage  Stage identifier of the texture for which the state value is retrieved. Stage identifiers are zero-based. Devices can have up to 8 textures set, so the maximum value allowed for stage is 7.
type  Texture state to retrieve. This parameter can be any member of the D3DTEXTURESTAGESTATETYPE enumerated type.
value  Void pointer to a variable to fill with the retrieved state value. The meaning of the retrieved value is determined by the type parameter.
See also:
RwD3D9SetTextureStageState , RwD3D9SetTexture , RwD3D9SetRenderState , RwD3D9GetRenderState , RwD3D9SetSamplerState , RwD3D9GetSamplerStageState

void RwD3D9SetRenderState RwUInt32    state,
RwUInt32    value
 

RwD3D9SetRenderState sets a device renderstate parameter.

It is preferred that this utility function is used rather than the D3D9 API function IDirect3DDevice9::SetRenderState since RenderWare can optimize performance using it's internal cache. See Device Cache.

Parameters:
state  Device state variable that is being modified. This parameter can be any member of the D3DRENDERSTATETYPE enumerated type.
value  New value for the device renderstate to be set. The meaning of this parameter is dependent on the value specified for state.
See also:
RwD3D9GetRenderState , RwD3D9SetSamplerState , RwD3D9GetSamplerStageState , RwD3D9SetTextureStageState , RwD3D9GetTextureStageState

void RwD3D9SetSamplerState RwUInt32    stage,
RwUInt32    type,
RwUInt32    value
 

RwD3D9SetSamplerState sets the sampler state value for the currently assigned texture in the specified stage.

It is preferred that this utility function is used rather than the D3D9 API function IDirect3DDevice9::SetSamplerStageState since RenderWare can optimize performance using it's internal cache. See Device Cache.

Parameters:
stage  Stage identifier of the texture for which the state value is set. Stage identifiers are zero-based. Devices can have up to 8 textures set, so the maximum value allowed for stage is 7.
type  Sampler state to set. This parameter can be any member of the D3DSAMPLERSTATETYPE enumerated type.
value  State value to set. The meaning of this value is determined by the type parameter.
See also:
RwD3D9GetSamplerState , RwD3D9SetTextureStageState , RwD3D9GetTextureStageState , RwD3D9SetTexture , RwD3D9SetRenderState , RwD3D9GetRenderState

void RwD3D9SetTextureStageState RwUInt32    stage,
RwUInt32    type,
RwUInt32    value
 

RwD3D9SetTextureStageState sets the state value for the currently assigned texture in the specified stage.

It is preferred that this utility function is used rather than the D3D9 API function IDirect3DDevice9::SetTextureStageState since RenderWare can optimize performance using it's internal cache. See Device Cache.

Parameters:
stage  Stage identifier of the texture for which the state value is set. Stage identifiers are zero-based. Devices can have up to 8 textures set, so the maximum value allowed for stage is 7.
type  Texture state to set. This parameter can be any member of the D3DTEXTURESTAGESTATETYPE enumerated type.
value  State value to set. The meaning of this value is determined by the type parameter.
See also:
RwD3D9SetSamplerState , RwD3D9GetSamplerStageState , RwD3D9GetTextureStageState , RwD3D9SetTexture , RwD3D9SetRenderState , RwD3D9GetRenderState


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