HTML and CSS Reference
In-Depth Information
9.2.3. Creating buffers for shape, color, and dimension
With all that shader data present, you now need to create buffers for shape, color, and di-
mension. One interesting fact about buffer data is that each object will have its own inde-
pendent set of buffers.
Step 4: Create shape, color, and dimension buffers for entities
To buffer your data, open template.js and append gd.template.Entity.shape() ,
gd.template.Entity.color() , and gd.template.Entity.indices() to
the Entity object with the following listing.
Listing 9.12. template.js—Buffer configuration
Search WWH ::

Custom Search