Many tests and hours later, the only way I can resize an image loaded from a file to a texture of set size, is using IImage and copyToScalling, as the draw2DImage function always tiles smaller images across the larger texture.
I´ve passed the parameters to for the correct overloaded function:-
draw2DImage( pTex, core::rect32<s32>(0, 0, widthtrgt, heighttrgt), core::rect32<s32>(0, 0, widthsrc, heightsrc) )
but it still tiles smaller images across the larger texture... anyone know why?
I´m trying to find the most cycle/speed efficient way of loading a texture with an image from a file scaled to the textures pixel dimensions, and if any one know how to do this trick best, please let me know, as I´m stuck!!
PS Anyone know where to find the hardware raytrace examples source code? All the links I´ve searched have the source removed.
[fixed] draw2DImage not resizing image
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: draw2DImage not resizing image (Irrlicht 1.7.2 - VS 2008
Which driver are you using? This has been added to burningsvideo only very recently, in SVN/trunk