Table of contents
Chapter index
Previous slide
Next slide
458
Syntax: PROTO
Creating new node types
Syntax: PROTO
A
PROTO
statement declares a new node type (a
proto
type)
name
- the new node type name
fields
and
events
- interface to the prototype
PROTO BouncingBall [ field SFFloat bounceHeight 1.0 field SFTime cycleInterval 1.0 ]
{ . . . }