I'm trying to create rectangular buttons for my GUI using sprites (I figure that this is the easiest way to display a textured rectangle on screen) but I have a little problem - the sprite drawing interface only lets me select an area of a texture to use as my sprite - there doesn't seem to be an option to compress a whole texture to the correct size so that it fits into an arbitrary rectangle. Does anyone know how I can make a sprite resize the texture so that it fits into my specified rectangle?
Thanks!