##### Ninja Library - Texture Structure

# NJS_TEXERRSTAT

Structure in which texture errors are returned

### DEFINITION

      typedef struct {
          Uint32  n;
          Uint32  globalIndex;
          Sint32  texerr;
          Sint32  gdstat;
          Sint32  gderr;
          Sint32  reserved0;
          Sint32  reserved1;
          Sint32  reserved2;
      }NJS_TEXERRSTAT;

### MEMBER

  `n` | Texture number of texture that generated an error (default : 0xFFFFFFFF)
  `globalIndex` | Global index of texture that generated error (default : 0xFFFFFFFF)
  `texerr` | Texture error code
  `gdstat` | GD status code
  `gderr` | GD error code
  `reserved0` | Reserved area 0
  `reserved1` | Reserved area 1
  `reserved2` | Reserved area 2

### DESCRIPTION

  Structure in which texture errors are returned. The following shows texture error codes indicated by member "texerr".

  Error code | Meaning
  0 | No error
  1 | Other error
  2 | File open error
  3 | Extension error
  4 | Header error
  5 | File load error
  6 | Surface error (insufficient texture memory)
  7 | Main memory error (insufficient main memory)
  8 | Texture memory load error
  9 | Global index error

  If an error is generated while loading a file from GD, the GD "get status" function `gdFsGetStat()` is executed and the results are put in member gdstat. In this case, texerr is "5" (file load error). The following shows value of member "gdstat".

  0 | GDD_STAT_IDLE (default)
  1 | GDD_STAT_COMPLETE
  2 | GDD_STAT_READ
  3 | GDD_STAT_SEEK
  4 | GDD_STAT_BUSY
  5 | GDD_STAT_ERR
  6 | GDD_STAT_FATAL
  7 | GDD_STAT_CONTINUE
  8 | GDD_STAT_UNDEF

  If an error is generated while loading a file from GD, the GD "get status" function is executed, after which the GD "get error" function `gdFsGetErrStat()` is executed, and then the results are put in member gderr. The following shows value of member "gderr".

  -0 | GDD_ERR_OK (default)
  -1 | GDD_ERR_INIT
  -2 | GDD_ERR_RESET
  -3 | GDD_ERR_LIBOV
  -4 | GDD_ERR_MOUNT
  -5 | GDD_ERR_DISC
  -6 | GDD_ERR_DIRREC
  -7 | GDD_ERR_CANTOPEN
  -8 | GDD_ERR_NOTFOUND
  -9 | GDD_ERR_NOHNDL
  -10 | GDD_ERR_ILLHNDL
  -11 | GDD_ERR_NOTDIR
  -12 | GDD_ERR_DIROVER
  -13 | GDD_ERR_BUSY
  -14 | GDD_ERR_32ALIGN
  -15 | GDD_ERR_SIZE
  -16 | GDD_ERR_SEEK
  -17 | GDD_ERR_OFS
  -18 | GDD_ERR_ILLTMODE
  -19 | GDD_ERR_READ
  -20 | GDD_ERR_NOTREAD
  -21 | GDD_ERR_TOUT
  -22 | GDD_ERR_EOF
  -23 | GDD_ERR_TRAYOPEND
  -24 | GDD_ERR_SIZEOVER
  -25 | GDD_ERR_FATAL
  -26 | GDD_ERR_UNDEF
  -27 | GDD_ERR_NOERR
  -28 | GDD_ERR_RECOVER
  -29 | GDD_ERR_NOTREADY
  -30 | GDD_ERR_MEDIA
  -31 | GDD_ERR_HWARE
  -32 | GDD_ERR_ILLREQ
  -33 | GDD_ERR_UNITATTENT
  -34 | GDD_ERR_PROTECT
  -35 | GDD_ERR_ABORT
  -36 | GDD_ERR_NOREADABLE
  -37 | GDD_ERR_CHECKBUSY

### REFERENCE

  `njGetTextureErrStat()
  `

NJS_TEXERRSTAT

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999