[SlimDX]Shrinking and Stretching Textures

Started by
4 comments, last by jdub 15 years, 3 months ago
Is there an easy way to shrink or stretch a texture to a certain height or width in pixels? I am currently using Device.SetTransform() to do it before rendering, but it is kinda a hassle.
J.W.
Advertisement
No one wants to help?
J.W.
Why do you want to resize the texture itself? If you are working with texels just move the VERTEX coordinates.
I am working with SlimDX's Sprite and Texture classes. Should I ditch those classes in favor of using quads?
J.W.
Some overloads of the texture loading functions take size parameters that allow you to resize the texture at load time. That might work better for what you're doing.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
Actually, I tried that. The width and height in the constructor don't shrink the texture, instead, they cut the texture to that size.
J.W.

This topic is closed to new replies.

Advertisement