draw function argument inconsistencys

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
XenoZergNid
Posts: 17
Joined: Sun Oct 13, 2013 1:52 am

draw function argument inconsistencys

Post by XenoZergNid »

I didn't really know where to post this because its not really a bug...

these two functions from IVideoDriver have an inconsistency in that draw2DRectangleOutlines rectangle is in the first argument and draw2DRectangles is in the second.

Code: Select all

draw2DRectangleOutline (const core::recti &pos, SColor color=SColor(255, 255, 255, 255))
draw2DRectangle (SColor color, const core::rect< s32 > &pos, const core::rect< s32 > *clip=0)
CuteAlien
Admin
Posts: 9971
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: draw function argument inconsistencys

Post by CuteAlien »

Yeah, it's annoying. We have more such cases in the Irrlicht interface, but there is no way of fixing something like this once it got messed up without breaking existing user code. The worst are the SColor and SColorf constructors - they trip me up all the time.

It's the kind of stuff that makes me wish to start all over once in a while :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply