Clear B

From MCS Wiki AVR
Revision as of 22:20, 12 December 2014 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Action

Clear buffers to preset values.

(This is similar to CLS)

 

 

Syntax

Clear_B C,S,T 

 

 

Remarks

C

Clear Color buffer. Setting this bit to 1 will clear the color buffer of the FT800 to the preset value.

Setting this bit to 0 will  maintain the color buffer of the FT800 with an unchanged value.

The preset value is defined in command ClearColorRGB for the RGB channel and ClearColorA for the alpha channel.

S

Clear Stencil  buffer. Setting this bit to 1 will clear the stencil buffer of the FT800  to  the  preset  value.

Setting this bit to 0 will maintain the stencil buffer of the FT800 with an unchanged value.

The preset value is defined in command ClearStencil.

T

Clear Tag buffer. Setting this bit to 1 will clear the tag buffer of the FT800 to the  preset  value.

Setting this bit to 0 will maintain the tag buffer of the FT800 with an unchanged value.

The preset value is defined in command ClearTag.

 

The scissor test and the buffer write masks affect the operation of the clear. Scissor limits the cleared rectangle, and the buffer write  masks limit the affected buffers.

 

The state of the alpha function, blend function, and stenciling do not affect the clear.

 

 

See also

ClearColorAClearStencilClearTagClearColorRGB

 

 

 

Example

Personal tools
Namespaces
Variants
Actions
Navigation
Language