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); : /* Draw textures */ : /* Put the current texture back */ njSetTextureNumG(globalIndex);