Java Reference
In-Depth Information
Figure 21. Second segment and result of render.java
29.
public Appearance CreateApp()
30.
{
31.
Appearance look = new Appearance();
32.
PolygonAttributes pa = new PolygonAttributes();
33.
34.
RenderingAttributes ra =
35.
new RenderingAttributes(true,true,0.0f,
36.
RenderingAttributes.ALWAYS,true,false,false,
37.
RenderingAttributes.ROP_COPY);
38.
39. pa.setCullFace(PolygonAttributes.CULL_NONE);
40.
41.
look.setPolygonAttributes(pa);
42.
look.setRenderingAttributes(ra);
43.
return look;
44.
}
45.
}
Figure 22. Results from render.java, after changing the first two parameters in Rendering
Attributes(true,true to RenderingAttributes(false,false
Search WWH ::




Custom Search