##### Ninja Library - Scroll Structure

# NJS_SCROLL

Structure in which the scroll data is set

### DEFINITION

      typedef struct {
       Uint16  celps;
       Uint16  mapw;
       Uint16  maph;
       Uint16  sw,sh;
       NJS_TEXLIST *list;
       Uint32  *map;
       Float  px,py;
       Float  bx,by;
       Float  pr;
       Uint16  sflag;
       Float  sx,sy;
       Float  spx,spy;
       Uint16  mflag;
       Float  cx,cy;
       NJS_SCLMTRX  m;
       Uint32  colmode;
       NJS_POINT2 clip[2];
       NJS_SCLATTR attr;
       NJS_COLOR sclc;
      }NJS_SCROLL;

### MEMBER

  `celps` | Scroll cell size
  `mapw` | Scroll map width
  `maph` | Scroll map height
  `sw,sh` | Currently unused
  `*list` | Texture list pointer
  `*map` | Map array pointer, Array of map[maph][mapw] above
  `px,py` | Scroll surface movement coordinate
  `bx,by` | Map home coordinates
  `pr` | Priority
  `sflag` | Scale flag (ON: Use scale/OFF: Do not use scale)
  `sx,sy` | Scale value
  `spx,spy` | Scale center coordinates
  `mflag` | Rotation matrix flag (ON: Use rotation/OFF: Do not use rotation)
  `cx,cy` | Rotation center coordinates
  `m` | Rotation matrix
  `colmode` | Scroll color mode
  `clip[2]` | Currently unused (Use njUserClipping() function to use clipping)
  `attr` | Currently unused
  `sclc` | Scroll screen vertex color

### DESCRIPTION

  Structure in which the scroll data is set.

### REFERENCE

  `njDrawScroll()
  `

NJS_SCROLL

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999