Other declarations

The remaining Shadron constructs, which are neither variables nor objects, are declared with the following keywords:

  • struct – a structure type
  • template – a C++ style template
  • export – specification for producing output files
  • event – an event handler
  • generator – a recursive generator of vertex data
  • vertex_list – a sequence of vertex data
  • watch – a live view of an expression's value
  • glsl – a GLSL-only block
  • stream – specification for streaming output to extensions
  • set – a parameter setter
  • comment – a user comment

See also: Variable declarations, Object declarations