# Class: Viewer

### LuxModule: luxinialuacore

The Viewer is a builtin model/animation/particle and material viewer of Luxinia.

## Methods:

### Method overview:

- initbase
- loadres
- reloadAnim
- reloadMain
- reloadMat

initbase ()
  returns: ()
  sets up all data needed for the viewer, call this first
loadres (string resname, [string animname])
  returns: ()
  loads a given resource (.mtl,.f3d/.mm,.prt) and for models an animation (.ma) can be specified.
reloadAnim ()
  returns: ()
  reloads animations
reloadMain ()
  returns: ()
  reloads maindata and all dependent data
reloadMat ()
  returns: ()
  reloads materials and all dependent data