made the texture loading code write out each texture's type and ID so
that it can be used with the -t parameter easily without counting lines