Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

eFoDay

ID3DXSprite Dest Rect

This topic is 5236 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im using the ID3DXSprite::Draw method the second parameter is CONST RECT *pSrcRect but there is no destination rect if I want to draw an entire 512x512 texture on the screen I can do that but what If I want to draw the entire 512x512 texture and have it cover an 800x600 screen ? I have heard of using transforms to scale it but I dont see how to make it an exact size I could always use transformed vertices on a tri strip but I was wondering if there was an easy way with ID3DXSprite to draw into a destination rect

Share this post


Link to post
Share on other sites
Advertisement
http://www.gamasutra.com/features/20010629/geczy_02.htm#l2

I used his wrapper it works just like BltSprite. It''ll scale stuff for you to a destination rect

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!