Jump to content
  • Advertisement

Archived

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

acardion

D3DXSPRITE extraction problem

This topic is 5340 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

When I use d3dxsprite to draw texture,it won''t show up properly in my desired size/screen location if the texture is extracted as a cell tile in a tileset. But it works if the texture is stored as a single texture file(which means i don''t have to specify the source RECT) Any help is appreciated,thank.

Share this post


Link to post
Share on other sites
Advertisement
Are you sure you''re specifying the correct rectangle to use? Also, what vector are you using for the pCenter parameter? Setting it anything other than NULL may give you results that are unexpected, if you want the position to be based off the top left corner.


Dustin Franklin
Mircrosoft DirectX MVP

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!