RenderContextBase.EnableXORForTexture Method

Enables or disables the XOR (inverted color) drawing mode for the texture.
Public Sub EnableXORForTexture( _ 
ByVal enable As Boolean, _ 
ByVal shaderParams As ShaderParameters
)
This language is not supported or no code example is available.
public void EnableXORForTexture( 
bool enable
ShaderParameters shaderParams 
)
This language is not supported or no code example is available.

Parameters

enable
bool

The enable status

shaderParams
ShaderParameters

The shader parameters to update the shader

Remarks
 
If enable is true, it sets a white color and blendStateType.XOR blend state, else it sets a blendStateType.NoBlend blend state. It also calls the EnableAlphaClip to discard the transparent texture fragments. Requires the shaderType.Texture2DNoLights shader.

.NET Framework

Supported in: 4.8

In this article

Definition