Horde3D

Next-Generation Graphics Engine
It is currently 22.11.2024, 07:27

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Loading resources
PostPosted: 15.10.2012, 14:21 
Offline

Joined: 15.10.2012, 14:08
Posts: 4
How best to implement loading a large amount of resources (eg 200-300 models)?
I don`t want to write the whole list in the source code. :(
(I have an idea, but I think she is too "ugly")

Sorry for my bad English, it is not my native language.


Top
 Profile  
Reply with quote  
 Post subject: Re: Loading resources
PostPosted: 15.10.2012, 21:37 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Add the models to an XML file and load this file in your source code.

Or if the resource file names have some kind of uniform naming schemata use a loop and dynamically create the resource file names.

Or put them all into one folder and iterate over the directory content.


Top
 Profile  
Reply with quote  
 Post subject: Re: Loading resources
PostPosted: 17.10.2012, 09:22 
Offline

Joined: 15.10.2012, 14:08
Posts: 4
Thanks Volker! :D
...use a loop and dynamically create the resource file names.
In fact, I thought exactly about it, but I wanted to get professional advice. :)

Sorry for my bad English, it is not my native language.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group