#
# HELP: SYNOPSIS:
# HELP:     colotux/user/RearViewOn
# HELP:
# HELP: DESCRIPTION:
# HELP:     Enable a "rear view mirror" shown above the Planes_XY view.
# HELP:
# HELP: SEE ALSO:
# HELP:     colotux/user/RearViewOff
#

# Start from the main view.
VIEW_SET Main
# Make it autorender on move. Gets confusing if you don't.
BUS_RECEIVE 0x1000007f
# Turn ist around by 180 degrees - the rearview creation process will
# cause it to be correct again afterwards.
# CTLEFT 180

VIEW_ADD RearView
VIEW_GROUP RearView Maingroup
VIEW_SET RearView
VIEW_TURN 180 0 0
RENDERER Class
RENDERMODE Gradient
TMODE Camera  
FINE 6
RENDERLUT_SIMPLE 125  
BUS_SEND 0x7f
BUS_RECEIVE 0x1000007f
VIEW_ORIENT BEFORE Planes_XY

VIEW_SET Main

VIEW_RENDER
SLEEP 500000
VIEW_REORIENT
VIEW_RENDER
