Thread: texture id's
View Single Post
Old 30th March 2008, 08:26 AM   #1
lisa
Senior Member
Professional user
 
lisa's Avatar
 
Join Date: Mar 2005
Location: Phoenix, AZ
Posts: 917
Default texture id's

Prototype int ac_get_num_textures();
Prototype ACImage *texture_id_to_image(int id)

Does anyone know, is texture id really an id, or is it an index?

i.e. is this legal, or will it crash:

for (int i = 0; i < ac_get_num_textures(); i++)
{
ACImage *image = texture_id_to_image(i);
}

I'm guessing it's an index, I just want to be sure!

Thanks!
lisa is offline   Reply With Quote