Jump to content
  • Advertisement
Sign in to follow this  
Estauns

Does ID3DXSprite set up your projection for you?

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

Looking to use ID3DXSprite for a 2D project over textured quads (since the summer update made it uber-slick and sexy). Does it automatically setup an orthographic projection for you? I don't want it to anti-alias anything, and I don't want it to mipmap / distort anything. I want pixel perfect sprites to appear in my 2D game. Does ID3DXSprite do any of the above stuff mentioned? Is ID3DXSprite the way to go? I can't see a reason not to use it after 9.0b.

Share this post


Link to post
Share on other sites
Advertisement
Yes and no. It does just what you want in other words. :) Call pSprite->Begin(D3DXSPRITE_DONOTMODIFY_RENDERSTATE) if you want to set your renderstates ahead of time.

It's the way to go.

Good luck,
Chris

Share this post


Link to post
Share on other sites
It doesn't go through the transformation matrices - it uses transformed vertices, so the corners of the sprite are drawn in screen (pixel) space.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!