njCalcTexture | Japanese
    --|INDEX|->
Calculates the remaining texture memory size

### FORMAT

      #include <Ninja.h>
      Uint32 njCalcTexture(flag);
      Uint32 flag

### PARAMETERS

NJD_TEXMEM_FREESIZE
  free size in total
NJD_TEXMEM_MAXBLOCK
  max free size in block
NJD_TEXMEM_MAXSIZE
  max size in texture memory

### RETURN VALUE

  Amount of remaining texture memory

### FUNCTION

- Calculates total free size or max free size in block of texture memory.

### EXAMPLE

      NJS_TEXNAME texname[2];

      NJS_TEXLIST texlist ={texname,2};
      Uint32 calc;

      /* Prepare to read two textures */
      NJS_TEXMEMLIST texmemlist[2];

      njInitTexture(texmemlist,2);
      njSetTextureName(&texname[0],"file1.pvr",0,NJD_TEXATTR_TYPE_FILE|
                      NJD_TEXATTR_GLOBALINDEX);
      njSetTextureName(&texname[1],"file2.pvr",1,NJD_TEXATTR_TYPE_FILE|
                      NJD_TEXATTR_GLOBALINDEX);

      /* Load textures */
      njLoadTexture(&texlist);

      /* Calculates the free size in total */
      calc = njCalcTexture(NJD_TEXMEM_FREESIZE);

      /* Output on screen */
      njPrintD(NJM_LOCATION(10,10),calc,10);

### NOTES

- njInitTexture() must be executed before calling this function.

### RELATED TOPICS

njCalcTexture |
    --|INDEX|->