Search found 1 match
- Fri Dec 29, 2006 6:01 pm
- Forum: Beginners Help
- Topic: Want to draw only a certain part of an image to a billboard
- Replies: 9
- Views: 391
how to scale images if using draw2DImage()
try scaling the texture before you actually pass it to draw2DImage(), such as the following: video::ITexture* texture = driver->getTexture( texturePath ); texture->getTransformation().setScale( core::vector3df( 1/x, 1/y, 1/z) ); then of course driver->draw2DImage(texture, ...); where x, y, z are flo...