Java Reference
In-Depth Information
NOT_EQUAL: Pixels are drawn if the pixel alpha value is not equal to the alpha
test value.
LESS: Pixels are drawn if the pixel alpha value is less than the alpha test value.
LESS_OR_EQUAL: Pixels are drawn if the pixel alpha value is less than or equal
to the alpha test value.
GREATER: Pixels are drawn if the pixel alpha value is greater than the alpha test
value.
GREATER_OR_EQUAL: Pixels are drawn if the pixel alpha value is greater than
or equal to the alpha test value.
Lastly, Figure 24 show the results when the other parameters in the rendering attribute
constructor are changed. The fifth parameter controls visibility and, by changing it to false,
the rectangles are not drawn as illustrated in the left diagram in the figure. Then, if the
sixth ignoreVertexColors parameter is changed to true instead, the assigned yellow color
of the rectangles will be ignored and the rectangles will now be rendered in white. The last
two parameters in the rendering attribute constructor control raster operation and default
values will be used most of the time.
Figure 24. Results from render.java, after changing the fifth and sixth parameters in Renderi
ngAttributes(true,true,0.0f, RenderingAttributes.ALWAYS,true,false to RenderingAttributes(tr
ue,true,0.0f, RenderingAttributes.ALWAYS,false,false and RenderingAttributes(true,true,0.0f,
RenderingAttributes.ALWAYS,true,true
Search WWH ::




Custom Search