##### Ninja Library - Matrix Function

# njClearMatrix

Clears the matrix stack

### FORMAT

`

  njClearMatrix( void )

`

### PARAMETER

  None

### RETURN

  None

### DESCRIPTION

  Clears the matrix stack with the current view matrix. The current matrix pointer is restored to the base matrix pointer.

### EXAMPLE

      The following prepares and initializes a matrix stack and sets it with the current view.
      NJS_MATRIX stack[10];
      NJS_VIEW view;
      njInitMatrix(stack, 10);
      njInitView(&view);
      njSetView(&view);
      njClearMatrix();

### REFERENCE

  `njInitMatrix()
  `VIEW function`
  `

njClearMatrix

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999