SetColorMaterial Method (RenderContextBase)
In This Topic
Sets the color to the diffuse component of the front and back faces, depending on the
ColorMaterialMode status.
Syntax
'Declaration
Public MustOverride Sub SetColorMaterial( _
ByVal As Color, _
Optional ByVal As Boolean _
)
public abstract void SetColorMaterial(
Color ,
bool
)
Parameters
- color
- The color to set
- force
- If true sets the color regardless of the current one, else sets it only if it's different from the current one.
See Also