Scaling Textures

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
Epsilon
Posts: 38
Joined: Fri Jan 09, 2004 1:46 pm
Location: Argentina

Scaling Textures

Post by Epsilon »

Hi.

How can i scale textures?


I have trying with draw2dImage

virtual void draw2DImage(video::ITexture* texture, const core::position2d<s32>& destPos,const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,SColor color=SColor(255,255,255,255), bool useAlphaChannelOfTexture=false) = 0;

sourceRect and clipRect do exactly the some thing, i think clipRect must be replaced by DestinyRect or something, or make other Draw2dImage function like this:

virtual void draw2DImage(video::ITexture* texture, const core::rect<s32>* destRect = 0, const core::rect<s32>& sourceRect, ,SColor color=SColor(255,255,255,255), bool useAlphaChannelOfTexture=false) = 0;

here i have destRect with have the coordinates of a simple rectangle where should draw the image.

thanks.
Post Reply