##### Ninja Library - View Function

# njSetScreen

Sets the screen

### FORMAT

`

  void njSetScreen( *s )
  NJS_SCREEN *s

`

### PARAMETER

  `*s` | Pointer to screen structure

### RETURN

  None

### DESCRIPTION

  Initializes the screen according to screen structure values set by the user.

### EXAMPLE

      #define SCR_DIST   500.f        //Distance from view point (view) to screen
      #define SCR_WIDTH  640.f        //Screen width
      #define SCR_HEIGHT 480.f        //Screen height
      #define SCR_CX     SCR_WIDTH/2  //Center of screen (X axis)
      #define SCR_CY     SCR_HEIGHT/2 //Center of screen (Y axis)
      NJS_SCREEN scr;
      scr.dist = SCR_DIST;
      scr.w = SCR_WIDTH;
      scr.h = SCR_HEIGHT;
      scr.cx = SCR_CX;
      scr.cy = SCR_CY;
      njSetScreen(&scr);

### NOTE

  Since the screen is initialized as indicated above by `njInitSystem()` function, use of this function is optional unless required by the user.

### REFERENCE

  `njInitSystem()
  `

njSetScreen

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999