draw2DImage versus addImage
draw2DImage versus addImage
Hi all, I've noticed that there are two ways to draw an image on-screen - one is to use the video driver's draw2DImage, and the other is the IGUIEnvironment's addImage. I suppose draw2DImage will consume less memory? Also, does the fader work on draw2DImage images?
Re: draw2DImage versus addImage
I'm going to take a very quick guess and say that draw2Dimage draws an image but addImage creates a widget that draws an image. I'm not entirely sure, but that's definitely what the names suggest.asphodeli wrote:Hi all, I've noticed that there are two ways to draw an image on-screen - one is to use the video driver's draw2DImage, and the other is the IGUIEnvironment's addImage. I suppose draw2DImage will consume less memory? Also, does the fader work on draw2DImage images?
Re: draw2DImage versus addImage
This is true.nmn wrote:draw2Dimage draws an image but addImage creates a widget that draws an image.
Re: draw2DImage versus addImage
well, okay, but i'm just wondering if the fader works for draw2DImage, i.e. the fader will "cover up" the draw2DImagenmn wrote:I'm going to take a very quick guess and say that draw2Dimage draws an image but addImage creates a widget that draws an image. I'm not entirely sure, but that's definitely what the names suggest.asphodeli wrote:Hi all, I've noticed that there are two ways to draw an image on-screen - one is to use the video driver's draw2DImage, and the other is the IGUIEnvironment's addImage. I suppose draw2DImage will consume less memory? Also, does the fader work on draw2DImage images?
-
- Competition winner
- Posts: 189
- Joined: Tue Oct 16, 2007 3:53 am
- Location: Indonesia
- Contact: