Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Texture argument constants are used as values for the following members of the D3DTEXTURESTAGESTATETYPE enumerated type:
- D3DTSS_ALPHAARG0
- D3DTSS_ALPHAARG1
- D3DTSS_ALPHAARG2
- D3DTSS_COLORARG0
- D3DTSS_COLORARG1
- D3DTSS_COLORARG2
- D3DTSS_RESULTARG
Set and retrieve texture arguments by calling the SetTextureStageState and GetTextureStageState methods.
Argument flags
You can combine an argument flag with a modifier, but two argument flags cannot be combined.
#define | Description |
---|---|
D3DTA_CONSTANT | Select a constant from a texture stage. The default value is 0xffffffff. |
D3DTA_CURRENT | The texture argument is the result of the previous blending stage. In the first texture stage (stage 0), this argument is equivalent to D3DTA_DIFFUSE. If the previous blending stage uses a bump-map texture (the D3DTOP_BUMPENVMAP operation), the system chooses the texture from the stage before the bump-map texture. If s represents the current texture stage and s - 1 contains a bump-map texture, this argument becomes the result output by texture stage s - 2. Permissions are read/write. |
D3DTA_DIFFUSE | The texture argument is the diffuse color interpolated from vertex components during Gouraud shading. If the vertex does not contain a diffuse color, the default color is 0xffffffff. Permissions are read-only. |
D3DTA_SELECTMASK | Mask value for all arguments; not used when setting texture arguments. |
D3DTA_SPECULAR | The texture argument is the specular color interpolated from vertex components during Gouraud shading. If the vertex does not contain a specular color, the default color is 0xffffffff. Permissions are read-only. |
D3DTA_TEMP | The texture argument is a temporary register color for read or write. D3DTA_TEMP is supported if the D3DPMISCCAPS_TSSARGTEMP device capability is present. The default value for the register is (0.0, 0.0, 0.0, 0.0). Permissions are read/write. |
D3DTA_TEXTURE | The texture argument is the texture color for this texture stage. Permissions are read-only. |
D3DTA_TFACTOR | The texture argument is the texture factor set in a previous call to the SetRenderState with the D3DRS_TEXTUREFACTOR render-state value. Permissions are read-only. |
Modifier flags
An argument flag may be combined with one of the following modifier flags.
#define | Description |
---|---|
D3DTA_ALPHAREPLICATE | Replicate the alpha information to all color channels before the operation completes. This is a read modifier. |
D3DTA_COMPLEMENT | Take the complement of the argument x, (1.0 - x). This is a read modifier. |
Constant Information
Requirement | Value |
---|---|
Header | d3d9types.h |
Minimum operating system | Windows 98 |
Related topics