Advertisement Jump to content
Sign in to follow this  

[DX10] id3dxsprite question

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

Correct me if I'm wrong, but isn't ID3DX10Sprite supposed to set its own render states when you call Begin()? At least that's how I remember it was in DX9. It sets them, draws the sprites and, only if you asked for it specifically, resets the state after End(). Now, if you fiddle with the states between Begin() - End() calls, you can mess things up. But look at this: 1 device->RSSetState( &RS ); // turn on wireframe rendering 2 sprite->Begin(...); Line 1 should not affect the sprite class' setting, yet if I set the state to wireframe mode, spites will be drawn in wireframes. Is it not to be expected that Begin() sets up the pipleline for sprite rendering? Am I missing something here?

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!