#
# HELP: SYNOPSIS:
# HELP:     voxren/default/startup
# HELP:
# HELP: DESCRIPTION:
# HELP:     Set up defaults for voxren
#

#
# Get me a few global variables to play with
#
! voxren/default/declare_vars

#
# Set up the window geometry
#
! default/window_geometry
! ?private/default/window_geometry

#
# Check, if gamma has been set up. This must be done, before palettes are
# loaded. Re-load the palette afterwards.
#
! ?private/generic/gamma
RENDERER_LOADCLUT ${$root.global.dir.clut}/standard.ppm

#
# Alloc the depth and classfields right form the start.
#
! generic/multivol/forallvol generic/convert/allocall

#
# Set up the Engine and hide the grey layers
#
RENDERER_ENGINE Voxren

layer 0-31 1

#
# Preprogram the filling function keys
#
! voxren/bfs/setupfkeys

#
# Spawn off the planecontrol thing.
#
SPAWNPROCESS eccet_menu 127.0.0.1 ${$root.global.tcp.listenport} config/personality/voxren/menu &
! generic/menu/Voxcontrol

#
# Place the Main window between the controls
#
VIEW_RENDER
VIEW_SETPOS 300 60
VIEW_RENDER


# map keys and mice
! voxren/default/registerkeys
! voxren/default/registermouse

# Set up 4 default cutplanes
CUTPLANE_ADD 0
CUTPLANE_ADD 1
CUTPLANE_ADD 2
CUTPLANE_ADD 3

# Map them on the default renderer
RENDERER_MAP_CUTPLANE 0 0
RENDERER_MAP_CUTPLANE 1 1
RENDERER_MAP_CUTPLANE 2 2
RENDERER_MAP_CUTPLANE 3 3

#
# run any private startup scripts
#
! ?private/voxren/startup
