
588 VII Software Design
not mutually exclusive, meaning that model data can b e kept in system and graphics
memory at the same time. This is particularly useful because it avoids the definition
of two different model structures. For example, algorithms that per form calculations
on the geometry can access the regular or typed array, while rendering algorithms will
use wrapped WebGLBuffer objects. Listing 41.1 shows the data-layer structure.
Access layer. The a ccess layer provides the needed information to generate vertex
attribute and primitive streams that will be fed into the rendering pipeline.
A vertex attribute stream can refer by name to a ver ...