hi,
i´m using iTexture to load an image from a file, and then draw2dimage to render it. But, no one version of this method allow to scale the image before render. I`d been searching on the forum for a similar question and for a relationed method on the reference guide... could somebody help me??
TNX!!
how to scale an 2dimage?
-
- Posts: 18
- Joined: Wed Dec 14, 2005 12:44 am
u can't scale a 2d image! irrlicht doesn't support this.
But you could applay the image as a texture to a mesh and scale the mesh.
But you could applay the image as a texture to a mesh and scale the mesh.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
What about
And there's also some resizing in CColorConverter. Nothing accelerated, though. Otherwise this would be done by textures which have to be of special sizes, yet. So in general not useful for this purpose.
Code: Select all
//! constructor
CImage(IImage* imageToCopy,
const core::position2d<s32>& pos, const core::dimension2d<s32>& size);
well...its hard to believe that there is no anymethod to do something so basic, but, right is that Irrlicht is specialized on 3d design...
I cant find CImage interfaze on the reference, because i´m using SDK 0.7 (dont ask me why )
So, i´ll try to do it on a planar mesh and scale it.
Thanks for help me!!
grettings!!
I cant find CImage interfaze on the reference, because i´m using SDK 0.7 (dont ask me why )
So, i´ll try to do it on a planar mesh and scale it.
Thanks for help me!!
grettings!!