Horde3D

Next-Generation Graphics Engine
It is currently 28.03.2024, 10:36

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 12.08.2011, 22:00 
Offline

Joined: 12.08.2011, 21:46
Posts: 2
Location: Regensburg, Germany
I'm just playing with horde for a short time (which is fun actually, I might add), so please bare with me if this has been mentioned before.

When using h3dAddResource like so for a "not found condition test" (where the xml file certainly does not exist), I get back modelRes of value 4:
Code:
H3DRes modelRes = h3dAddResource( H3DResTypes::SceneGraph, "tttttsphere.scene.xml", 0 );

According to the docs, I would rather expect a 0 value, though.
Quote:
Returns
handle to the resource to be added or 0 in case of failure


So, I'm reporting this as a (possible) bug. Thanks and keep up the good work :mrgreen:


Top
 Profile  
Reply with quote  
PostPosted: 13.08.2011, 09:23 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
It's not a bug, because the resource handle does not mean that the resource is loaded. You have added a resource with that name, but it's content has to be loaded afterwards. See also h3dIsResLoaded. Note also that the resource name does not necessarily be a file name. It's only used as one by h3dutloadresourcesfromdisk


Top
 Profile  
Reply with quote  
PostPosted: 13.08.2011, 13:07 
Offline

Joined: 12.08.2011, 21:46
Posts: 2
Location: Regensburg, Germany
Ah, I see where I got it wrong. Thanks Volker :oops:


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 25 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