Draw2DImage

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
pin3
Posts: 108
Joined: Fri Oct 06, 2006 8:50 pm
Contact:

Draw2DImage

Post by pin3 »

Is there any workaround for Draw2DImage issue?
In case you don't know .Net version doesn't let you use a Draw2DImage overload. The net tutorials use another overload instead but I need the one used in C++ tutorials (with 'null' as 4th parameter).

Tutorial #6:

C++


driver->draw2DImage(images, core::position2d<s32>(164,125),
(time/500 % 2) ? imp1 : imp2, 0,
video::SColor(255,255,255,255), true);

C#


driver.Draw2DImage(images, new Position2D(164, 125),
(time / 500 % 2) == 0 ? imp1 : imp2,
new Color(255, 255, 255, 255), true);

The 'null' version does something over overloads can't do (something related to transparency )

So is there any way to use same function as in C++ tutorials?
Locked