Jump to content
  • Advertisement
Sign in to follow this  
darkelf2k5

[DX10] id3dxsprite question

This topic is 3614 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!