C# Class CSharpGL.ColorMaskState

Toggle of color mask.
Inheritance: GLState
显示文件 Open project: bitzhuwei/CSharpGL

Public Methods

Method Description
ColorMaskState ( ColorMask mask )

Toggle of color mask.

ColorMaskState ( ColorMask mask, ColorMask originalMask )

Toggle of color mask.

ColorMaskState ( bool redWritable, bool greenWritable, bool blueWritable, bool alphaWritable )

Toggle of color mask.

ColorMaskState ( bool redWritable, bool greenWritable, bool blueWritable, bool alphaWritable, bool originalRedWritable, bool originalGreenWritable, bool originalBlueWritable, bool originalAlphaWritable )

Toggle of color mask.

ToString ( ) : string

Protected Methods

Method Description
StateOff ( ) : void

StateOn ( ) : void

Method Details

ColorMaskState() public method

Toggle of color mask.
public ColorMaskState ( ColorMask mask )
mask ColorMask mask when this switch is turned on.

ColorMaskState() public method

Toggle of color mask.
public ColorMaskState ( ColorMask mask, ColorMask originalMask )
mask ColorMask mask when this switch is turned on.
originalMask ColorMask mask when this switch is turned off.

ColorMaskState() public method

Toggle of color mask.
public ColorMaskState ( bool redWritable, bool greenWritable, bool blueWritable, bool alphaWritable )
redWritable bool red mask when this switch is turned on
greenWritable bool green mask when this switch is turned on
blueWritable bool blue mask when this switch is turned on
alphaWritable bool alpha mask when this switch is turned on

ColorMaskState() public method

Toggle of color mask.
public ColorMaskState ( bool redWritable, bool greenWritable, bool blueWritable, bool alphaWritable, bool originalRedWritable, bool originalGreenWritable, bool originalBlueWritable, bool originalAlphaWritable )
redWritable bool red mask when this switch is turned on.
greenWritable bool green mask when this switch is turned on.
blueWritable bool blue mask when this switch is turned on.
alphaWritable bool alpha mask when this switch is turned on.
originalRedWritable bool alpha mask when this switch is turned off.
originalGreenWritable bool blue mask when this switch is turned off.
originalBlueWritable bool green mask when this switch is turned off.
originalAlphaWritable bool red mask when this switch is turned off.

StateOff() protected method

protected StateOff ( ) : void
return void

StateOn() protected method

protected StateOn ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string