[fixed]setDebugDataVisible, wrong data type in docs

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

[fixed]setDebugDataVisible, wrong data type in docs

Post by Acki »

Hi,
there is a typo in the api with setDebugDataVisible
it says: setDebugDataVisible(s32 state)
but state is not s32, but E_DEBUG_SCENE_TYPE !!! ;)
(well, I know it is in fact s32 though :lol: )
this makes it hard to find the possible state types and even harder to know that there are different types avilable...

now you'll have to follow the link to ISceneNode.h and from there the link to EDebugSceneTypes.h to find the state types...
but if you don't know that there are different types avilable you'll never find it... :lol:

it would be great if state was declared as E_DEBUG_SCENE_TYPE so you have a direct link to the types !!! ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The parameter is not of that enum type, but a bitwise OR of all the enabled states. Hence, it doesn't really map to one of the enum values, except if exactly one debug state is enabled. But the enum type could be mentioned in the docs of course...
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

hybrid wrote:But the enum type could be mentioned in the docs of course...
that would be great !!! ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Comment updated in SVN 1791 (1.4 branch) and 1792 (trunk). Thanks for pointing this out, I've been meaning to fix it for ages. :)
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Althought 1785 already fixed it for trunk somehow :P
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

I added a @ref... ;)
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply