draw2DImage Color usage

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
Ulf
Posts: 281
Joined: Mon Jun 15, 2009 8:53 am
Location: Australia

draw2DImage Color usage

Post by Ulf »

Why does does one version of draw2DImage take 4 colors (one for each vertex), but the other takes only one color?

Also, why does one of them take a destination rect, but the other doesn't?

So you can scale and have 4 colors with one of them, and the other doesn't scale and has 1 color.

I suppose I haven't come upon all the usages of these functions.

Why have only 1 color, when you can have 4 and set them all the same? Or more importantly and to my way of thinking, why don't both of them have a destination rect? Rather than just a destination point? Or why not have 2 versions of both?

Maybe having 2 of both is bloat, I don't know. But then both should have a destination rect in my opinion. So they can both scale.

I'm busy doing many things at the moment, but I shall soon attempt to implement image/texture rotation into Irrlicht. We'll see how that goes. I'm implementing it in my 2d game engine. I am having a few difficulties with it, but I'm close.

I have scaling and rotation of polygons. This took a bit of work.
I have encountered more problems when attempting to apply it to textures.
I can hear birds chirping
:twisted:

I live in the Eye of Insanity.
Post Reply