njGetTextureNumG | Japanese
    <-|INDEX|->
Obtains the global index number of the current texture.

### FORMAT

      #include <Ninja.h>
      Uint32 njGetTextureNumG(void);

### PARAMETERS

  None

### RETURN VALUE

Successful
  Global index number in the range 0 to 0xFFFFFFF0
Failed
  0xFFFFFFFF

### FUNCTION

- Obtains the global index number of the current texture.

### EXAMPLE

      Uint32 globalIndex;

      /* Get the global index number for the current texture previously set */
      globalIndex = njGetTextureNumG();

      /* Set the global index #0 to the current texture. */
      njSetTextureNumG(0);

               :
      Drawing textures...
               :

      /* Put the current texture back */
      njSetTextureNumG(globalIndex);

### NOTES

  Current texture must be set previously by njSetTextureNum, njSetTextureNumG.

### RELATED TOPICS

  njSetTextureNum njSetTextureNumG

njGetTextureNumG |
    <-|INDEX|->