Go Back   AC3D Forums > Resources > AC3D Plugins and Other Resources
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
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
Old 31st March 2008, 04:51 PM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,563
Default Re: texture id's

Looks fine to me.
Andy is offline   Reply With Quote
Old 1st April 2008, 12:35 AM   #3
lisa
Senior Member
Professional user
 
lisa's Avatar
 
Join Date: Mar 2005
Location: Phoenix, AZ
Posts: 917
Default Re: texture id's

Thanks!!!!
lisa is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 06:04 PM.


AC3D Forum
(C) Inivis Limited 2020