Table of Contents
Chapter Index
Previous Slide
Next Slide
315
Understanding External Prototypes
Creating New Node Types
Understanding External Prototypes
Prototypes are typically in a separate
external
file
EXTERNPROTO
declares a new node type:
name
,
fields
,
events
- as from
PROTO
url
- the URL of the prototype file
EXTERNPROTO Robot [ field MFString name . . . ] "robot.wrl"