A SERVICE OF

logo

csContext Overview
37
.
.
csAppearance *app = new csAppearance;
app->setMaterial(mtl);
shape->setAppearance(app);
Figure 3-1 Inheritance Mask
All 0 bits indicate that the default value is used.
When you set a csAppearance value, its corresponding bit in the inheritance mask is set.
Accessing States
Applications can access the current state using the various get() methods. The primary
use of the get() method is to ask the system about its current state. Cosmo 3D makes this
state available so that a user callback can know the current state of the system and make
OpenGL calls appropriately.
csContext elements
csAppearance fields
csContext elements
(Current state)
(Default state)000 000 0
000 00000
000111
1
1
00
1
0
Light enable
Material
CullFace