Hello.
I making program based on 2Dexample, it will be simple map editor, but I can't find any function operating on Image/ITexture what will transform (you know, trans mirror, rot, rot 180...) and any function for zoom picture. Yes, I read the documentation for ITexture.
Transforming ITexture
No there are no functions to do that to textures, but then you probably wouldn't want to do it to the actual texture, you'd want those function to be available whilst drawing the texture.
Presumably you're using draw2DImage? With that i don't think there's any standard way of doing the transformations you require (though i think someone made a version which can rotate an image drawn with draw2DImage so you might want to try searching the forum for that).
An alternative is to draw the texture onto a quad and then transform the quad or use the texture matrix. Using a 3D quad and a scene node (custom or otherwise) might seem wrong to you as you're dealing in 2D but irrlicht draws a 3D quad when you use draw2DImage so it's not very different for performance reasons or anything.
Presumably you're using draw2DImage? With that i don't think there's any standard way of doing the transformations you require (though i think someone made a version which can rotate an image drawn with draw2DImage so you might want to try searching the forum for that).
An alternative is to draw the texture onto a quad and then transform the quad or use the texture matrix. Using a 3D quad and a scene node (custom or otherwise) might seem wrong to you as you're dealing in 2D but irrlicht draws a 3D quad when you use draw2DImage so it's not very different for performance reasons or anything.
-
- Posts: 331
- Joined: Sat Sep 02, 2006 4:11 am
- Location: Michigan
- Contact: